[DEBUG] [03/11/2024 11:22:39.176] [main] [EventStream(akka://test)] logger log1-TestEventListener started 11:22:39,176 AM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/11/2024 11:22:39.177] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/11/2024 11:22:39.177] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/11/2024 11:22:39.195] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.95:25520] with UID [-2631035630987867139] 11:22:39,196 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.95:25520] with UID [-2631035630987867139] 11:22:39,196 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - Starting up, Akka version [2.6.21] ... 11:22:39,201 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - Registered cluster JMX MBean [akka:type=Cluster] 11:22:39,201 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - Started up successfully 11:22:39,207 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 11:22:39,207 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/11/2024 11:22:39.196] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/11/2024 11:22:39.199] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/11/2024 11:22:39.199] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - Started up successfully [INFO] [03/11/2024 11:22:39.207] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/11/2024 11:22:39.207] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 11:22:39,309 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithOperationInProgress starting [WARN] [03/11/2024 11:22:39.315] [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@308a16f7 [INFO] [akkaDeadLetter][03/11/2024 11:22:39.316] [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'. 11:22:39,316 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'. 11:22:39,318 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 11:22:39,323 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:39,323 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:39,323 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 [WARN] [03/11/2024 11:22:39.323] [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@7c76e47b [INFO] [akkaDeadLetter][03/11/2024 11:22:39.323] [test-akka.actor.default-dispatcher-7] [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'. 11:22:39,323 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'. 11:22:39,324 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 11:22:39,325 AM [test-akka.actor.default-dispatcher-7] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 11:22:39,325 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 11:22:39,326 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 11:22:39,422 AM [main] [DEBUG] RaftActorServerConfigurationSupportTest - new-server2: Set currentTerm=1, votedFor=leader 11:22:39,438 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 11:22:39,448 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server410, votingMember=true] 11:22:39,448 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. 11:22:39,448 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 11:22:39,448 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 11:22:39,449 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 11:22:39,449 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 11:22:39,449 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] 11:22:39,449 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:22:39,449 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 11:22:39,450 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 11:22:39,450 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 11:22:39,450 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 11:22:39,450 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server410), Chunk: 1/1 11:22:39,450 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 11:22:39,450 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 11:22:39,497 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower408, votingMember=false], state: InstallingSnapshot 11:22:39,497 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower408, votingMember=false] 11:22:39,497 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Term 1 in "InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null]" message is greater than follower's term 0 - updating term 11:22:39,497 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:39,497 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot: InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 11:22:39,498 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 11:22:39,498 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:22:39,498 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 11:22:39,500 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying snapshot on follower: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=null, ServerConfigPayload=null] 11:22:39,500 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:22:39,500 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 11:22:39,500 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to -1 11:22:39,500 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:39,500 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 11:22:39,500 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] [WARN] [03/11/2024 11:22:39.501] [test-akka.actor.default-dispatcher-7] [akka://test/user/new-server410] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5febd436 11:22:39,501 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 11:22:39,501 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 11:22:39,501 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 11:22:39,502 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 11:22:39,504 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:22:39,504 AM [test-akka.actor.default-dispatcher-7] [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]]]] 11:22:39,504 AM [test-akka.actor.default-dispatcher-7] [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]]]] 11:22:39,505 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=5e3f92fa-0622-4d68-8281-87ad76e8b3ee}, logIndex: 0, isSendImmediate: true 11:22:39,505 AM [test-akka.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:39,505 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:39,505 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:22:39,506 AM [test-akka.actor.default-dispatcher-7] [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]]]]]] 11:22:39,507 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 11:22:39,507 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server410, votingMember=true] 11:22:39,508 AM [test-akka.actor.default-dispatcher-6] [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]]]]]] 11:22:39,508 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 11:22:39,508 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:22:39,508 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 11:22:39,508 AM [test-akka.actor.default-dispatcher-6] [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]]]] 11:22:39,508 AM [test-akka.actor.default-dispatcher-7] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/new-server410] was unhandled. [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'. 11:22:39,509 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 11:22:39,509 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 11:22:39,509 AM [test-akka.actor.default-dispatcher-6] [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] 11:22:39,509 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) [INFO] [akkaDeadLetter][03/11/2024 11:22:39.501] [test-akka.actor.default-dispatcher-7] [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'. 11:22:39,509 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 11:22:39,509 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 11:22:39,513 AM [test-akka.actor.default-dispatcher-7] [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]]]] 11:22:39,514 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:22:39,514 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 11:22:39,514 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 11:22:39,514 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 11:22:39,514 AM [test-akka.actor.default-dispatcher-7] [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 11:22:39,514 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower408, votingMember=false] 11:22:39,514 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: New follower is non-voting - directly persisting new server configuration 11:22:39,514 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 11:22:39,514 AM [test-akka.actor.default-dispatcher-7] [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]]]] 11:22:39,514 AM [test-akka.actor.default-dispatcher-7] [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]]]] 11:22:39,514 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=c7b82ce0-af3e-4b20-85b5-b7d85597f766}, logIndex: 1, isSendImmediate: true 11:22:39,514 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:39,515 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 1 is present for follower new-server 11:22:39,515 AM [test-akka.actor.default-dispatcher-18] [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]]]] 11:22:39,515 AM [test-akka.actor.default-dispatcher-7] [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]]]]]] 11:22:39,515 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:39,515 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower408, votingMember=false] 11:22:39,515 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 11:22:39,515 AM [test-akka.actor.default-dispatcher-18] [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]]]]]] 11:22:39,515 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 11:22:39,515 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:22:39,515 AM [test-akka.actor.default-dispatcher-18] [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]]] 11:22:39,516 AM [test-akka.actor.default-dispatcher-18] [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]]]] [WARN] [03/11/2024 11:22:39.516] [test-akka.actor.default-dispatcher-17] [akka://test/user/new-server410] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@352f9ee7 11:22:39,516 AM [test-akka.actor.default-dispatcher-18] [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]] 11:22:39,516 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 2 11:22:39,516 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 0 11:22:39,516 AM [test-akka.actor.default-dispatcher-18] [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] 11:22:39,516 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:39,516 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 11:22:39,516 AM [test-akka.actor.default-dispatcher-7] [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]]]] 11:22:39,516 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 0 [INFO] [akkaDeadLetter][03/11/2024 11:22:39.516] [test-akka.actor.default-dispatcher-17] [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'. 11:22:39,516 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to 0 11:22:39,516 AM [test-akka.actor.default-dispatcher-17] [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'. 11:22:39,516 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 11:22:39,516 AM [test-akka.actor.default-dispatcher-18] [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]]] 11:22:39,516 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 11:22:39,516 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 1 11:22:39,516 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 0 to 1 11:22:39,516 AM [test-akka.actor.default-dispatcher-7] [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]]] 11:22:39,516 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:39,516 AM [test-akka.actor.default-dispatcher-7] [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 11:22:39,516 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=1 11:22:39,516 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 [ERROR] [03/11/2024 11:22:39.516] [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) 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) 11:22:39,517 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=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:39,517 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=0 11:22:39,517 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 1 11:22:39,517 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 11:22:39,517 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:22:39,517 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 1 11:22:39,517 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from 0 to 1 11:22:39,518 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=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 11:22:39,518 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=1 11:22:39,520 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithOperationInProgress ending 11:22:39,520 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower408] 11:22:39,531 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector409#1024534541] 11:22:39,532 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server410] 11:22:39,532 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader411] 11:22:39,532 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector412] 11:22:39,534 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerNonExistentServer starting [WARN] [03/11/2024 11:22:39.535] [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@76efe7c1 [INFO] [akkaDeadLetter][03/11/2024 11:22:39.535] [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'. 11:22:39,536 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'. 11:22:39,536 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:39,536 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:39,536 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:39,539 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 11:22:39,539 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower] 11:22:39,539 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 11:22:39,547 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='new-server'}, state: Idle 11:22:39,548 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerNonExistentServer ending 11:22:39,548 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower413] 11:22:39,559 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader414] 11:22:39,561 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerWithNoLeader starting [WARN] [03/11/2024 11:22:39.562] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader416]: org.opendaylight.controller.cluster.common.actor.Monitor@1fa1cf8f 11:22:39,563 AM [test-akka.actor.default-dispatcher-6] [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'. [INFO] [akkaDeadLetter][03/11/2024 11:22:39.562] [test-akka.actor.default-dispatcher-6] [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'. 11:22:39,563 AM [test-akka.actor.default-dispatcher-11] [INFO] MockRaftActor - Starting recovery for leader with journal batch size 1000 11:22:39,565 AM [test-akka.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:22:39,672 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 11:22:39,673 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: No leader - returning NO_LEADER reply 11:22:39,673 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerWithNoLeader ending 11:22:39,673 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower415] 11:22:39,684 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader416] 11:22:39,686 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerLeader starting [WARN] [03/11/2024 11:22:39.687] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader419]: org.opendaylight.controller.cluster.common.actor.Monitor@7a7fabba 11:22:39,687 AM [test-akka.actor.default-dispatcher-18] [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'. [INFO] [akkaDeadLetter][03/11/2024 11:22:39.687] [test-akka.actor.default-dispatcher-18] [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'. 11:22:39,688 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:39,688 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:39,688 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:39,691 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 11:22:39,691 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower] 11:22:39,691 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 11:22:39,691 AM [test-akka.actor.default-dispatcher-11] [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. [8] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [WARN] [03/11/2024 11:22:39.691] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower418]: org.opendaylight.controller.cluster.common.actor.Monitor@5131b7f6 [INFO] [akkaDeadLetter][03/11/2024 11:22:39.691] [test-akka.actor.default-dispatcher-11] [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. [8] 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'. 11:22:39,693 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower with journal batch size 1000 11:22:39,698 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 11:22:39,699 AM [test-akka.actor.default-dispatcher-6] [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 11:22:39,699 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=1, votedFor=null 11:22:39,699 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 11:22:39,699 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 11:22:39,699 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/11/2024 11:22:39.700] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower418] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7828076c [INFO] [akkaDeadLetter][03/11/2024 11:22:39.700] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower418] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower418] was unhandled. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:22:39,700 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. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:22:39,704 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 11:22:39,707 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true]] 11:22:39,707 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]] 11:22:39,708 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=follower, isVoting=true]]]] 11:22:39,708 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=e42116dd-6c89-4c0e-ac4c-618e4b97a83d}, logIndex: 0, isSendImmediate: true 11:22:39,708 AM [test-akka.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:39,708 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 11:22:39,708 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower 11:22:39,708 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=-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]]]]]] 11:22:39,708 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation RemoveServer{serverId='leader'} 11:22:39,709 AM [test-akka.actor.default-dispatcher-16] [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]]]]]] 11:22:39,709 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 11:22:39,709 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:22:39,709 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]] 11:22:39,709 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]] 11:22:39,709 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Updated server config: isVoting: true, peers: [] 11:22:39,709 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 1 11:22:39,709 AM [test-akka.actor.default-dispatcher-16] [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] 11:22:39,709 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:22:39,709 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 11:22:39,710 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 11:22:39,710 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]]]] 11:22:39,711 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:22:39,711 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 11:22:39,711 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 11:22:39,711 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]]] 11:22:39,711 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 11:22:39,711 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 11:22:39,712 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/11/2024 11:22:39.712] [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@240dcb59 [WARN] [03/11/2024 11:22:39.712] [test-akka.actor.default-dispatcher-7] [akka://test/user/leader419] unhandled message from TestActor[akka://test/user/leader419]: ServerRemoved [serverId=leader] [INFO] [akkaDeadLetter][03/11/2024 11:22:39.713] [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'. 11:22:39,713 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'. 11:22:39,922 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Commit index set to 0 11:22:39,923 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:39,923 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:22:39,923 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Setting last applied to 0 11:22:39,923 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Moving last applied index from -1 to 0 11:22:39,923 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]] 11:22:39,923 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Persisting ApplyJournalEntries with index=0 11:22:39,965 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerLeader ending 11:22:39,965 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower417] 11:22:39,977 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader419] 11:22:39,977 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector420] 11:22:39,978 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector421#1336857592] 11:22:39,978 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower418] 11:22:39,980 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot starting [WARN] [03/11/2024 11:22:39.981] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server424]: org.opendaylight.controller.cluster.common.actor.Monitor@415e4cfa 11:22:39,982 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 11:22:39,985 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 11:22:39,986 AM [test-akka.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 11:22:39,987 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:39,987 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:39,987 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 [WARN] [03/11/2024 11:22:39.987] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader425]: org.opendaylight.controller.cluster.common.actor.Monitor@3a62a04e 11:22:39,993 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 11:22:39,994 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 11:22:39,998 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server424, votingMember=true], state: Idle 11:22:39,998 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server424, votingMember=true] 11:22:39,999 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. 11:22:39,999 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 11:22:39,999 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 11:22:39,999 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 11:22:39,999 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 11:22:39,999 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] 11:22:39,999 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:22:39,999 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 11:22:39,999 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 11:22:39,999 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 11:22:39,999 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 11:22:39,999 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server424), Chunk: 1/1 11:22:40,0 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 11:22:40,0 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 11:22:40,0 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 11:22:40,0 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:40,0 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] 11:22:40,0 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 11:22:40,0 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:22:40,0 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader [WARN] [03/11/2024 11:22:40.002] [test-akka.actor.default-dispatcher-6] [akka://test/user/new-server424] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@69e34cdc 11:22:40,2 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] 11:22:40,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:22:40,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 11:22:40,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to -1 11:22:40,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:40,2 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 11:22:40,2 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] 11:22:40,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 11:22:40,3 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 11:22:40,3 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 11:22:40,3 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 11:22:40,49 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 11:22:40,49 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server new-server: not leader 11:22:41,612 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: handleInstallSnapshotTimeout for new server new-server 11:22:41,613 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server424, votingMember=true] 11:22:41,613 AM [test-akka.actor.default-dispatcher-7] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured for new server new-server while installing snapshot 11:22:41,613 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot ending 11:22:41,613 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower422] 11:22:41,625 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector423#-873664029] 11:22:41,625 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server424] 11:22:41,625 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader425] 11:22:41,626 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector426] 11:22:41,728 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected starting 11:22:41,732 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node1 with journal batch size 1000 [WARN] [03/11/2024 11:22:41.732] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@17b47a4b 11:22:41,735 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=1, votedFor=node1 11:22:41,735 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 11:22:41,735 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 11:22:41,735 AM [test-akka.actor.default-dispatcher-18] [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/11/2024 11:22:41.833] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@7efaf29c 11:22:41,834 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node2 with journal batch size 1000 11:22:41,841 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=1, votedFor=node1 11:22:41,841 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 11:22:41,841 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 11:22:41,841 AM [test-akka.actor.default-dispatcher-6] [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 11:22:41,944 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 11:22:41,949 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 11:22:41,949 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 11:22:41,949 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 11:22:41,950 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:41,950 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 11:22:41,950 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 11:22:41,950 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=2, votedFor=node1 11:22:41,950 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 2 11:22:41,950 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Sending RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] to peer node2 11:22:41,950 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:22:41,995 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Received TimeoutNow - switching to Candidate 11:22:41,995 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Election: Candidate has following voting peers: [] 11:22:41,995 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=2, votedFor=node2 11:22:41,995 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Starting new election term 2 11:22:41,995 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:22:41,996 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Received ElectionTimeout 11:22:41,996 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Election: Leader has following peers: [node1] 11:22:41,996 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:41,997 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:22:41,997 AM [test-akka.actor.default-dispatcher-6] [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 11:22:41,997 AM [test-akka.actor.default-dispatcher-6] [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=[]] 11:22:41,997 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): New Leader node2 sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:22:41,997 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:22:42,112 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 11:22:42,113 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 11:22:42,113 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: New leader node2 elected 11:22:42,113 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 11:22:42,113 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: Forwarding ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] to new leader 11:22:42,113 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]] 11:22:42,113 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:42,113 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: getLeaderAddress leaderId = node2 peerAddress = akka://test/user/node2 11:22:42,113 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: Not leader - forwarding to leader ActorSelection[Anchor(akka://test/), Path(/user/node2)] 11:22:42,113 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 11:22:42,113 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState [WARN] [03/11/2024 11:22:42.113] [test-akka.actor.default-dispatcher-6] [akka://test/user/node1] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@436a8816 11:22:42,113 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=akka://test/user/node1, votingState=VOTING]] 11:22:42,114 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 11:22:42,114 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 11:22:42,114 AM [test-akka.actor.default-dispatcher-18] [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]]]] 11:22:42,114 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=dc829eed-7fee-4f0e-8f70-41086eca29c6}, logIndex: 1, isSendImmediate: true 11:22:42,114 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:42,114 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): sendAppendEntries: 1 is present for follower node1 11:22:42,114 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=-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]]]]]] 11:22:42,114 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 11:22:42,114 AM [test-akka.actor.default-dispatcher-6] [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]]]]]] 11:22:42,115 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Number of entries to be appended = 1 11:22:42,115 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:22:42,115 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 11:22:42,115 AM [test-akka.actor.default-dispatcher-6] [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]]]] 11:22:42,115 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]] 11:22:42,115 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Log size is now 2 11:22:42,115 AM [test-akka.actor.default-dispatcher-6] [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] 11:22:42,115 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 11:22:42,115 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 1, nextIndex: 2 11:22:42,115 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 11:22:42,115 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:42,117 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 11:22:42,117 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 11:22:42,117 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 11:22:42,117 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Setting last applied to 0 11:22:42,117 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from -1 to 0 11:22:42,117 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]] 11:22:42,117 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Setting last applied to 1 11:22:42,117 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from 0 to 1 11:22:42,117 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 11:22:42,117 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: fakeSnapshot purging log to 0 for term 2 11:22:42,117 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupport - node2: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] has been successfully replicated to a majority of followers 11:22:42,117 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 11:22:42,118 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persisting ApplyJournalEntries with index=1 [WARN] [03/11/2024 11:22:42.118] [test-akka.actor.default-dispatcher-18] [akka://test/user/node1] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2cd31144 11:22:42,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Commit index set to 1 11:22:42,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 11:22:42,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 11:22:42,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 0 11:22:42,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from -1 to 0 11:22:42,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]] 11:22:42,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 1 11:22:42,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from 0 to 1 11:22:42,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 11:22:42,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: fakeSnapshot purging log to 0 for term 2 11:22:42,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Persisting ApplyJournalEntries with index=1 11:22:42,267 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected ending 11:22:42,267 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower427] 11:22:42,278 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector428#-679237057] 11:22:42,285 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node1] 11:22:42,286 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector429#449055144] 11:22:42,286 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node2] 11:22:42,389 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithInstallSnapshotTimeout starting [WARN] [03/11/2024 11:22:42.391] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server432]: org.opendaylight.controller.cluster.common.actor.Monitor@68aa3449 11:22:42,392 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/11/2024 11:22:42.393] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader433]: org.opendaylight.controller.cluster.common.actor.Monitor@12512200 11:22:42,394 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:42,394 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:42,394 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:42,396 AM [test-akka.actor.default-dispatcher-13] [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 11:22:42,396 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 11:22:42,396 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 11:22:42,397 AM [test-akka.actor.default-dispatcher-13] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 11:22:42,504 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 11:22:42,504 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server432, votingMember=true] 11:22:42,504 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. 11:22:42,504 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 11:22:42,505 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 11:22:42,505 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 11:22:42,505 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=bogus] 11:22:42,505 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server bogus: server Id doesn't match 11:22:42,505 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 11:22:42,505 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] 11:22:42,505 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:22:42,505 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 11:22:42,505 AM [test-akka.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 11:22:42,505 AM [test-akka.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 11:22:42,506 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 11:22:42,506 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server432), Chunk: 1/1 11:22:42,506 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 11:22:42,506 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 11:22:42,622 AM [test-akka.actor.default-dispatcher-13] [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 11:22:42,622 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:42,622 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 11:22:42,622 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 [WARN] [03/11/2024 11:22:42.623] [test-akka.actor.default-dispatcher-16] [akka://test/user/new-server432] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@9e41c35 11:22:42,721 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: handleInstallSnapshotTimeout for new server new-server 11:22:42,721 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server432, votingMember=true] 11:22:42,722 AM [test-akka.actor.default-dispatcher-16] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured for new server new-server while installing snapshot 11:22:42,722 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithInstallSnapshotTimeout ending 11:22:42,722 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower430] 11:22:42,734 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector431#-1437523391] 11:22:42,735 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server432] 11:22:42,735 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader433] 11:22:42,737 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoExistingFollower starting [WARN] [03/11/2024 11:22:42.739] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server436]: org.opendaylight.controller.cluster.common.actor.Monitor@2f1f7303 11:22:42,740 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 11:22:42,740 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 11:22:42,741 AM [test-akka.actor.default-dispatcher-13] [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 11:22:42,742 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 1 11:22:42,742 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= [WARN] [03/11/2024 11:22:42.741] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader437]: org.opendaylight.controller.cluster.common.actor.Monitor@67dc312a 11:22:42,742 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:42,742 AM [test-akka.actor.default-dispatcher-13] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 11:22:42,747 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 = 2 11:22:42,747 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 11:22:42,852 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server436, votingMember=true], state: Idle 11:22:42,853 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server436, votingMember=true] 11:22:42,853 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 11:22:42,853 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 11:22:42,854 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 11:22:42,854 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 11:22:42,855 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=[0, 1]], electionTerm=1, electionVotedFor=, ServerConfigPayload=null] 11:22:42,855 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:22:42,855 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 11:22:42,855 AM [test-akka.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 324 bytes, total chunks to send: 1 11:22:42,855 AM [test-akka.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=324, offset=0, size=324, hashCode=-1763937099 11:22:42,855 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 324 11:22:42,855 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server436), Chunk: 1/1 11:22:42,855 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 11:22:42,855 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 11:22:42,855 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Term 1 in "InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=324, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null]" message is greater than follower's term 0 - updating term 11:22:42,855 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:42,855 AM [test-akka.actor.default-dispatcher-7] [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] 11:22:42,855 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 1 11:22:42,856 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:22:42,856 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 11:22:42,864 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying snapshot on follower: Snapshot [lastIndex=1, lastTerm=1, lastAppliedIndex=1, lastAppliedTerm=1, unAppliedEntries size=0, state=MockSnapshotState [state=[0, 1]], electionTerm=1, electionVotedFor=null, ServerConfigPayload=null] 11:22:42,864 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 [WARN] [03/11/2024 11:22:42.864] [test-akka.actor.default-dispatcher-16] [akka://test/user/new-server436] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@53d27948 11:22:42,864 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 11:22:42,865 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to 1 11:22:42,865 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:42,865 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 11:22:42,865 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 11:22:42,865 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 11:22:42,865 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 11:22:42,865 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 1, nextIndex set to 2 11:22:42,865 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 11:22:42,865 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 0 for term 1 11:22:42,865 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 11:22:42,865 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:22:42,865 AM [test-akka.actor.default-dispatcher-16] [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]]]] 11:22:42,865 AM [test-akka.actor.default-dispatcher-16] [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]]]] 11:22:42,866 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=6ad00831-12a7-42b7-9a1f-e21bdb10d6f1}, logIndex: 2, isSendImmediate: true 11:22:42,866 AM [test-akka.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:42,866 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:22:42,866 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 2 is present for follower new-server 11:22:42,866 AM [test-akka.actor.default-dispatcher-16] [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]]]]]] 11:22:42,866 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server436, votingMember=true] 11:22:42,866 AM [test-akka.actor.default-dispatcher-16] [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]]]]]] 11:22:42,866 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 11:22:42,866 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:22:42,866 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 11:22:42,866 AM [test-akka.actor.default-dispatcher-16] [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]]]] 11:22:42,867 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 11:22:42,867 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 11:22:42,867 AM [test-akka.actor.default-dispatcher-16] [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] 11:22:42,867 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected 1) 11:22:42,867 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 2, nextIndex: 3 11:22:42,867 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:22:42,868 AM [test-akka.actor.default-dispatcher-16] [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]]]] 11:22:42,868 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 11:22:42,868 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 2 11:22:42,868 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 1 to 2 11:22:42,868 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 2 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 11:22:42,868 AM [test-akka.actor.default-dispatcher-7] [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]]]] 11:22:42,868 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 1 for term 1 11:22:42,868 AM [test-akka.actor.default-dispatcher-16] [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 11:22:42,868 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=2 [WARN] [03/11/2024 11:22:42.868] [test-akka.actor.default-dispatcher-7] [akka://test/user/new-server436] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2d3ae36a 11:22:42,972 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 2 11:22:42,972 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 11:22:42,972 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:22:42,972 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 2 11:22:42,972 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from 1 to 2 11:22:42,972 AM [test-akka.actor.default-dispatcher-17] [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]]] 11:22:42,973 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=2 11:22:43,5 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoExistingFollower ending 11:22:43,5 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower434] 11:22:43,16 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector435#-1390611054] 11:22:43,16 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server436] 11:22:43,17 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader437] 11:22:43,17 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector438] 11:22:43,19 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout starting [WARN] [03/11/2024 11:22:43.023] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@3123a6df 11:22:43,24 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node1 with journal batch size 1000 11:22:43,27 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=1, votedFor=node1 11:22:43,27 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 11:22:43,27 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING]] 11:22:43,27 AM [test-akka.actor.default-dispatcher-18] [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/11/2024 11:22:43.027] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@a8850dc 11:22:43,28 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node2 with journal batch size 1000 11:22:43,30 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=1, votedFor=node1 11:22:43,30 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 11:22:43,30 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: false, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 11:22:43,30 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 1, size: 1 11:22:43,30 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received apply journal entries for recovery, applying to state: 0 to 1 11:22:43,30 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from -1 to 1 11:22:43,30 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Recovery completed in 51.62 μs - Switching actor to Follower - last log index = 1, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 2 11:22:43,38 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 11:22:43,39 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 11:22:43,39 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 11:22:43,39 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 11:22:43,39 AM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:43,39 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 11:22:43,39 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 11:22:43,39 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=2, votedFor=node1 11:22:43,39 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 2 11:22:43,39 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 11:22:43,39 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:22:43,39 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:22:43,39 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Cluster state: [] 11:22:43,39 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Candidate in requestVote:RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] with higher term appears reachable, updating term. 11:22:43,39 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Term 2 in "RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1]" message is greater than follower's term 1 - updating term 11:22:43,39 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=2, votedFor=null 11:22:43,39 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): In requestVote: RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] - currentTerm: 2, votedFor: null, lastIndex: 1, lastTerm: 1 11:22:43,40 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 11:22:43,40 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): RaftRPC message received RequestVoteReply [term=2, voteGranted=false], my term is 2 11:22:43,40 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): handleRequestVoteReply: RequestVoteReply [term=2, voteGranted=false], current voteCount: 1 11:22:43,352 AM [test-akka.actor.default-dispatcher-6] [WARN] RaftActorServerConfigurationSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 11:22:43,352 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=NON_VOTING]] 11:22:43,353 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 11:22:43,353 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: Found server ActorSelection[Anchor(akka://test/), Path(/user/node2)] to forward to 11:22:43,354 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]], state: Idle 11:22:43,354 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 11:22:43,354 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node2: Sending local ElectionTimeout to start leader election 11:22:43,354 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=VOTING]] 11:22:43,354 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Received TimeoutNow - switching to Candidate 11:22:43,354 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Election: Candidate has following voting peers: [node1] 11:22:43,354 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=3, votedFor=node2 11:22:43,354 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Starting new election term 3 11:22:43,354 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Sending RequestVote [term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1] to peer node1 11:22:43,355 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:22:43,355 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:22:43,355 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Cluster state: [] 11:22:43,355 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1] with higher term appears reachable, updating term. 11:22:43,355 AM [test-akka.actor.default-dispatcher-13] [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 11:22:43,355 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=3, votedFor=null 11:22:43,355 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): In requestVote: RequestVote [term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1] - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 11:22:43,355 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=3, votedFor=node2 11:22:43,355 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 11:22:43,358 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 11:22:43,358 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 11:22:43,359 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Election: Leader has following peers: [node1] 11:22:43,359 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:43,359 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:22:43,359 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node2: New leader node2 elected 11:22:43,359 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 11:22:43,359 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 11:22:43,359 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 11:22:43,359 AM [test-akka.actor.default-dispatcher-17] [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]]]] [WARN] [03/11/2024 11:22:43.359] [test-akka.actor.default-dispatcher-6] [akka://test/user/node1] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@53e038b7 11:22:43,360 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=19957693-2843-499b-bbcf-385894258b75}, logIndex: 2, isSendImmediate: true 11:22:43,360 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:22:43,360 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]] 11:22:43,360 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 11:22:43,360 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 11:22:43,360 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: fakeSnapshot purging log to 0 for term 3 11:22:43,360 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:22:43,360 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): sendAppendEntries: 1 is present for follower node1 11:22:43,360 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Sending AppendEntries to follower node1: AppendEntries [leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=2], SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]]]] [WARN] [03/11/2024 11:22:43.360] [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@5b66317f 11:22:43,361 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): sendAppendEntries: 1 is present for follower node1 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [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]]]]]] 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Number of entries to be appended = 2 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Append entry to log 2 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=2] 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [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]]]] 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=akka://test/user/node2, votingState=VOTING]] 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Log size is now 3 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Commit index set to 1 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [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] 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 0 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from -1 to 0 11:22:43,361 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=false]]] 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 1 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from 0 to 1 11:22:43,361 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 1 data 2 11:22:43,362 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 2, nextIndex: 3 11:22:43,362 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 11:22:43,362 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Setting last applied to 2 11:22:43,362 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from 1 to 2 11:22:43,362 AM [test-akka.actor.default-dispatcher-13] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: applyState called: 2 11:22:43,362 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: fakeSnapshot purging log to 0 for term 3 11:22:43,362 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Applying state for log index 2 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 11:22:43,362 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: fakeSnapshot purging log to 1 for term 3 11:22:43,362 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:22:43,362 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupport - node2: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] has been successfully replicated to a majority of followers 11:22:43,362 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persisting ApplyJournalEntries with index=2 11:22:43,363 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=2] 11:22:43,364 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 11:22:43,364 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Persisting ApplyJournalEntries with index=1 11:22:43,364 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Commit index set to 2 11:22:43,365 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 11:22:43,365 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:22:43,365 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 2 11:22:43,365 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from 1 to 2 11:22:43,365 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 2 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 11:22:43,365 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: fakeSnapshot purging log to 1 for term 3 11:22:43,365 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Persisting ApplyJournalEntries with index=2 11:22:43,412 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout ending 11:22:43,412 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower439] 11:22:43,423 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector440#-1799450899] 11:22:43,423 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node1] 11:22:43,424 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector441#1540210502] 11:22:43,424 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node2] 11:22:43,426 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoConsensusReached starting [WARN] [03/11/2024 11:22:43.427] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server444]: org.opendaylight.controller.cluster.common.actor.Monitor@2597573e 11:22:43,428 AM [test-akka.actor.default-dispatcher-13] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 11:22:43,430 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 11:22:43,431 AM [test-akka.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [03/11/2024 11:22:43.528] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader445]: org.opendaylight.controller.cluster.common.actor.Monitor@1536234b 11:22:43,529 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:43,529 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:43,530 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:43,532 AM [test-akka.actor.default-dispatcher-13] [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 11:22:43,533 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 11:22:43,741 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server444, votingMember=true], state: Idle 11:22:43,742 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server444, votingMember=true] 11:22:43,742 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. 11:22:43,742 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 11:22:43,742 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 11:22:43,742 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 11:22:43,742 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 11:22:43,742 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] 11:22:43,742 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:22:43,742 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 11:22:43,743 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 11:22:43,743 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 11:22:43,743 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 11:22:43,743 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server444), Chunk: 1/1 11:22:43,743 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 11:22:43,743 AM [test-akka.actor.default-dispatcher-13] [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 11:22:43,743 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 11:22:43,743 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:43,743 AM [test-akka.actor.default-dispatcher-13] [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] 11:22:43,743 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 11:22:43,743 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:22:43,743 AM [test-akka.actor.default-dispatcher-13] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 11:22:43,745 AM [test-akka.actor.default-dispatcher-13] [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] 11:22:43,745 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:22:43,745 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 11:22:43,746 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to -1 11:22:43,746 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:43,746 AM [test-akka.actor.default-dispatcher-13] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 11:22:43,746 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] [WARN] [03/11/2024 11:22:43.746] [test-akka.actor.default-dispatcher-13] [akka://test/user/new-server444] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1f0cd455 11:22:43,746 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 11:22:43,746 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 11:22:43,746 AM [test-akka.actor.default-dispatcher-13] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 11:22:43,746 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 11:22:43,792 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 11:22:43,792 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:22:43,792 AM [test-akka.actor.default-dispatcher-13] [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]]]] 11:22:43,792 AM [test-akka.actor.default-dispatcher-13] [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]]]] 11:22:43,792 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=1aa84645-a8d7-47c2-a01f-98b7fa7c0828}, logIndex: 0, isSendImmediate: true 11:22:43,792 AM [test-akka.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:43,793 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:43,793 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:22:43,793 AM [test-akka.actor.default-dispatcher-13] [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]]]]]] 11:22:43,793 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server444, votingMember=true] 11:22:43,794 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:43,842 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 11:22:43,842 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 11:22:43,862 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:22:43,982 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:22:43,982 AM [test-akka.actor.default-dispatcher-13] [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]]]]]] 11:22:44,102 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:22:44,102 AM [test-akka.actor.default-dispatcher-13] [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]]]]]] 11:22:44,221 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:22:44,222 AM [test-akka.actor.default-dispatcher-6] [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]]]]]] 11:22:44,342 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:22:44,342 AM [test-akka.actor.default-dispatcher-6] [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]]]]]] 11:22:44,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:22:44,462 AM [test-akka.actor.default-dispatcher-13] [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]]]]]] 11:22:44,582 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:22:44,582 AM [test-akka.actor.default-dispatcher-6] [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]]]]]] 11:22:44,702 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:22:44,702 AM [test-akka.actor.default-dispatcher-6] [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]]]]]] 11:22:45,811 AM [test-akka.actor.default-dispatcher-6] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured while replicating the new server configuration for new-server 11:22:45,811 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 11:22:45,812 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 11:22:45,812 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 11:22:45,812 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoConsensusReached ending 11:22:45,812 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower442] 11:22:45,823 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector443#310695513] 11:22:45,829 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server444] 11:22:45,829 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader445] 11:22:45,830 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector446] 11:22:45,830 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-serverCollector447] 11:22:45,835 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerLeaderWithNoFollowers starting [WARN] [03/11/2024 11:22:45.836] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader449]: org.opendaylight.controller.cluster.common.actor.Monitor@20eab475 11:22:45,836 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:45,836 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:45,836 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:45,838 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 11:22:45,839 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 11:22:45,847 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 11:22:45,847 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerLeaderWithNoFollowers ending 11:22:45,847 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower448] 11:22:45,858 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader449] 11:22:45,961 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete starting [WARN] [03/11/2024 11:22:45.963] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server452]: org.opendaylight.controller.cluster.common.actor.Monitor@46eefa37 11:22:45,964 AM [test-akka.actor.default-dispatcher-13] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 11:22:45,966 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 11:22:45,967 AM [test-akka.actor.default-dispatcher-17] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [03/11/2024 11:22:46.064] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader453]: org.opendaylight.controller.cluster.common.actor.Monitor@72a3601b 11:22:46,65 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:46,65 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:46,65 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:46,67 AM [test-akka.actor.default-dispatcher-13] [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 11:22:46,68 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 11:22:46,168 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 11:22:46,168 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. 11:22:46,168 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=true] 11:22:46,168 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 11:22:46,168 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 11:22:46,168 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] 11:22:46,168 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 11:22:46,168 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:22:46,178 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server452, votingMember=true], state: Idle 11:22:46,178 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server452, votingMember=true] 11:22:46,178 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - captureToInstall should not be called in state Persisting 11:22:46,178 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Snapshot already in progress - waiting for completion [WARN] [03/11/2024 11:22:46.179] [test-akka.actor.default-dispatcher-17] [akka://test/user/leader453] unhandled message from TestActor[akka://test/user/leader453]: org.opendaylight.controller.cluster.raft.base.messages.TimeoutNow@54345352 11:22:46,179 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 11:22:46,179 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: handleInstallSnapshotTimeout for new server new-server 11:22:46,179 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server452, votingMember=true] 11:22:46,180 AM [test-akka.actor.default-dispatcher-6] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 11:22:46,180 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 11:22:46,180 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete ending 11:22:46,180 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower450] 11:22:46,191 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector451#1456942650] 11:22:46,191 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server452] 11:22:46,191 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader453] 11:22:46,192 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector454] 11:22:46,194 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServersAsNonVoting starting [WARN] [03/11/2024 11:22:46.196] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server457]: org.opendaylight.controller.cluster.common.actor.Monitor@752e697d 11:22:46,197 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/11/2024 11:22:46.198] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader458]: org.opendaylight.controller.cluster.common.actor.Monitor@2f271625 11:22:46,198 AM [test-akka.actor.default-dispatcher-13] [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 11:22:46,199 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:46,199 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:46,199 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:46,199 AM [test-akka.actor.default-dispatcher-13] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 11:22:46,200 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 11:22:46,201 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 11:22:46,311 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server457, votingMember=false], state: Idle 11:22:46,311 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server457, votingMember=false] 11:22:46,311 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: New follower is non-voting - directly persisting new server configuration 11:22:46,311 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 11:22:46,311 AM [test-akka.actor.default-dispatcher-13] [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]]]] 11:22:46,311 AM [test-akka.actor.default-dispatcher-13] [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]]]] 11:22:46,312 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=85e52886-c3ae-4d27-b240-f5f32891c74c}, logIndex: 0, isSendImmediate: true 11:22:46,312 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 11:22:46,312 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 11:22:46,312 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 11:22:46,312 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:46,312 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server457, votingMember=false] 11:22:46,312 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 11:22:46,312 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:46,313 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 11:22:46,313 AM [test-akka.actor.default-dispatcher-13] [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 11:22:46,313 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 11:22:46,313 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 11:22:46,313 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:46,313 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:22:46,313 AM [test-akka.actor.default-dispatcher-13] [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]]]]]] 11:22:46,314 AM [test-akka.actor.default-dispatcher-7] [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]]]] 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [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]]]]]] [WARN] [03/11/2024 11:22:46.314] [test-akka.actor.default-dispatcher-17] [akka://test/user/new-server457] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@33f4e6e6 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [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]]]] 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 0 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [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] 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 0 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to 0 11:22:46,314 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 11:22:46,314 AM [test-akka.actor.default-dispatcher-13] [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]]] 11:22:46,315 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:46,315 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:46,316 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=0 [WARN] [03/11/2024 11:22:46.315] [test-akka.actor.default-dispatcher-17] [akka://test/user/new-server457] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@38e4c4a9 11:22:46,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:46,543 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:46,662 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:46,783 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:46,866 AM [main] [DEBUG] RaftActorServerConfigurationSupportTest - new-server2: Set currentTerm=1, votedFor=leader 11:22:46,866 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower455, votingMember=false], state: Idle 11:22:46,867 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower455, votingMember=false] 11:22:46,867 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: New follower is non-voting - directly persisting new server configuration 11:22:46,867 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 11:22:46,867 AM [test-akka.actor.default-dispatcher-7] [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]]]] 11:22:46,867 AM [test-akka.actor.default-dispatcher-7] [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]]]] 11:22:46,867 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=357cd81d-8f59-4ce5-ad97-8424402df547}, logIndex: 1, isSendImmediate: true 11:22:46,867 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 1 11:22:46,867 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 0 to 1 11:22:46,868 AM [test-akka.actor.default-dispatcher-7] [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]]] 11:22:46,868 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:46,868 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 1 is present for follower new-server 11:22:46,868 AM [test-akka.actor.default-dispatcher-7] [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]]]]]] 11:22:46,868 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:46,868 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower455, votingMember=false] 11:22:46,868 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]]]] 11:22:46,868 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 11:22:46,868 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:22:46,868 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 11:22:46,868 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:46,869 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=new-server2, address=null, votingState=NON_VOTING]] 11:22:46,869 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 2 11:22:46,869 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 1 11:22:46,869 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=new-server, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:22:46,869 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 11:22:46,869 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:22:46,869 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 1 11:22:46,869 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from 0 to 1 11:22:46,869 AM [test-akka.actor.default-dispatcher-7] [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 11:22:46,869 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 11:22:46,869 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=1 11:22:46,869 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 11:22:46,869 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:46,869 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 [ERROR] [03/11/2024 11:22:46.869] [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) 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) 11:22:46,871 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServersAsNonVoting ending 11:22:46,871 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower455] 11:22:46,872 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:46,872 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]]]] 11:22:46,872 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=1 11:22:46,882 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector456#-930010659] 11:22:46,882 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server457] 11:22:46,882 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader458] 11:22:46,882 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector459] 11:22:46,885 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithPriorSnapshotInProgress starting [WARN] [03/11/2024 11:22:46.886] [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@9adbf3b 11:22:46,887 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/11/2024 11:22:46.888] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader463]: org.opendaylight.controller.cluster.common.actor.Monitor@372481be 11:22:46,889 AM [test-akka.actor.default-dispatcher-13] [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 11:22:46,889 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:46,889 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:46,889 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:46,889 AM [test-akka.actor.default-dispatcher-13] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 11:22:46,890 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 11:22:46,890 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 11:22:46,989 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 11:22:46,989 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. 11:22:46,989 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] 11:22:46,989 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 11:22:46,990 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 11:22:46,990 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] 11:22:46,990 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 11:22:46,990 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:22:46,990 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 11:22:46,990 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 11:22:47,50 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server462, votingMember=true], state: Idle 11:22:47,50 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server462, votingMember=true] 11:22:47,50 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. 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - commit should not be called in state Creating 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 11:22:47,51 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] 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server462), Chunk: 1/1 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 11:22:47,51 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 11:22:47,52 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 11:22:47,52 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:47,52 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] 11:22:47,52 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 11:22:47,52 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:22:47,52 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 11:22:47,54 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying snapshot on follower: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=null, ServerConfigPayload=null] [WARN] [03/11/2024 11:22:47.054] [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@1bdbcf1a 11:22:47,54 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:22:47,54 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 11:22:47,54 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to -1 11:22:47,54 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:47,54 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 11:22:47,54 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 11:22:47,54 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 11:22:47,54 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 11:22:47,54 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 11:22:47,54 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 11:22:47,55 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 11:22:47,55 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:22:47,55 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]]]] 11:22:47,55 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]]]] 11:22:47,55 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=4c127239-a4e6-440e-b059-7a33cbbf3150}, logIndex: 0, isSendImmediate: true 11:22:47,55 AM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:47,55 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 11:22:47,55 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:22:47,55 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]]]]]] 11:22:47,55 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] 11:22:47,56 AM [test-akka.actor.default-dispatcher-6] [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]]]]]] 11:22:47,56 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 11:22:47,56 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:22:47,56 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 11:22:47,56 AM [test-akka.actor.default-dispatcher-6] [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]]]] 11:22:47,56 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 11:22:47,56 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 11:22:47,56 AM [test-akka.actor.default-dispatcher-6] [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] 11:22:47,56 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:22:47,56 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 11:22:47,57 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 11:22:47,57 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]]]] 11:22:47,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:22:47,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 11:22:47,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 11:22:47,57 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]]] 11:22:47,57 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 11:22:47,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 11:22:47,57 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] [WARN] [03/11/2024 11:22:47.058] [test-akka.actor.default-dispatcher-16] [akka://test/user/new-server462] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@521ab3d7 11:22:47,107 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithPriorSnapshotInProgress ending 11:22:47,107 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower460] 11:22:47,118 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector461#1608764176] 11:22:47,119 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server462] 11:22:47,119 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader463] 11:22:47,119 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector464] 11:22:47,121 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeLeaderToNonVotingInSingleNode starting 11:22:47,123 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:47,123 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:47,123 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 [WARN] [03/11/2024 11:22:47.123] [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@7295cdf5 11:22:47,125 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 11:22:47,126 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 11:22:47,134 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 11:22:47,134 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 11:22:47,134 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning INVALID_REQUEST for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 11:22:47,134 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeLeaderToNonVotingInSingleNode ending 11:22:47,134 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower465] 11:22:47,145 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader466] 11:22:47,148 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeLeaderToNonVoting starting [WARN] [03/11/2024 11:22:47.149] [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@4b20ae3b 11:22:47,149 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:47,149 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:47,150 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:47,151 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 11:22:47,151 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower2, follower] 11:22:47,151 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:22:47,152 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/11/2024 11:22:47.152] [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@4225dec6 [WARN] [03/11/2024 11:22:47.152] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower2469] received dead letter from TestActor[akka://test/user/leader470]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [03/11/2024 11:22:47.152] [test-akka.actor.default-dispatcher-17] [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=[]] 11:22:47,152 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower with journal batch size 1000 11:22:47,153 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 [WARN] [03/11/2024 11:22:47.254] [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@202e5fba 11:22:47,255 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower2 with journal batch size 1000 11:22:47,256 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:22:47,262 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 11:22:47,262 AM [test-akka.actor.default-dispatcher-6] [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 11:22:47,262 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=1, votedFor=null 11:22:47,262 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=1, votedFor=null 11:22:47,262 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 11:22:47,262 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 11:22:47,262 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 11:22:47,262 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 11:22:47,262 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 11:22:47,262 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/11/2024 11:22:47.263] [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@1232e216 [WARN] [03/11/2024 11:22:47.264] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower468] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@72cc3b97 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [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]] 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]] 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=180e2763-8ad4-49fc-8083-8f9d0f16239c}, logIndex: 0, isSendImmediate: true 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower2 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-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]]]]]] 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower 11:22:47,266 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-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]]]]]] 11:22:47,267 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 11:22:47,267 AM [test-akka.actor.default-dispatcher-18] [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]]]]]] 11:22:47,267 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Number of entries to be appended = 1 11:22:47,267 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:22:47,267 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]]]] 11:22:47,267 AM [test-akka.actor.default-dispatcher-18] [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]]] 11:22:47,267 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 11:22:47,267 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:22:47,267 AM [test-akka.actor.default-dispatcher-18] [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]]]] 11:22:47,267 AM [test-akka.actor.default-dispatcher-6] [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]]] 11:22:47,267 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 11:22:47,267 AM [test-akka.actor.default-dispatcher-18] [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]] 11:22:47,267 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Log size is now 1 11:22:47,267 AM [test-akka.actor.default-dispatcher-18] [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] 11:22:47,267 AM [test-akka.actor.default-dispatcher-6] [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]] 11:22:47,267 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 1 11:22:47,267 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:22:47,267 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:22:47,267 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 11:22:47,267 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:22:47,267 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:47,268 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 11:22:47,268 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 11:22:47,269 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=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 11:22:47,269 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:22:47,269 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 11:22:47,269 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 11:22:47,269 AM [test-akka.actor.default-dispatcher-17] [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]]] 11:22:47,269 AM [test-akka.actor.default-dispatcher-17] [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 11:22:47,269 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - Leader changed to non-voting - trying leadership transfer 11:22:47,269 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 11:22:47,269 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Initiating leader transfer 11:22:47,269 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]]]] [WARN] [03/11/2024 11:22:47.269] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower2469] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7befbb4f 11:22:47,270 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorLeadershipTransferCohort - leader: pauseLeader successfully completed - doing transfer 11:22:47,270 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 11:22:47,270 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 11:22:47,270 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Attempting to transfer leadership 11:22:47,270 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:47,270 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 [WARN] [03/11/2024 11:22:47.270] [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@2f67b8fe 11:22:47,270 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 11:22:47,270 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Commit index set to 0 11:22:47,270 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Commit index set to 0 11:22:47,270 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:47,270 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:22:47,270 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:47,270 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Setting last applied to 0 11:22:47,270 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:22:47,270 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Moving last applied index from -1 to 0 11:22:47,270 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Setting last applied to 0 11:22:47,270 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Moving last applied index from -1 to 0 11:22:47,270 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower2, matchIndex: 0, lastIndex: 0, isVoting: true 11:22:47,270 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Follower's log matches - sending ElectionTimeout 11:22:47,270 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:47,270 AM [test-akka.actor.default-dispatcher-13] [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]]] 11:22:47,270 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]]] 11:22:47,270 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 11:22:47,270 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Leader transfer complete 11:22:47,270 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader transfer complete - waiting for new leader 11:22:47,271 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Persisting ApplyJournalEntries with index=0 11:22:47,271 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:47,271 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:47,271 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Persisting ApplyJournalEntries with index=0 11:22:47,271 AM [test-akka.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:47,271 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Received TimeoutNow - switching to Candidate 11:22:47,271 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Candidate): Election: Candidate has following voting peers: [follower] 11:22:47,271 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=2, votedFor=follower2 11:22:47,271 AM [test-akka.actor.default-dispatcher-13] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Candidate): Starting new election term 2 11:22:47,271 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Candidate): Sending RequestVote [term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1] to peer follower 11:22:47,271 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:22:47,271 AM [test-akka.actor.default-dispatcher-13] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:22:47,271 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Cluster state: [] 11:22:47,271 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Candidate in requestVote:RequestVote [term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1] with higher term appears reachable, updating term. 11:22:47,271 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Term 2 in "RequestVote [term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1]" message is greater than follower's term 1 - updating term 11:22:47,271 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=2, votedFor=null 11:22:47,271 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): In requestVote: RequestVote [term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1] - currentTerm: 2, votedFor: null, lastIndex: 0, lastTerm: 1 11:22:47,271 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=2, votedFor=follower2 11:22:47,271 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): requestVote returning: RequestVoteReply [term=2, voteGranted=true] 11:22:47,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Candidate): RaftRPC message received RequestVoteReply [term=2, voteGranted=true], my term is 2 11:22:47,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Candidate): handleRequestVoteReply: RequestVoteReply [term=2, voteGranted=true], current voteCount: 1 11:22:47,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): Election: Leader has following peers: [leader, follower] 11:22:47,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): Checking sendAppendEntries for follower leader: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:47,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:47,272 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:22:47,272 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Term 2 in "AppendEntries [leaderId=follower2, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than leader's term 1 - switching to Follower 11:22:47,272 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=2, votedFor=null 11:22:47,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader follower2, need to catch up to -1 11:22:47,272 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader) :- Switching from behavior Leader to Follower, election term: 2 11:22:47,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 11:22:47,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [03/11/2024 11:22:47.273] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower468] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@230da7ae 11:22:47,273 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) [WARN] [03/11/2024 11:22:47.273] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower468] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@325ac742 11:22:47,792 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - leader: Last sync leader does not match current leader follower2, need to catch up to -1 11:22:47,792 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) 11:22:47,793 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader changed to follower2 11:22:47,793 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): handleAppendEntriesReply - FollowerLogInformation for leader updated: matchIndex: 0, nextIndex: 1 11:22:47,793 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): Checking sendAppendEntries for follower leader: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:47,793 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorLeadershipTransferCohort - leader: Successfully transferred leadership to follower2 in 523.5 ms 11:22:47,793 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: leader transfer succeeded after change to non-voting 11:22:47,794 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - leader: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) [WARN] [03/11/2024 11:22:47.794] [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@6fde55bb [WARN] [03/11/2024 11:22:47.794] [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@3a4c9996 11:22:47,823 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeLeaderToNonVoting ending 11:22:47,824 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower467] 11:22:47,835 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader470] 11:22:47,835 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector471] 11:22:47,835 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector472#-1697943867] 11:22:47,836 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower468] 11:22:47,836 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector473#-869231694] 11:22:47,836 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower2469] 11:22:47,938 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testOnApplyState starting 11:22:47,940 AM [test-akka.actor.default-dispatcher-6] [INFO] MockRaftActor - Starting recovery for leader with journal batch size 1000 [WARN] [03/11/2024 11:22:47.940] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader475]: org.opendaylight.controller.cluster.common.actor.Monitor@34693785 11:22:47,941 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testOnApplyState ending 11:22:47,941 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower474] 11:22:47,943 AM [test-akka.actor.default-dispatcher-12] [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 11:22:47,951 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader475] 11:22:47,953 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServer starting [WARN] [03/11/2024 11:22:47.954] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader479]: org.opendaylight.controller.cluster.common.actor.Monitor@8321e74 11:22:47,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:47,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:47,955 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:47,957 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 11:22:47,958 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower2, follower, downNode] 11:22:47,958 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:22:47,958 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:22:47,958 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:22:47,958 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower with journal batch size 1000 [WARN] [03/11/2024 11:22:47.958] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower477]: org.opendaylight.controller.cluster.common.actor.Monitor@497d0586 [WARN] [03/11/2024 11:22:47.959] [test-akka.actor.default-dispatcher-6] [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/11/2024 11:22:47.959] [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=[]] 11:22:47,960 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:22:47,960 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 11:22:47,960 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=1, votedFor=null 11:22:47,960 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 11:22:47,960 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 11:22:47,961 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/11/2024 11:22:47.961] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower477] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@11f27fe3 [WARN] [03/11/2024 11:22:48.059] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower2478]: org.opendaylight.controller.cluster.common.actor.Monitor@69e0338f 11:22:48,60 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower2 with journal batch size 1000 11:22:48,62 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:22:48,72 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 11:22:48,72 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=1, votedFor=null 11:22:48,72 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:22:48,72 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 11:22:48,72 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 11:22:48,72 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/11/2024 11:22:48.072] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower477] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3a1589d4 [WARN] [03/11/2024 11:22:48.073] [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=[]] [WARN] [03/11/2024 11:22:48.073] [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@4e9e2471 11:22:48,74 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 11:22:48,74 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:22:48,74 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=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:48,74 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=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:48,74 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=7f38dbb3-9ac8-4d20-b3ca-c124bf32062b}, logIndex: 0, isSendImmediate: true 11:22:48,74 AM [test-akka.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:48,74 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 11:22:48,74 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower2 11:22:48,75 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 11:22:48,75 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:48,75 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation RemoveServer{serverId='follower'} 11:22:48,75 AM [test-akka.actor.default-dispatcher-6] [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]]]]]] 11:22:48,75 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Number of entries to be appended = 1 11:22:48,75 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:22:48,75 AM [test-akka.actor.default-dispatcher-6] [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]]] 11:22:48,75 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:48,75 AM [test-akka.actor.default-dispatcher-6] [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]] 11:22:48,75 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Log size is now 1 11:22:48,75 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower2, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:22:48,75 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:22:48,75 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 11:22:48,75 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 [WARN] [03/11/2024 11:22:48.075] [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=[]] 11:22:48,76 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=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:48,76 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:22:48,76 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 11:22:48,76 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 11:22:48,76 AM [test-akka.actor.default-dispatcher-17] [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]]] 11:22:48,76 AM [test-akka.actor.default-dispatcher-17] [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 11:22:48,76 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/11/2024 11:22:48.076] [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@490a0bdf 11:22:48,76 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 [WARN] [03/11/2024 11:22:48.076] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower477] unhandled message from TestActor[akka://test/user/leader479]: ServerRemoved [serverId=follower] 11:22:48,192 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Commit index set to 0 11:22:48,192 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:48,192 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:22:48,192 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Setting last applied to 0 11:22:48,192 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Moving last applied index from -1 to 0 11:22:48,192 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 11:22:48,193 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Persisting ApplyJournalEntries with index=0 [WARN] [03/11/2024 11:22:48.193] [test-akka.actor.default-dispatcher-13] [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=[]] 11:22:48,227 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServer ending 11:22:48,227 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower476] 11:22:48,238 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader479] 11:22:48,238 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector480] 11:22:48,239 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector481#1162177410] 11:22:48,239 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower477] 11:22:48,239 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector482#-628963103] 11:22:48,239 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower2478] 11:22:48,341 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoLeader starting [WARN] [03/11/2024 11:22:48.343] [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@687a664d 11:22:48,344 AM [test-akka.actor.default-dispatcher-13] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 11:22:48,346 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:22:48,347 AM [test-akka.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [03/11/2024 11:22:48.444] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader486]: org.opendaylight.controller.cluster.common.actor.Monitor@1a839881 11:22:48,445 AM [test-akka.actor.default-dispatcher-16] [INFO] MockRaftActor - Starting recovery for leader with journal batch size 1000 11:22:48,447 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 11:22:48,555 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server485, votingMember=true], state: Idle 11:22:48,555 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: No leader - returning NO_LEADER reply 11:22:48,555 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoLeader ending 11:22:48,556 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower483] 11:22:48,566 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector484#1044329327] 11:22:48,567 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server485] 11:22:48,567 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader486] 11:22:48,569 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeServersVotingStatus starting [WARN] [03/11/2024 11:22:48.571] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader490]: org.opendaylight.controller.cluster.common.actor.Monitor@675f12e4 11:22:48,572 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:48,572 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:48,572 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:48,574 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 11:22:48,574 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower2, follower] 11:22:48,574 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:22:48,575 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/11/2024 11:22:48.575] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower2489] received dead letter from TestActor[akka://test/user/leader490]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 11:22:48,575 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower with journal batch size 1000 [WARN] [03/11/2024 11:22:48.575] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower488]: org.opendaylight.controller.cluster.common.actor.Monitor@3077b8b7 [WARN] [03/11/2024 11:22:48.575] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower488] 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=[]] 11:22:48,577 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/11/2024 11:22:48.676] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower2489]: org.opendaylight.controller.cluster.common.actor.Monitor@9810d6a 11:22:48,677 AM [test-akka.actor.default-dispatcher-13] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower2 with journal batch size 1000 11:22:48,678 AM [test-akka.actor.default-dispatcher-13] [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 11:22:48,688 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]], state: Idle 11:22:48,688 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 11:22:48,688 AM [test-akka.actor.default-dispatcher-13] [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]] 11:22:48,688 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 11:22:48,688 AM [test-akka.actor.default-dispatcher-13] [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]]]] 11:22:48,688 AM [test-akka.actor.default-dispatcher-13] [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]]]] 11:22:48,689 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=4dcd095f-16d7-4119-b2cf-22bea0b03c40}, logIndex: 0, isSendImmediate: true 11:22:48,689 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 11:22:48,689 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 11:22:48,689 AM [test-akka.actor.default-dispatcher-13] [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]]] 11:22:48,689 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:48,689 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:48,689 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 11:22:48,689 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]] 11:22:48,689 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=1, votedFor=null 11:22:48,689 AM [test-akka.actor.default-dispatcher-11] [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 11:22:48,690 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 11:22:48,690 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=1, votedFor=null 11:22:48,690 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:22:48,690 AM [test-akka.actor.default-dispatcher-13] [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 11:22:48,690 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 11:22:48,690 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 11:22:48,690 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:48,690 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower2 11:22:48,690 AM [test-akka.actor.default-dispatcher-13] [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]]]]]] 11:22:48,691 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 11:22:48,691 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:48,691 AM [test-akka.actor.default-dispatcher-13] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower 11:22:48,691 AM [test-akka.actor.default-dispatcher-13] [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]]]]]] 11:22:48,691 AM [test-akka.actor.default-dispatcher-13] [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]]]] 11:22:48,692 AM [test-akka.actor.default-dispatcher-11] [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]]]]]] 11:22:48,692 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Number of entries to be appended = 1 11:22:48,692 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 [WARN] [03/11/2024 11:22:48.692] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower2489] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@f700be5 11:22:48,692 AM [test-akka.actor.default-dispatcher-11] [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]]] [WARN] [03/11/2024 11:22:48.692] [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@18d83256 11:22:48,692 AM [test-akka.actor.default-dispatcher-11] [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]]]] 11:22:48,692 AM [test-akka.actor.default-dispatcher-16] [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]]]]]] 11:22:48,692 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 11:22:48,692 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:22:48,692 AM [test-akka.actor.default-dispatcher-16] [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]]] 11:22:48,692 AM [test-akka.actor.default-dispatcher-11] [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]] 11:22:48,692 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Log size is now 1 11:22:48,692 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Commit index set to 0 11:22:48,692 AM [test-akka.actor.default-dispatcher-11] [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] 11:22:48,692 AM [test-akka.actor.default-dispatcher-16] [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]]]] 11:22:48,693 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:48,693 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:22:48,693 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Setting last applied to 0 11:22:48,693 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Moving last applied index from -1 to 0 11:22:48,693 AM [test-akka.actor.default-dispatcher-16] [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]] 11:22:48,693 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 1 11:22:48,693 AM [test-akka.actor.default-dispatcher-11] [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]]] 11:22:48,693 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Commit index set to 0 11:22:48,693 AM [test-akka.actor.default-dispatcher-16] [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] 11:22:48,693 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:22:48,693 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:22:48,693 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Setting last applied to 0 11:22:48,693 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Moving last applied index from -1 to 0 11:22:48,693 AM [test-akka.actor.default-dispatcher-16] [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]]] 11:22:48,693 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 11:22:48,693 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:48,693 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 11:22:48,693 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 11:22:48,699 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]]]] 11:22:48,699 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Persisting ApplyJournalEntries with index=0 11:22:48,699 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=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:48,699 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Persisting ApplyJournalEntries with index=0 [WARN] [03/11/2024 11:22:48.699] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower2489] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2e656af4 [WARN] [03/11/2024 11:22:48.699] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower488] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@36bc00f2 11:22:48,744 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]], state: Idle 11:22:48,744 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 11:22:48,744 AM [test-akka.actor.default-dispatcher-12] [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]] 11:22:48,744 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:22:48,744 AM [test-akka.actor.default-dispatcher-12] [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]]]] 11:22:48,744 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=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:48,744 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=ebc96afe-c2f6-4370-9590-762c345fe28d}, logIndex: 1, isSendImmediate: true 11:22:48,744 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 1 11:22:48,744 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 0 to 1 11:22:48,745 AM [test-akka.actor.default-dispatcher-12] [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]]] 11:22:48,745 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:48,745 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 1 is present for follower follower2 11:22:48,745 AM [test-akka.actor.default-dispatcher-12] [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]]]]]] 11:22:48,745 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:48,745 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 1 is present for follower follower 11:22:48,745 AM [test-akka.actor.default-dispatcher-12] [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]]]]]] 11:22:48,745 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]] 11:22:48,745 AM [test-akka.actor.default-dispatcher-11] [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]]]]]] 11:22:48,746 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Number of entries to be appended = 1 11:22:48,746 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:22:48,746 AM [test-akka.actor.default-dispatcher-11] [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]]] 11:22:48,746 AM [test-akka.actor.default-dispatcher-12] [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 11:22:48,746 AM [test-akka.actor.default-dispatcher-11] [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]]]] 11:22:48,746 AM [test-akka.actor.default-dispatcher-18] [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]]]]]] 11:22:48,746 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=1 11:22:48,746 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 11:22:48,746 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:22:48,746 AM [test-akka.actor.default-dispatcher-11] [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]] 11:22:48,746 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Log size is now 2 11:22:48,746 AM [test-akka.actor.default-dispatcher-18] [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]]] 11:22:48,746 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Commit index set to 1 11:22:48,746 AM [test-akka.actor.default-dispatcher-18] [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]]]] 11:22:48,746 AM [test-akka.actor.default-dispatcher-11] [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] 11:22:48,746 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 11:22:48,746 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:22:48,746 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Setting last applied to 1 11:22:48,746 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Moving last applied index from 0 to 1 11:22:48,746 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 1, nextIndex: 2 11:22:48,746 AM [test-akka.actor.default-dispatcher-18] [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]] 11:22:48,746 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 0 for term 1 11:22:48,747 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 2 11:22:48,747 AM [test-akka.actor.default-dispatcher-11] [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]]] 11:22:48,747 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Commit index set to 1 11:22:48,747 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:22:48,747 AM [test-akka.actor.default-dispatcher-18] [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] 11:22:48,747 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 11:22:48,747 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:22:48,747 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Setting last applied to 1 11:22:48,747 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Moving last applied index from 0 to 1 11:22:48,747 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 11:22:48,747 AM [test-akka.actor.default-dispatcher-18] [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]]] 11:22:48,747 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:22:48,748 AM [test-akka.actor.default-dispatcher-18] [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]]]] 11:22:48,748 AM [test-akka.actor.default-dispatcher-12] [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]]]] 11:22:48,749 AM [test-akka.actor.default-dispatcher-18] [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]]]] 11:22:48,749 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Persisting ApplyJournalEntries with index=1 11:22:48,749 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Persisting ApplyJournalEntries with index=1 11:22:48,797 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeServersVotingStatus ending 11:22:48,797 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower487] 11:22:48,808 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader490] 11:22:48,808 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector491] 11:22:48,809 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector492#-1834345366] 11:22:48,809 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower488] 11:22:48,809 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector493#716267463] 11:22:48,809 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower2489] 11:22:48,912 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithExistingFollower starting [WARN] [03/11/2024 11:22:48.914] [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@557e8f74 11:22:48,915 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 11:22:48,917 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 11:22:48,918 AM [test-akka.actor.default-dispatcher-7] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 11:22:49,14 AM [main] [DEBUG] RaftActorServerConfigurationSupportTest - follower: Set currentTerm=1, votedFor=leader 11:22:49,14 AM [main] [DEBUG] RaftActorServerConfigurationSupportTest - follower: Moving last applied index from -1 to 2 [WARN] [03/11/2024 11:22:49.016] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader497]: org.opendaylight.controller.cluster.common.actor.Monitor@22936529 11:22:49,16 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 2 11:22:49,16 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor=leader 11:22:49,17 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:49,18 AM [test-akka.actor.default-dispatcher-7] [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 11:22:49,18 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower] 11:22:49,19 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:22:49,19 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 11:22:49,19 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 11:22:49,19 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 1 for term 1 11:22:49,19 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:22:49,19 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 11:22:49,19 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest - follower: fakeSnapshot purging log to 1 for term 1 11:22:49,132 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 11:22:49,132 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server496, votingMember=true], state: Idle 11:22:49,132 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server496, votingMember=true] 11:22:49,132 AM [test-akka.actor.default-dispatcher-7] [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 11:22:49,133 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 11:22:49,133 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 11:22:49,133 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 11:22:49,133 AM [test-akka.actor.default-dispatcher-7] [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] 11:22:49,134 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 11:22:49,134 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 11:22:49,134 AM [test-akka.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 338 bytes, total chunks to send: 1 11:22:49,134 AM [test-akka.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=338, offset=0, size=338, hashCode=1701166743 11:22:49,134 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 338 11:22:49,134 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server496), Chunk: 1/1 11:22:49,134 AM [test-akka.actor.default-dispatcher-18] [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 11:22:49,134 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 11:22:49,134 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:49,134 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 11:22:49,134 AM [test-akka.actor.default-dispatcher-18] [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] 11:22:49,134 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 2 11:22:49,134 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:22:49,134 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 11:22:49,136 AM [test-akka.actor.default-dispatcher-18] [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] 11:22:49,136 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 [WARN] [03/11/2024 11:22:49.136] [test-akka.actor.default-dispatcher-7] [akka://test/user/new-server496] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@60f225d0 11:22:49,136 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 11:22:49,136 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to 2 11:22:49,136 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:49,136 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 11:22:49,137 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] 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 11:22:49,137 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 2, nextIndex set to 3 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=1c972140-78ca-46ee-ab6a-ced70412c8ea}, logIndex: 3, isSendImmediate: true 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 3 is present for follower follower 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 3 is present for follower new-server 11:22:49,137 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 11:22:49,138 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server496, votingMember=true] 11:22:49,138 AM [test-akka.actor.default-dispatcher-11] [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]]]]]] 11:22:49,138 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Number of entries to be appended = 1 11:22:49,138 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 11:22:49,138 AM [test-akka.actor.default-dispatcher-12] [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]]]]]] 11:22:49,138 AM [test-akka.actor.default-dispatcher-11] [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]]] 11:22:49,138 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 11:22:49,138 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 11:22:49,138 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=, votingState=VOTING], PeerInfo [id=new-server, address=null, votingState=VOTING]] 11:22:49,138 AM [test-akka.actor.default-dispatcher-12] [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]]] 11:22:49,138 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Log size is now 2 11:22:49,138 AM [test-akka.actor.default-dispatcher-12] [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]]]] 11:22:49,138 AM [test-akka.actor.default-dispatcher-11] [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] 11:22:49,138 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 11:22:49,138 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 11:22:49,138 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 11:22:49,138 AM [test-akka.actor.default-dispatcher-12] [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]] 11:22:49,138 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 11:22:49,138 AM [test-akka.actor.default-dispatcher-12] [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] 11:22:49,138 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 11:22:49,138 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 2) 11:22:49,138 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 11:22:49,138 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 3 11:22:49,138 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 2 to 3 11:22:49,138 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 3 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 11:22:49,138 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 2 for term 1 11:22:49,139 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 3, nextIndex: 4 11:22:49,139 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 11:22:49,139 AM [test-akka.actor.default-dispatcher-12] [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 11:22:49,139 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=3 11:22:49,140 AM [test-akka.actor.default-dispatcher-12] [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]]]] 11:22:49,140 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 3 11:22:49,140 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 11:22:49,140 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 11:22:49,140 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 3 11:22:49,140 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from 2 to 3 [WARN] [03/11/2024 11:22:49.140] [test-akka.actor.default-dispatcher-11] [akka://test/user/new-server496] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1914d6eb 11:22:49,140 AM [test-akka.actor.default-dispatcher-12] [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]]] 11:22:49,140 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=3 11:22:49,253 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Commit index set to 3 11:22:49,253 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 11:22:49,253 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 11:22:49,253 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 11:22:49,253 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Setting last applied to 3 11:22:49,253 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest - follower: Moving last applied index from 2 to 3 11:22:49,253 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest - follower: fakeSnapshot purging log to 2 for term 1 11:22:49,285 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithExistingFollower ending 11:22:49,285 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower494] 11:22:49,296 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector495#1606615702] 11:22:49,296 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server496] 11:22:49,296 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader497] 11:22:49,297 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector498] 11:22:49,399 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerForwardedToLeader starting [WARN] [03/11/2024 11:22:49.401] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server501]: org.opendaylight.controller.cluster.common.actor.Monitor@c96ca01 11:22:49,402 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 11:22:49,403 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 11:22:49,404 AM [test-akka.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [03/11/2024 11:22:49.404] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower503]: org.opendaylight.controller.cluster.common.actor.Monitor@9e1ed9d 11:22:49,405 AM [test-akka.actor.default-dispatcher-12] [INFO] MockRaftActor - Starting recovery for follower with journal batch size 1000 11:22:49,408 AM [test-akka.actor.default-dispatcher-12] [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 11:22:49,408 AM [test-akka.actor.default-dispatcher-12] [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 11:22:49,408 AM [test-akka.actor.default-dispatcher-12] [DEBUG] MockRaftActor - follower: Set currentTerm=1, votedFor=null 11:22:49,408 AM [test-akka.actor.default-dispatcher-12] [INFO] MockRaftActor - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 11:22:49,408 AM [test-akka.actor.default-dispatcher-12] [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] 11:22:49,408 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/11/2024 11:22:49.409] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower503] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@64983b7a 11:22:49,419 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - follower: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server501, votingMember=true], state: Idle 11:22:49,419 AM [test-akka.actor.default-dispatcher-12] [DEBUG] MockRaftActor - follower: getLeaderAddress leaderId = leader peerAddress = akka://test/user/leader502 11:22:49,419 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(akka://test/), Path(/user/leader502)] 11:22:49,469 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerForwardedToLeader ending 11:22:49,469 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower499] 11:22:49,480 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector500#-1480858183] 11:22:49,480 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server501] 11:22:49,481 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader502#-2069157100] 11:22:49,481 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower503] 11:22:49,584 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerForwardToLeader starting [WARN] [03/11/2024 11:22:49.585] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower506]: org.opendaylight.controller.cluster.common.actor.Monitor@3fcc11bd 11:22:49,586 AM [test-akka.actor.default-dispatcher-6] [INFO] MockRaftActor - Starting recovery for follower with journal batch size 1000 11:22:49,588 AM [test-akka.actor.default-dispatcher-12] [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 11:22:49,589 AM [test-akka.actor.default-dispatcher-12] [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 11:22:49,589 AM [test-akka.actor.default-dispatcher-12] [DEBUG] MockRaftActor - follower: Set currentTerm=1, votedFor=null 11:22:49,589 AM [test-akka.actor.default-dispatcher-12] [INFO] MockRaftActor - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 11:22:49,589 AM [test-akka.actor.default-dispatcher-12] [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] 11:22:49,589 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/11/2024 11:22:49.590] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower506] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6fc2d9a1 11:22:49,599 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - follower: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 11:22:49,599 AM [test-akka.actor.default-dispatcher-12] [DEBUG] MockRaftActor - follower: getLeaderAddress leaderId = leader peerAddress = akka://test/user/leader505 11:22:49,599 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(akka://test/), Path(/user/leader505)] 11:22:49,649 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerForwardToLeader ending 11:22:49,650 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower504] 11:22:49,661 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader505] 11:22:49,661 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower506] 11:22:49,663 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithExistingServer starting [WARN] [03/11/2024 11:22:49.664] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader508]: org.opendaylight.controller.cluster.common.actor.Monitor@5d1144dc 11:22:49,665 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:49,665 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:49,665 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:49,667 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 11:22:49,667 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower] 11:22:49,667 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:22:49,676 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=follower, newServerAddress=akka://test/user/follower507, votingMember=true], state: Idle 11:22:49,676 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=follower, newServerAddress=akka://test/user/follower507, votingMember=true] 11:22:49,676 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning ALREADY_EXISTS for operation AddServer [newServerId=follower, newServerAddress=akka://test/user/follower507, votingMember=true] 11:22:49,676 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithExistingServer ending 11:22:49,676 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower507] 11:22:49,687 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader508] 11:22:49,789 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout starting [WARN] [03/11/2024 11:22:49.792] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@3589d952 11:22:49,793 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node1 with journal batch size 1000 [WARN] [03/11/2024 11:22:49.794] [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@551287cf 11:22:49,795 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node2 with journal batch size 1000 11:22:49,796 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=1, votedFor=node1 11:22:49,796 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 11:22:49,796 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 11:22:49,796 AM [test-akka.actor.default-dispatcher-12] [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 11:22:49,797 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=1, votedFor=node1 11:22:49,797 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 11:22:49,797 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 11:22:49,798 AM [test-akka.actor.default-dispatcher-11] [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 11:22:49,806 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]], state: Idle 11:22:49,806 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 11:22:49,806 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 11:22:49,806 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 11:22:49,806 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:49,806 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 11:22:49,806 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 11:22:49,806 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=2, votedFor=node1 11:22:49,807 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 2 11:22:49,807 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Sending RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] to peer node2 11:22:49,807 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:22:49,921 AM [test-akka.actor.default-dispatcher-6] [WARN] RaftActorServerConfigurationSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 11:22:49,921 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]] 11:22:49,922 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 11:22:49,922 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 11:22:49,922 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout ending 11:22:49,922 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower509] 11:22:49,934 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector510#-1760970562] 11:22:49,935 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node1] 11:22:49,936 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector511#2113920721] 11:22:49,936 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node2] 11:22:49,937 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeader starting [WARN] [03/11/2024 11:22:49.943] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@261e9e47 11:22:49,944 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node1 with journal batch size 1000 11:22:49,947 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=1, votedFor=downNode1 11:22:49,947 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 163 11:22:49,947 AM [test-akka.actor.default-dispatcher-6] [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]] 11:22:49,947 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received apply journal entries for recovery, applying to state: 0 to 0 11:22:49,947 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from -1 to 0 11:22:49,948 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Recovery completed in 93.88 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 11:22:50,45 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node2 with journal batch size 1000 [WARN] [03/11/2024 11:22:50.045] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@44ec40d0 11:22:50,48 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=1, votedFor=downNode2 11:22:50,48 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 163 11:22:50,48 AM [test-akka.actor.default-dispatcher-11] [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]] 11:22:50,48 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received apply journal entries for recovery, applying to state: 0 to 0 11:22:50,48 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from -1 to 0 11:22:50,48 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Recovery completed in 80.51 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 11:22:50,60 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, node2=true, downNode1=false, node1=true}, serversVisited=[]], state: Idle 11:22:50,60 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 11:22:50,60 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 11:22:50,60 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]] 11:22:50,60 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:50,60 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 11:22:50,60 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 11:22:50,60 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=2, votedFor=node1 11:22:50,60 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 2 11:22:50,60 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:22:50,571 AM [test-akka.actor.default-dispatcher-11] [WARN] RaftActorServerConfigurationSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, node2=true, downNode1=false, node1=true}, serversVisited=[]] 11:22:50,571 AM [test-akka.actor.default-dispatcher-11] [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]] 11:22:50,572 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 11:22:50,572 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, node2=true, downNode1=false, node1=true}, serversVisited=[]] 11:22:50,572 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader downNode1, need to catch up to 0 [WARN] [03/11/2024 11:22:50.573] [test-akka.actor.default-dispatcher-12] [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/11/2024 11:22:50.573] [test-akka.actor.default-dispatcher-12] [akka://test/user/node1] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6e774610 11:22:51,181 AM [main] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Peer address for peer node2 set to akka://test/user/node2 11:22:51,181 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, node2=true, downNode1=false, node1=true}, serversVisited=[]], state: Idle 11:22:51,181 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 11:22:51,181 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 11:22:51,181 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]] 11:22:51,181 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 11:22:51,182 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 11:22:51,182 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=3, votedFor=node1 11:22:51,182 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 3 11:22:51,182 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 11:22:51,182 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:22:51,182 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:22:51,182 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Cluster state: [] 11:22:51,182 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1] with higher term appears reachable, updating term. 11:22:51,182 AM [test-akka.actor.default-dispatcher-12] [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 11:22:51,182 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=3, votedFor=null 11:22:51,182 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): In requestVote: RequestVote [term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1] - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 11:22:51,182 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=3, votedFor=node1 11:22:51,182 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 11:22:51,183 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 11:22:51,183 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 11:22:51,183 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Election: Leader has following peers: [node2, downNode2, downNode1] 11:22:51,184 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:22:51,184 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:22:51,184 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 11:22:51,184 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - node1: New leader node1 elected 11:22:51,184 AM [test-akka.actor.default-dispatcher-12] [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]] 11:22:51,184 AM [test-akka.actor.default-dispatcher-12] [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]]]] 11:22:51,184 AM [test-akka.actor.default-dispatcher-12] [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/11/2024 11:22:51.184] [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@3dbfb574 11:22:51,184 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=1cdf4ed0-3d21-49b3-beda-8a5ef4a57b5b}, logIndex: 1, isSendImmediate: true 11:22:51,184 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:51,184 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - node1: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, node2=true, downNode1=false, node1=true}, serversVisited=[]] 11:22:51,184 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node2: Lagging -1 entries behind leader node1 and reached 0 (of expected -1) [WARN] [03/11/2024 11:22:51.185] [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@7d64ba6 11:22:51,185 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 0, nextIndex: 1 11:22:51,185 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:51,185 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): sendAppendEntries: 1 is present for follower node2 11:22:51,185 AM [test-akka.actor.default-dispatcher-12] [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]]]]]] 11:22:51,186 AM [test-akka.actor.default-dispatcher-6] [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]]]]]] 11:22:51,186 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): sendAppendEntries: 1 is present for follower node2 11:22:51,186 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Number of entries to be appended = 1 11:22:51,186 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:22:51,186 AM [test-akka.actor.default-dispatcher-6] [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]]] 11:22:51,186 AM [test-akka.actor.default-dispatcher-6] [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]]]] 11:22:51,186 AM [test-akka.actor.default-dispatcher-12] [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]]]] 11:22:51,187 AM [test-akka.actor.default-dispatcher-6] [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]] 11:22:51,187 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Log size is now 2 11:22:51,187 AM [test-akka.actor.default-dispatcher-6] [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] 11:22:51,187 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 0 (of expected -1) 11:22:51,187 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 1, nextIndex: 2 11:22:51,187 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 11:22:51,187 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Setting last applied to 1 11:22:51,187 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from 0 to 1 11:22:51,187 AM [test-akka.actor.default-dispatcher-11] [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]]] 11:22:51,187 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:51,187 AM [test-akka.actor.default-dispatcher-11] [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 11:22:51,187 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Persisting ApplyJournalEntries with index=1 11:22:51,187 AM [test-akka.actor.default-dispatcher-6] [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]]]] 11:22:51,188 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Commit index set to 1 11:22:51,188 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 11:22:51,188 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:22:51,188 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Setting last applied to 1 11:22:51,188 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from 0 to 1 11:22:51,188 AM [test-akka.actor.default-dispatcher-6] [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]]] 11:22:51,188 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persisting ApplyJournalEntries with index=1 11:22:51,236 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeader ending 11:22:51,236 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower512] 11:22:51,247 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector513#-1802099719] 11:22:51,247 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node1] 11:22:51,248 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector514#2137766802] 11:22:51,248 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node2] 11:22:51,350 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithPriorSnapshotCompleteTimeout starting [WARN] [03/11/2024 11:22:51.352] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server517]: org.opendaylight.controller.cluster.common.actor.Monitor@29b7aa55 11:22:51,352 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/11/2024 11:22:51.353] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader518]: org.opendaylight.controller.cluster.common.actor.Monitor@2da734e 11:22:51,354 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 11:22:51,354 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 11:22:51,354 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 11:22:51,354 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 11:22:51,354 AM [test-akka.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 11:22:51,355 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 11:22:51,355 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 11:22:51,453 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 11:22:51,453 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. 11:22:51,454 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] 11:22:51,454 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 11:22:51,454 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 11:22:51,454 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] 11:22:51,454 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 11:22:51,454 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:22:51,464 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server517, votingMember=true], state: Idle 11:22:51,464 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server517, votingMember=true] 11:22:51,464 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - captureToInstall should not be called in state Persisting 11:22:51,464 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Snapshot already in progress - waiting for completion 11:22:51,582 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 11:22:51,582 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 11:22:51,583 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 11:22:51,583 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 11:22:51,583 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/11/2024 11:22:51.584] [test-akka.actor.default-dispatcher-7] [akka://test/user/new-server517] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@513fbc9f 11:22:51,682 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: handleInstallSnapshotTimeout for new server new-server 11:22:51,682 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server517, votingMember=true] 11:22:51,682 AM [test-akka.actor.default-dispatcher-7] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 11:22:51,682 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithPriorSnapshotCompleteTimeout ending 11:22:51,682 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower515] 11:22:51,693 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector516#929668931] 11:22:51,694 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server517] 11:22:51,694 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader518] [INFO] [03/11/2024 11:22:51.695] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:22:51,695 AM [test-akka.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/11/2024 11:22:51.696] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.95:25520) [INFO] [03/11/2024 11:22:51.698] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - Exiting completed 11:22:51,698 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - Exiting completed 11:22:51,698 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - Shutting down... 11:22:51,698 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - Successfully shut down [INFO] [03/11/2024 11:22:51.698] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - Shutting down... [INFO] [03/11/2024 11:22:51.698] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - Successfully shut down [INFO] [03/11/2024 11:22:51.702] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.95:25520/system/remoting-terminator] Shutting down remote daemon. 11:22:51,703 AM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 11:22:51,703 AM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/11/2024 11:22:51.703] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.95:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports.