[DEBUG] [07/03/2025 01:12:37.916] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 01:12:37,918 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/03/2025 01:12:37.918] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/03/2025 01:12:37.918] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/03/2025 01:12:37.931] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.163:17355] with UID [7383586476988683471] 01:12:37,931 AM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.163:17355] with UID [7383586476988683471] [INFO] [07/03/2025 01:12:37.932] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.163:17355] - Starting up, Pekko version [1.0.3] ... 01:12:37,932 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.163:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/03/2025 01:12:37.934] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.163:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 01:12:37,934 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.163:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/03/2025 01:12:37.935] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.163:17355] - Started up successfully 01:12:37,935 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.163:17355] - Started up successfully [INFO] [07/03/2025 01:12:37.935] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.163:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 01:12:37,935 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.163:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/03/2025 01:12:37.936] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.163:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 01:12:37,936 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.163:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 01:12:38,48 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress starting [WARN] [07/03/2025 01:12:38.052] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server109]: org.opendaylight.controller.cluster.common.actor.Monitor@2a5d5fa1 [INFO] [pekkoDeadLetter][07/03/2025 01:12:38.053] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/new-server109] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,53 AM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/new-server109] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,55 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:12:38,56 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: started executor 01:12:38,56 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: started executor 01:12:38,57 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/TermInfo.properties does not exist 01:12:38,57 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 01:12:38,57 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - 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 01:12:38,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:12:38,60 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:12:38,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@43f9b357 01:12:38,60 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/03/2025 01:12:38.063] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader110]: org.opendaylight.controller.cluster.common.actor.Monitor@1e79b72f [INFO] [pekkoDeadLetter][07/03/2025 01:12:38.063] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader110] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,63 AM [test-pekko.actor.default-dispatcher-8] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader110] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,63 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:38,63 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:38,63 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:12:38,64 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:12:38,66 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/TermInfo.properties does not exist 01:12:38,66 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 01:12:38,66 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:38,68 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:38,68 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:38,68 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7f5f25d3 01:12:38,68 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:12:38,77 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true], state: Idle 01:12:38,89 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 01:12:38,89 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:12:38,89 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - 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 01:12:38,89 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:12:38,89 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 01:12:38,90 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:12:38,90 AM [leader-%d981462] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:38,93 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:38,93 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:12:38,93 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 01:12:38,93 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 01:12:38,93 AM [leader-%d981463] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-05968DA5.tmp 01:12:38,93 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:12:38,94 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:12:38,94 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:12:38,94 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:12:38,94 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server109), Chunk: 1/1 01:12:38,95 AM [leader-%d981463] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-05968DA5.v1 01:12:38,96 AM [leader-%d981463] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-05968DA5.v1 01:12:38,96 AM [leader-%d981463] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/TermInfo.properties 01:12:38,96 AM [leader-%d981463] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.093752741Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-05968DA5.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:38,96 AM [leader-%d981463] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:38,96 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:38,96 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-03T01:12:38.093752741Z 01:12:38,96 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:12:38,96 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:12:38,138 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false], state: InstallingSnapshot 01:12:38,138 AM [test-pekko.actor.default-dispatcher-14] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 01:12:38,138 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 01:12:38,141 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:12:38,141 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 01:12:38,142 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 01:12:38,142 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:38,142 AM [test-pekko.actor.default-dispatcher-14] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 01:12:38,142 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 01:12:38,142 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - new-server: support() called [WARN] [07/03/2025 01:12:38.142] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/03/2025 01:12:38.142] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/new-server109] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,142 AM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,143 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 01:12:38,143 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 01:12:38,143 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - new-server: support() called 01:12:38,143 AM [new-server-%d786783] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-088CF84B.tmp 01:12:38,145 AM [new-server-%d786783] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-088CF84B.v1 01:12:38,146 AM [new-server-%d786783] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-088CF84B.v1 01:12:38,146 AM [new-server-%d786783] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/TermInfo.properties 01:12:38,146 AM [new-server-%d786783] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.143456331Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-088CF84B.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:38,146 AM [new-server-%d786783] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 01:12:38,146 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 01:12:38,146 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-03T01:12:38.143456331Z 01:12:38,146 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 01:12:38,147 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - new-server: support() called 01:12:38,147 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - new-server: applySnapshot called 01:12:38,147 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:12:38,147 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 01:12:38,147 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:12:38,147 AM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 01:12:38,148 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 01:12:38,148 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 01:12:38,148 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 01:12:38,148 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:38,148 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:38,148 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=42641109-9274-492f-aeea-e29e37a070e8}, logIndex: 0, isSendImmediate: true 01:12:38,148 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:38,148 AM [leader-%d981464] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-08DE7093.tmp 01:12:38,149 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:38,149 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:12:38,149 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:38,149 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:38,149 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:12:38,149 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:38,149 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:38,149 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:38,150 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-08F01711.tmp 01:12:38,150 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 01:12:38,151 AM [leader-%d981464] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-08DE7093.v1 01:12:38,151 AM [leader-%d981464] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-05968DA5.v1 01:12:38,151 AM [leader-%d981464] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/TermInfo.properties 01:12:38,152 AM [leader-%d981464] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-08DE7093.v1 01:12:38,152 AM [leader-%d981464] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.093752741Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-05968DA5.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:38,152 AM [leader-%d981464] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.148795539Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-08DE7093.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:38,152 AM [leader-%d981464] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:38,152 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:38,152 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-08F01711.v1 01:12:38,152 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-08F01711.v1 01:12:38,152 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:38,152 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-088CF84B.v1 01:12:38,153 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/TermInfo.properties 01:12:38,153 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.143456331Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-088CF84B.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:38,153 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.149952273Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-08F01711.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:38,153 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:38,153 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 01:12:38,153 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Log size is now 1 01:12:38,153 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - 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} 01:12:38,153 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:12:38,153 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 01:12:38,153 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:12:38,153 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:12:38,153 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:12:38,153 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:38,153 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:38.153] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 01:12:38,153 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers [INFO] [pekkoDeadLetter][07/03/2025 01:12:38.153] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/new-server109] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,154 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 01:12:38,154 AM [test-pekko.actor.default-dispatcher-8] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,154 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 01:12:38,154 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 01:12:38,154 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Persist data index=1 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:38,154 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:38,154 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Commit index set to 0 01:12:38,154 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:38,154 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:38,154 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=2c6a8ec0-c18e-42a0-860e-e0fe348d215b}, logIndex: 1, isSendImmediate: true 01:12:38,154 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 01:12:38,154 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 01:12:38,154 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:38,154 AM [leader-%d981465] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-0931E36C.tmp 01:12:38,154 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 01:12:38,154 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:38,154 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:38,154 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:38,154 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:38,154 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:12:38,154 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 01:12:38,154 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:12:38,154 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 01:12:38,154 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:38,154 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:38,154 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-093AAF67.tmp 01:12:38,154 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 01:12:38,155 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 01:12:38,155 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}, JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:38,156 AM [leader-%d981465] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-0931E36C.v1 01:12:38,156 AM [leader-%d981465] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-0931E36C.v1 01:12:38,157 AM [leader-%d981465] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/TermInfo.properties 01:12:38,157 AM [leader-%d981465] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-08DE7093.v1 01:12:38,157 AM [leader-%d981465] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.148795539Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-08DE7093.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:38,157 AM [test-pekko.actor.default-dispatcher-7] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:663) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 01:12:38,157 AM [leader-%d981465] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.154264428Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/leader/snapshot-000000006865D906-0931E36C.v1, size=100, entryCompress=NONE, stateCompress=NONE} 01:12:38,157 AM [leader-%d981465] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:38,158 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:38,158 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} [ERROR] [07/03/2025 01:12:38.156] [test-pekko.actor.internal-dispatcher-3] [pekko://test/user/follower107] Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:663) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 01:12:38,161 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-093AAF67.v1 01:12:38,161 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-093AAF67.v1 01:12:38,161 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-08F01711.v1 01:12:38,161 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/TermInfo.properties 01:12:38,161 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.149952273Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-08F01711.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:38,161 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.154840935Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7596619065789438071/new-server/snapshot-000000006865D906-093AAF67.v1, size=100, entryCompress=NONE, stateCompress=NONE} 01:12:38,161 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:38,162 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=new-server2, address=null, votingState=NON_VOTING]] 01:12:38,162 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Log size is now 2 01:12:38,162 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - 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} 01:12:38,162 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 01:12:38,162 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:12:38,162 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 01:12:38,162 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 01:12:38,162 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:38,162 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:38,162 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[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 01:12:38,163 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:38,163 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Commit index set to 1 01:12:38,163 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 01:12:38,163 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:12:38,163 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 01:12:38,163 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 01:12:38,163 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - new-server: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:38,205 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress ending 01:12:38,205 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower107] 01:12:38,217 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector108#1041085243] 01:12:38,217 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server109] 01:12:38,218 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:38,218 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:38,218 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader110] 01:12:38,218 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:38,218 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:38,219 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector111] 01:12:38,222 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer starting [WARN] [07/03/2025 01:12:38.223] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader113]: org.opendaylight.controller.cluster.common.actor.Monitor@6089e868 [INFO] [pekkoDeadLetter][07/03/2025 01:12:38.224] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader113] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,224 AM [test-pekko.actor.default-dispatcher-8] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader113] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,225 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:38,225 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:38,225 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 01:12:38,225 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 01:12:38,227 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16175126770685549030/leader/TermInfo.properties does not exist 01:12:38,227 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: no eligible files found 01:12:38,227 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:38,230 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:38,231 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:38,231 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@482ffce1 01:12:38,231 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 01:12:38,231 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:38,236 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='new-server'}, state: Idle 01:12:38,237 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer ending 01:12:38,237 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower112] 01:12:38,248 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader113] 01:12:38,248 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:38,248 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:38,250 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader starting [WARN] [07/03/2025 01:12:38.251] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader115]: org.opendaylight.controller.cluster.common.actor.Monitor@41c5117c [INFO] [pekkoDeadLetter][07/03/2025 01:12:38.251] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader115] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,252 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader115] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,253 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:38,253 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 01:12:38,253 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 01:12:38,255 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11412617486093711277/leader/TermInfo.properties does not exist 01:12:38,255 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: no eligible files found 01:12:38,255 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:38,258 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 01:12:38,258 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 01:12:38,258 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@eca3656 01:12:38,269 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 01:12:38,270 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 01:12:38,270 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader ending 01:12:38,270 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower114] 01:12:38,281 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader115] 01:12:38,281 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:38,281 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:38,284 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader starting [WARN] [07/03/2025 01:12:38.286] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader118]: org.opendaylight.controller.cluster.common.actor.Monitor@40bf907a [INFO] [pekkoDeadLetter][07/03/2025 01:12:38.286] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader118] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,287 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader118] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,288 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:38,288 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:38,288 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 01:12:38,288 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 01:12:38,290 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5259021328611261018/leader/TermInfo.properties does not exist 01:12:38,290 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: no eligible files found 01:12:38,290 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:38,294 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 01:12:38,294 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 01:12:38,294 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 01:12:38,294 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:38,294 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:38,294 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@79518d25 01:12:38,294 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 01:12:38,295 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:38.295] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower117]: org.opendaylight.controller.cluster.common.actor.Monitor@68c56ccd [INFO] [pekkoDeadLetter][07/03/2025 01:12:38.296] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower117] to Actor[pekko://test/user/termination-monitor] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,296 AM [test-pekko.actor.default-dispatcher-8] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower117] to Actor[pekko://test/user/termination-monitor] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,297 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5259021328611261018/follower/TermInfo.properties does not exist 01:12:38,297 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: no eligible files found 01:12:38,297 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:38,299 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 01:12:38,299 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 01:12:38,299 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4d890071 01:12:38,300 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 01:12:38,301 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 01:12:38,301 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:12:38,301 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:12:38,301 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:38.302] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/03/2025 01:12:38.302] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower117] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower117] was unhandled. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,302 AM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower117] was unhandled. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,306 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 01:12:38,308 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true]] 01:12:38,308 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 01:12:38,308 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true} 01:12:38,308 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=3ab62615-9670-473e-9736-d2946f1fa797}, logIndex: 0, isSendImmediate: true 01:12:38,308 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:38,308 AM [leader-%d969342] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5259021328611261018/leader/snapshot-000000006865D906-125F7867.tmp 01:12:38,308 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:38,308 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:12:38,308 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true}]} 01:12:38,308 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true}]} 01:12:38,308 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:38,308 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:38,308 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 01:12:38,308 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true} 01:12:38,309 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5259021328611261018/follower/snapshot-000000006865D906-126A5FEB.tmp 01:12:38,309 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='leader'} 01:12:38,310 AM [leader-%d969342] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5259021328611261018/leader/snapshot-000000006865D906-125F7867.v1 01:12:38,310 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5259021328611261018/follower/snapshot-000000006865D906-126A5FEB.v1 01:12:38,310 AM [leader-%d969342] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5259021328611261018/leader/snapshot-000000006865D906-125F7867.v1 01:12:38,310 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5259021328611261018/follower/snapshot-000000006865D906-126A5FEB.v1 01:12:38,310 AM [leader-%d969342] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5259021328611261018/leader/TermInfo.properties 01:12:38,311 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5259021328611261018/follower/TermInfo.properties 01:12:38,311 AM [leader-%d969342] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.308246631Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5259021328611261018/leader/snapshot-000000006865D906-125F7867.v1, size=75, entryCompress=NONE, stateCompress=NONE} 01:12:38,311 AM [leader-%d969342] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:38,311 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:38,311 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 01:12:38,311 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.308961259Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5259021328611261018/follower/snapshot-000000006865D906-126A5FEB.v1, size=75, entryCompress=NONE, stateCompress=NONE} 01:12:38,311 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 01:12:38,311 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [] 01:12:38,311 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Log size is now 1 01:12:38,311 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - 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} 01:12:38,311 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:12:38,311 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:12:38,311 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:12:38,311 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:12:38,311 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 01:12:38,311 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:38,311 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} has been successfully replicated to a majority of followers [WARN] [07/03/2025 01:12:38.313] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/leader118] unhandled message from TestActor[pekko://test/user/leader118]: ServerRemoved [serverId=leader] [INFO] [pekkoDeadLetter][07/03/2025 01:12:38.313] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/leader118] Message [org.opendaylight.controller.cluster.raft.messages.ServerRemoved] from TestActor[pekko://test/user/leader118] to TestActor[pekko://test/user/leader118] 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 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,313 AM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.ServerRemoved] from TestActor[pekko://test/user/leader118] to TestActor[pekko://test/user/leader118] 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 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:38,313 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:12:38,313 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Commit index set to 0 01:12:38,314 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:38,314 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:38,314 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:12:38,314 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 01:12:38,314 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} [WARN] [07/03/2025 01:12:38.314] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 01:12:38,361 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader ending 01:12:38,361 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower116] 01:12:38,373 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader118] 01:12:38,373 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:38,373 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:38,374 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector119] 01:12:38,374 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector120#2121129148] 01:12:38,375 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower117] 01:12:38,375 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:12:38,375 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:12:38,477 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot starting [WARN] [07/03/2025 01:12:38.479] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server123]: org.opendaylight.controller.cluster.common.actor.Monitor@2742b3d5 01:12:38,481 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:12:38,481 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 01:12:38,481 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 01:12:38,483 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5330734623840942354/new-server/TermInfo.properties does not exist 01:12:38,483 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 01:12:38,483 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - 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 01:12:38,486 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:12:38,486 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:12:38,486 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4614c4de 01:12:38,487 AM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/03/2025 01:12:38.488] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader124]: org.opendaylight.controller.cluster.common.actor.Monitor@2907c44c 01:12:38,488 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:38,489 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:38,489 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:38,489 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:38,491 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5330734623840942354/leader/TermInfo.properties does not exist 01:12:38,491 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: no eligible files found 01:12:38,491 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:38,493 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:38,493 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:38,493 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4a07e0ec 01:12:38,494 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:12:38,494 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true], state: Idle 01:12:38,494 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 01:12:38,494 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:12:38,494 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - 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 01:12:38,494 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:12:38,494 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - leader: support() called 01:12:38,495 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:12:38,495 AM [leader-%d872025] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:38,495 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:38,495 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:12:38,495 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - leader: support() called 01:12:38,496 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 01:12:38,496 AM [leader-%d872026] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5330734623840942354/leader/snapshot-000000006865D906-1D97411A.tmp 01:12:38,496 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:12:38,496 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:12:38,496 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:12:38,496 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:12:38,496 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server123), Chunk: 1/1 01:12:38,496 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 01:12:38,499 AM [leader-%d872026] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5330734623840942354/leader/snapshot-000000006865D906-1D97411A.v1 01:12:38,500 AM [leader-%d872026] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5330734623840942354/leader/snapshot-000000006865D906-1D97411A.v1 01:12:38,500 AM [leader-%d872026] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5330734623840942354/leader/TermInfo.properties 01:12:38,500 AM [leader-%d872026] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.496451866Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5330734623840942354/leader/snapshot-000000006865D906-1D97411A.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:38,500 AM [leader-%d872026] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:38,500 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:38,500 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-03T01:12:38.496451866Z 01:12:38,500 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:12:38,500 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:12:38,500 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:12:38,500 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 01:12:38,500 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 01:12:38,500 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:38,500 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 01:12:38,501 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 01:12:38,501 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: support() called [WARN] [07/03/2025 01:12:38.501] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/new-server123] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:12:38,501 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 01:12:38,501 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 01:12:38,501 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: support() called 01:12:38,502 AM [new-server-%d324783] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5330734623840942354/new-server/snapshot-000000006865D906-1DEEAF2F.tmp 01:12:38,504 AM [new-server-%d324783] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5330734623840942354/new-server/snapshot-000000006865D906-1DEEAF2F.v1 01:12:38,504 AM [new-server-%d324783] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5330734623840942354/new-server/snapshot-000000006865D906-1DEEAF2F.v1 01:12:38,504 AM [new-server-%d324783] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5330734623840942354/new-server/TermInfo.properties 01:12:38,504 AM [new-server-%d324783] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:38.502181679Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5330734623840942354/new-server/snapshot-000000006865D906-1DEEAF2F.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:38,504 AM [new-server-%d324783] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 01:12:38,504 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 01:12:38,504 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-03T01:12:38.502181679Z 01:12:38,504 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 01:12:38,504 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - new-server: support() called 01:12:38,504 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - new-server: applySnapshot called 01:12:38,504 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:12:38,505 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 01:12:38,505 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:12:38,505 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 01:12:38,505 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 01:12:38,542 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 01:12:38,542 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server new-server: not leader 01:12:40,114 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 01:12:40,114 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 01:12:40,114 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot ending 01:12:40,114 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower121] 01:12:40,115 AM [test-pekko.actor.default-dispatcher-17] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 01:12:40,125 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector122#811476563] 01:12:40,126 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server123] 01:12:40,126 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:40,126 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:40,126 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader124] 01:12:40,126 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:40,127 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:40,127 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector125] 01:12:40,130 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected starting [WARN] [07/03/2025 01:12:40.133] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@1a5ab1dd 01:12:40,134 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 01:12:40,134 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: started executor 01:12:40,134 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: started executor 01:12:40,136 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest390958306917377432/node1/TermInfo.properties does not exist 01:12:40,136 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: no eligible files found 01:12:40,136 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 01:12:40,136 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 01:12:40,136 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 01:12:40,137 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - 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] [07/03/2025 01:12:40.137] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@794e6085 01:12:40,138 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 01:12:40,139 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node2: started executor 01:12:40,139 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node2: started executor 01:12:40,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 01:12:40,140 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 01:12:40,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@43bccafc 01:12:40,140 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest390958306917377432/node2/TermInfo.properties does not exist 01:12:40,140 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node2: no eligible files found 01:12:40,140 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 01:12:40,140 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 01:12:40,140 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 01:12:40,140 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - node2: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 01:12:40,143 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 01:12:40,143 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 01:12:40,143 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1ef00ef3 01:12:40,248 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 01:12:40,253 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:12:40,253 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 01:12:40,253 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 01:12:40,254 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:40,254 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 01:12:40,254 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 01:12:40,256 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 01:12:40,256 AM [test-pekko.actor.default-dispatcher-16] [INFO] Candidate - node1 (Candidate): Starting new election term 2 01:12:40,256 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 01:12:40,256 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:40,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 01:12:40,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [] 01:12:40,302 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=node2 01:12:40,302 AM [test-pekko.actor.default-dispatcher-16] [INFO] Candidate - node2 (Candidate): Starting new election term 2 01:12:40,302 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:40,302 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node2 (Candidate): Received ElectionTimeout 01:12:40,303 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 01:12:40,303 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:40,303 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:12:40,303 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received AppendEntries{term=2, leaderId=node2, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}, my term is 2 01:12:40,303 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - node1 (Candidate): handleAppendEntries: AppendEntries{term=2, leaderId=node2, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 01:12:40,303 AM [test-pekko.actor.default-dispatcher-8] [INFO] Candidate - node1 (Candidate): New Leader node2 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:12:40,303 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:12:40,413 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 01:12:40,414 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 01:12:40,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node2 elected 01:12:40,414 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 01:12:40,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: Forwarding ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] to new leader 01:12:40,414 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:40,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 01:12:40,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: getLeaderAddress leaderId = node2 peerAddress = pekko://test/user/node2 01:12:40,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/node2)] 01:12:40,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 01:12:40,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:12:40,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=pekko://test/user/node1, votingState=VOTING]] 01:12:40,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 01:12:40,415 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node2: Persist data index=1 term=2 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:12:40,415 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true} 01:12:40,415 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=0ee66a77-24df-404b-88e6-1b357f1bf629}, logIndex: 1, isSendImmediate: true 01:12:40,415 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:40,415 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 [WARN] [07/03/2025 01:12:40.415] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 01:12:40,415 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Sending AppendEntries to follower node1: AppendEntries{term=2, leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true}]} 01:12:40,415 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 01:12:40,415 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - node1 (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true}]} 01:12:40,415 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 1 01:12:40,415 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:12:40,415 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:12:40,415 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true} 01:12:40,416 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 01:12:40,416 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - node1 (Follower): Log size is now 2 01:12:40,416 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - 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} 01:12:40,416 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 01:12:40,416 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 1, nextIndex: 2 01:12:40,416 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 01:12:40,416 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:40,417 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 01:12:40,417 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - node2: persist complete JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} [WARN] [07/03/2025 01:12:40.417] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 01:12:40,417 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 01:12:40,417 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 01:12:40,417 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 0 01:12:40,417 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 01:12:40,418 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 01:12:40,418 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 1 01:12:40,418 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 01:12:40,418 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:12:40,418 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 01:12:40,418 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 2 01:12:40,418 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorVotingConfigSupport - node2: VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} has been successfully replicated to a majority of followers 01:12:40,534 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Commit index set to 1 01:12:40,534 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 01:12:40,534 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:12:40,534 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 01:12:40,534 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 01:12:40,534 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 01:12:40,534 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 01:12:40,534 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 01:12:40,534 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:12:40,534 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 01:12:40,534 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 2 01:12:40,654 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 01:12:40,720 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected ending 01:12:40,721 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower126] 01:12:40,732 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector127#-617375707] 01:12:40,732 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 01:12:40,732 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:12:40,732 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:12:40,733 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector128#-1888999527] 01:12:40,733 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 01:12:40,734 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:12:40,734 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:12:40,738 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout starting [WARN] [07/03/2025 01:12:40.739] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server131]: org.opendaylight.controller.cluster.common.actor.Monitor@3a0acd34 01:12:40,740 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:12:40,741 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: started executor 01:12:40,741 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: started executor 01:12:40,742 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11848602356755381923/new-server/TermInfo.properties does not exist 01:12:40,742 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 01:12:40,742 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - 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 01:12:40,745 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:12:40,745 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:12:40,745 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7fcb218a 01:12:40,746 AM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 01:12:40,747 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:40,747 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:40,747 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:40,747 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor [WARN] [07/03/2025 01:12:40.748] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader132]: org.opendaylight.controller.cluster.common.actor.Monitor@c6fb4e 01:12:40,749 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11848602356755381923/leader/TermInfo.properties does not exist 01:12:40,749 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 01:12:40,749 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:40,752 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:40,752 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:40,752 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@210e727c 01:12:40,752 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:12:40,752 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true], state: Idle 01:12:40,752 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 01:12:40,752 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:12:40,752 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - 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 01:12:40,753 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:12:40,753 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 01:12:40,753 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:12:40,753 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=bogus] 01:12:40,753 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server bogus: server Id doesn't match 01:12:40,753 AM [leader-%d15046] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:40,754 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:40,754 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:12:40,754 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 01:12:40,754 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 01:12:40,754 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:12:40,754 AM [leader-%d15047] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11848602356755381923/leader/snapshot-000000006865D908-2CF47BF8.tmp 01:12:40,754 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:12:40,754 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:12:40,754 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:12:40,754 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server131), Chunk: 1/1 01:12:40,756 AM [leader-%d15047] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11848602356755381923/leader/snapshot-000000006865D908-2CF47BF8.v1 01:12:40,756 AM [leader-%d15047] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11848602356755381923/leader/TermInfo.properties 01:12:40,756 AM [leader-%d15047] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11848602356755381923/leader/snapshot-000000006865D908-2CF47BF8.v1 01:12:40,757 AM [leader-%d15047] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:40.754220024Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11848602356755381923/leader/snapshot-000000006865D908-2CF47BF8.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:40,757 AM [leader-%d15047] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:40,757 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:40,757 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-03T01:12:40.754220024Z 01:12:40,757 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:12:40,757 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:12:40,863 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - new-server (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 01:12:40,866 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:12:40,867 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 01:12:40,867 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 [WARN] [07/03/2025 01:12:40.867] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/new-server131] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:12:40,963 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 01:12:40,963 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 01:12:40,963 AM [test-pekko.actor.default-dispatcher-17] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 01:12:40,964 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout ending 01:12:40,964 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower129] 01:12:40,975 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector130#1289324666] 01:12:40,975 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server131] 01:12:40,976 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:40,976 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:40,976 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader132] 01:12:40,976 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:40,976 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:40,979 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower starting [WARN] [07/03/2025 01:12:40.981] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server135]: org.opendaylight.controller.cluster.common.actor.Monitor@654cb5f8 01:12:40,982 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:12:40,982 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 01:12:40,983 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 01:12:40,984 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/TermInfo.properties does not exist 01:12:40,984 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: no eligible files found 01:12:40,984 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - 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 01:12:40,987 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:12:40,987 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:12:40,987 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@e771b1e 01:12:40,988 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:40,988 AM [test-pekko.actor.default-dispatcher-17] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/03/2025 01:12:40.989] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader136]: org.opendaylight.controller.cluster.common.actor.Monitor@4a509cca 01:12:40,990 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:40,990 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:40,990 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:40,990 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:40,991 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/TermInfo.properties does not exist 01:12:40,991 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: no eligible files found 01:12:40,991 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:40,993 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:40,993 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:40,993 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3756e1f9 01:12:40,993 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:12:40,993 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true], state: Idle 01:12:40,993 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 01:12:40,993 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - 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 01:12:40,993 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:12:40,993 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - leader: support() called 01:12:40,994 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:12:40,994 AM [leader-%d397839] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:40,994 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:40,994 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 01:12:40,994 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - leader: support() called 01:12:40,995 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 01:12:40,995 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:12:40,995 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:12:40,995 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:12:40,995 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:12:40,995 AM [leader-%d397840] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/snapshot-000000006865D908-3B4EF2EC.tmp 01:12:40,995 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server135), Chunk: 1/1 01:12:40,995 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 01:12:40,998 AM [leader-%d397840] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/snapshot-000000006865D908-3B4EF2EC.v1 01:12:40,998 AM [leader-%d397840] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/snapshot-000000006865D908-3B4EF2EC.v1 01:12:40,999 AM [leader-%d397840] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/TermInfo.properties 01:12:40,999 AM [leader-%d397840] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:40.995029740Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/snapshot-000000006865D908-3B4EF2EC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:40,999 AM [leader-%d397840] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:40,999 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:40,999 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-03T01:12:40.995029740Z 01:12:40,999 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:12:40,999 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:12:40,999 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 01:12:40,999 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 1 01:12:40,999 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:12:40,999 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:40,999 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 01:12:40,999 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 01:12:40,999 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - new-server: support() called [WARN] [07/03/2025 01:12:40.999] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:12:41,0 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 01:12:41,0 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 01:12:41,0 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - new-server: support() called 01:12:41,0 AM [new-server-%d688604] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/snapshot-000000006865D909-00084EA4.tmp 01:12:41,2 AM [new-server-%d688604] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/snapshot-000000006865D909-00084EA4.v1 01:12:41,2 AM [new-server-%d688604] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/snapshot-000000006865D909-00084EA4.v1 01:12:41,2 AM [new-server-%d688604] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/TermInfo.properties 01:12:41,2 AM [new-server-%d688604] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:41.000544420Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/snapshot-000000006865D909-00084EA4.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:41,2 AM [new-server-%d688604] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 01:12:41,2 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 01:12:41,2 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-03T01:12:41.000544420Z 01:12:41,2 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 01:12:41,2 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: support() called 01:12:41,2 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: applySnapshot called 01:12:41,3 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:12:41,3 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 1, nextIndex set to 2 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Persist data index=2 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=64be073c-193c-41a0-8b45-8fe619590908}, logIndex: 2, isSendImmediate: true 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:41,3 AM [leader-%d397841] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/snapshot-000000006865D909-00367DCC.tmp 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 2 is present for follower new-server 01:12:41,3 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:41,4 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 01:12:41,4 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:41,4 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:12:41,4 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:12:41,4 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:41,4 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:41,4 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/snapshot-000000006865D909-0040BBF0.tmp 01:12:41,6 AM [leader-%d397841] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/snapshot-000000006865D909-00367DCC.v1 01:12:41,6 AM [leader-%d397841] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/snapshot-000000006865D908-3B4EF2EC.v1 01:12:41,6 AM [leader-%d397841] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/snapshot-000000006865D909-00367DCC.v1 01:12:41,6 AM [leader-%d397841] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/TermInfo.properties 01:12:41,6 AM [leader-%d397841] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:40.995029740Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/snapshot-000000006865D908-3B4EF2EC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:41,6 AM [leader-%d397841] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:41.003571148Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/leader/snapshot-000000006865D909-00367DCC.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:41,6 AM [leader-%d397841] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:41,6 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:41,6 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:41,6 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/snapshot-000000006865D909-0040BBF0.v1 01:12:41,7 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/snapshot-000000006865D909-0040BBF0.v1 01:12:41,7 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/snapshot-000000006865D909-00084EA4.v1 01:12:41,7 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/TermInfo.properties 01:12:41,7 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:41.000544420Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/snapshot-000000006865D909-00084EA4.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:41,7 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:41.004242416Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6444057279025659816/new-server/snapshot-000000006865D909-0040BBF0.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:41,7 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:41,7 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 01:12:41,7 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Log size is now 1 01:12:41,7 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - 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} 01:12:41,7 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected 1) 01:12:41,7 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 2, nextIndex: 3 01:12:41,7 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:12:41,7 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 2 01:12:41,7 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 1 to 2 01:12:41,7 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:41,7 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 [WARN] [07/03/2025 01:12:41.007] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 01:12:41,7 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:12:41,8 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 01:12:41,8 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Commit index set to 2 01:12:41,8 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 01:12:41,8 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:12:41,8 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 2 01:12:41,8 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 1 to 2 01:12:41,8 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - new-server: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:41,43 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower ending 01:12:41,43 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower133] 01:12:41,54 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector134#1314105753] 01:12:41,54 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server135] 01:12:41,54 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:41,54 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:41,54 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader136] 01:12:41,55 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:41,55 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:41,55 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector137] 01:12:41,58 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout starting [WARN] [07/03/2025 01:12:41.060] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@26547638 01:12:41,61 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 01:12:41,61 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: started executor 01:12:41,61 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: started executor [WARN] [07/03/2025 01:12:41.063] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@2c6145b0 01:12:41,64 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 01:12:41,64 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: started executor 01:12:41,64 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: started executor 01:12:41,64 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest888025753947418946/node1/TermInfo.properties does not exist 01:12:41,65 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: no eligible files found 01:12:41,65 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 01:12:41,65 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 01:12:41,65 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING]] 01:12:41,65 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 01:12:41,65 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest888025753947418946/node2/TermInfo.properties does not exist 01:12:41,66 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node2: no eligible files found 01:12:41,66 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 01:12:41,66 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 01:12:41,66 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - node2: Updated server config: isVoting: false, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 01:12:41,66 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 1, size: 1 01:12:41,66 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 1 01:12:41,66 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 1 01:12:41,66 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - node2: Recovery completed in 40.69 μs - Switching actor to Follower - last log index = 1, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 2 01:12:41,68 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 01:12:41,68 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 01:12:41,68 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@57c650e2 01:12:41,69 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 01:12:41,69 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 01:12:41,69 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@67086235 01:12:41,173 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 01:12:41,174 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:12:41,174 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 01:12:41,174 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 01:12:41,174 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:41,174 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 01:12:41,174 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 01:12:41,176 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 01:12:41,176 AM [test-pekko.actor.default-dispatcher-15] [INFO] Candidate - node1 (Candidate): Starting new election term 2 01:12:41,177 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 01:12:41,177 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:41,177 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:12:41,177 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 01:12:41,177 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 01:12:41,177 AM [test-pekko.actor.default-dispatcher-8] [INFO] Follower - node2 (Follower): Term 2 in "RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1}" message is greater than follower's term 1 - updating term 01:12:41,179 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=null 01:12:41,180 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 1, lastTerm: 1 01:12:41,180 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 01:12:41,180 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=false}, my term is 2 01:12:41,180 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=false}, current voteCount: 1 01:12:41,493 AM [test-pekko.actor.default-dispatcher-16] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 01:12:41,493 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=NON_VOTING]] 01:12:41,494 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 01:12:41,494 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: Found server ActorSelection[Anchor(pekko://test/), Path(/user/node2)] to forward to 01:12:41,494 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]], state: Idle 01:12:41,494 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:12:41,494 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: Sending local ElectionTimeout to start leader election 01:12:41,495 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=VOTING]] 01:12:41,495 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 01:12:41,495 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [node1] 01:12:41,497 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node2 01:12:41,497 AM [test-pekko.actor.default-dispatcher-15] [INFO] Candidate - node2 (Candidate): Starting new election term 3 01:12:41,497 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node2 (Candidate): Sending RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} to peer node1 01:12:41,498 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:12:41,498 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - node1 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:12:41,498 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - node1 (Follower): Cluster state: [] 01:12:41,498 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - node1 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} with higher term appears reachable, updating term. 01:12:41,498 AM [test-pekko.actor.default-dispatcher-8] [INFO] Follower - node1 (Follower): Term 3 in "RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1}" message is greater than follower's term 2 - updating term 01:12:41,501 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=null 01:12:41,501 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - node1 (Follower): In requestVote: RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 01:12:41,503 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node2 01:12:41,503 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - node1 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 01:12:41,503 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node2 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 01:12:41,503 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node2 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 01:12:41,503 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 01:12:41,503 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:41,503 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:12:41,503 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: New leader node2 elected 01:12:41,503 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 01:12:41,503 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 01:12:41,504 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node2: Persist data index=2 term=3 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:12:41,504 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true} 01:12:41,504 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=71ec3e81-29ae-477f-98eb-330c6d7f386e}, logIndex: 2, isSendImmediate: true 01:12:41,504 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:41.504] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 01:12:41,504 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]] 01:12:41,504 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 01:12:41,504 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 01:12:41,504 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 3 [WARN] [07/03/2025 01:12:41.504] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 01:12:41,504 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:12:41,504 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 01:12:41,505 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Sending AppendEntries to follower node1: AppendEntries{term=3, leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=2, pending=false}, JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true}]} 01:12:41,505 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): handleAppendEntries: AppendEntries{term=3, leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=2, pending=false}, JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true}]} 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 2 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Append entry to log 2 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=1, term=1, command=2, pending=false} 01:12:41,505 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - node2: persist complete JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Log size is now 3 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Commit index set to 1 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - 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} 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 01:12:41,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 01:12:41,505 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 2, nextIndex: 3 01:12:41,506 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:12:41,506 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=false]]} 01:12:41,506 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 2 01:12:41,506 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 1 to 2 01:12:41,506 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 01:12:41,506 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node2: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:12:41,506 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 01:12:41,506 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Applying state for log index 1 data 2 01:12:41,506 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=2 01:12:41,506 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - node1: applyState called: 2 01:12:41,506 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 1 for term 3 01:12:41,506 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:12:41,506 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 01:12:41,506 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 3 01:12:41,506 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorVotingConfigSupport - node2: VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} has been successfully replicated to a majority of followers 01:12:41,507 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=1, command=2, pending=false} 01:12:41,507 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 01:12:41,507 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Commit index set to 2 01:12:41,507 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 01:12:41,507 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:12:41,507 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 2 01:12:41,507 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 1 to 2 01:12:41,507 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:12:41,507 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=2 01:12:41,507 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 1 for term 3 01:12:41,624 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 01:12:41,707 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout ending 01:12:41,707 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower138] 01:12:41,718 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector139#1993066002] 01:12:41,719 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 01:12:41,719 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:12:41,719 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:12:41,720 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector140#-1323733232] 01:12:41,720 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 01:12:41,720 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:12:41,720 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:12:41,724 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached starting [WARN] [07/03/2025 01:12:41.726] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server143]: org.opendaylight.controller.cluster.common.actor.Monitor@6d652d3d 01:12:41,727 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:12:41,727 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 01:12:41,727 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 01:12:41,729 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/new-server/TermInfo.properties does not exist 01:12:41,729 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 01:12:41,729 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - 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 01:12:41,732 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:12:41,732 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:12:41,732 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@37ce2b1b 01:12:41,732 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/03/2025 01:12:41.733] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader144]: org.opendaylight.controller.cluster.common.actor.Monitor@26470700 01:12:41,733 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:41,734 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:41,734 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:12:41,734 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:12:41,735 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/TermInfo.properties does not exist 01:12:41,735 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 01:12:41,735 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:41,738 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:41,738 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:41,738 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@35118bbe 01:12:41,738 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:12:41,746 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true], state: Idle 01:12:41,746 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 01:12:41,746 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:12:41,746 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - 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 01:12:41,746 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:12:41,746 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 01:12:41,746 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:12:41,747 AM [leader-%d121153] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:41,747 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:41,747 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:12:41,747 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 01:12:41,747 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 01:12:41,747 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:12:41,747 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:12:41,747 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:12:41,747 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:12:41,747 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server143), Chunk: 1/1 01:12:41,747 AM [leader-%d121154] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/snapshot-000000006865D909-2C8D263C.tmp 01:12:41,747 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 01:12:41,749 AM [leader-%d121154] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/snapshot-000000006865D909-2C8D263C.v1 01:12:41,750 AM [leader-%d121154] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/snapshot-000000006865D909-2C8D263C.v1 01:12:41,750 AM [leader-%d121154] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/TermInfo.properties 01:12:41,750 AM [leader-%d121154] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:41.747447868Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/snapshot-000000006865D909-2C8D263C.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:41,750 AM [leader-%d121154] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:41,750 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:41,750 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-03T01:12:41.747447868Z 01:12:41,750 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:12:41,750 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:12:41,750 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 01:12:41,750 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 01:12:41,750 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:41,750 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:12:41,750 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 01:12:41,751 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 01:12:41,751 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/03/2025 01:12:41.751] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server143] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:12:41,751 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 01:12:41,751 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 01:12:41,751 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 01:12:41,752 AM [new-server-%d739548] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/new-server/snapshot-000000006865D909-2CD0A700.tmp 01:12:41,753 AM [new-server-%d739548] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/new-server/snapshot-000000006865D909-2CD0A700.v1 01:12:41,754 AM [new-server-%d739548] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/new-server/TermInfo.properties 01:12:41,754 AM [new-server-%d739548] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/new-server/snapshot-000000006865D909-2CD0A700.v1 01:12:41,754 AM [new-server-%d739548] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:41.751871744Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/new-server/snapshot-000000006865D909-2CD0A700.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:41,754 AM [new-server-%d739548] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 01:12:41,754 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 01:12:41,754 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-03T01:12:41.751871744Z 01:12:41,754 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 01:12:41,754 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 01:12:41,754 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: applySnapshot called 01:12:41,754 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:12:41,754 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 01:12:41,754 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:12:41,754 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 01:12:41,755 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 01:12:41,796 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 01:12:41,796 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 01:12:41,796 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:41,796 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:41,797 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=8831339f-6b4b-45ed-befe-1b676fcec120}, logIndex: 0, isSendImmediate: true 01:12:41,797 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:41,797 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:41,797 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:12:41,797 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:41,797 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 01:12:41,797 AM [leader-%d121155] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/snapshot-000000006865D909-2F80370A.tmp 01:12:41,800 AM [leader-%d121155] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/snapshot-000000006865D909-2F80370A.v1 01:12:41,800 AM [leader-%d121155] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/snapshot-000000006865D909-2F80370A.v1 01:12:41,800 AM [leader-%d121155] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/snapshot-000000006865D909-2C8D263C.v1 01:12:41,801 AM [leader-%d121155] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/TermInfo.properties 01:12:41,801 AM [leader-%d121155] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:41.747447868Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/snapshot-000000006865D909-2C8D263C.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:41,801 AM [leader-%d121155] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:41.796931850Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14697448191949126073/leader/snapshot-000000006865D909-2F80370A.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:41,801 AM [leader-%d121155] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:41,801 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:41,801 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:41,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 01:12:41,847 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 01:12:41,864 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:12:41,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:12:41,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 01:12:42,104 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:12:42,104 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 01:12:42,224 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:12:42,224 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 01:12:42,343 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:12:42,343 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 01:12:42,464 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:12:42,464 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 01:12:42,584 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:12:42,584 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 01:12:42,703 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:12:42,703 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 01:12:43,814 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured while replicating the new server configuration for new-server 01:12:43,814 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 01:12:43,814 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 01:12:43,814 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 01:12:43,815 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached ending 01:12:43,815 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower141] 01:12:43,826 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector142#-600450977] 01:12:43,827 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server143] 01:12:43,827 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:43,827 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:43,829 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader144] 01:12:43,829 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:43,830 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:43,830 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector145] 01:12:43,831 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-serverCollector146] 01:12:43,834 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers starting [WARN] [07/03/2025 01:12:43.835] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader148]: org.opendaylight.controller.cluster.common.actor.Monitor@46165594 01:12:43,836 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:43,836 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:43,836 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:12:43,836 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:12:43,838 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4484708683105249636/leader/TermInfo.properties does not exist 01:12:43,839 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 01:12:43,839 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:43,841 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:43,841 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:43,841 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@67a77c8d 01:12:43,842 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:12:43,842 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 01:12:43,842 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers ending 01:12:43,842 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower147] 01:12:43,843 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader148] 01:12:43,843 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:43,843 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:43,845 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete starting [WARN] [07/03/2025 01:12:43.846] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server151]: org.opendaylight.controller.cluster.common.actor.Monitor@16ad7a09 01:12:43,847 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:12:43,847 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 01:12:43,847 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 01:12:43,848 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10280645700872877524/new-server/TermInfo.properties does not exist 01:12:43,848 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 01:12:43,848 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - 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 01:12:43,851 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:12:43,851 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:12:43,851 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@20230163 01:12:43,851 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/03/2025 01:12:43.852] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader152]: org.opendaylight.controller.cluster.common.actor.Monitor@2c825c5f 01:12:43,852 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:43,853 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:43,853 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:12:43,853 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:12:43,854 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10280645700872877524/leader/TermInfo.properties does not exist 01:12:43,854 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 01:12:43,854 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:43,857 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:43,857 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:43,857 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@47348670 01:12:43,858 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:12:43,858 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 01:12:43,858 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:12:43,858 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 01:12:43,858 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 01:12:43,858 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:12:43,858 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 01:12:43,859 AM [leader-%d100134] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10280645700872877524/leader/snapshot-000000006865D90B-333904EE.tmp 01:12:43,860 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 01:12:43,860 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 01:12:43,860 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true], state: Idle 01:12:43,860 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 01:12:43,860 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: captureToInstall should not be called in state PersistCapture[lastSequenceNumber=-1, request=CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true]] 01:12:43,860 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 01:12:43,861 AM [leader-%d100134] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10280645700872877524/leader/snapshot-000000006865D90B-333904EE.v1 01:12:43,862 AM [leader-%d100134] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10280645700872877524/leader/snapshot-000000006865D90B-333904EE.v1 01:12:43,862 AM [leader-%d100134] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10280645700872877524/leader/TermInfo.properties 01:12:43,862 AM [leader-%d100134] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:43.859374830Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10280645700872877524/leader/snapshot-000000006865D90B-333904EE.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:43,862 AM [leader-%d100134] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:43,865 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:43,960 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:43,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:43,960 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-03T01:12:43.859374830Z 01:12:43,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:12:43,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 01:12:43,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: No longer the leader 01:12:43,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:12:43,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 01:12:43,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 01:12:43,961 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 01:12:43,961 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete ending 01:12:43,961 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower149] 01:12:43,962 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector150#678999587] 01:12:43,962 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server151] 01:12:43,963 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:43,963 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:43,963 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader152] 01:12:43,963 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:43,963 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:43,965 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting starting [WARN] [07/03/2025 01:12:43.966] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server155]: org.opendaylight.controller.cluster.common.actor.Monitor@17cfd9ca 01:12:43,967 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:12:43,967 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 01:12:43,968 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 01:12:43,969 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/TermInfo.properties does not exist 01:12:43,969 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: no eligible files found 01:12:43,969 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - 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 01:12:43,971 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:12:43,971 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:12:43,972 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@11243730 01:12:43,972 AM [test-pekko.actor.default-dispatcher-8] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/03/2025 01:12:43.973] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader156]: org.opendaylight.controller.cluster.common.actor.Monitor@471fde7b 01:12:43,974 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:43,974 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:43,974 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:43,974 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:43,976 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/TermInfo.properties does not exist 01:12:43,976 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 01:12:43,976 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:43,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:43,978 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:43,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@16688f91 01:12:43,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:12:43,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false], state: Idle 01:12:43,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 01:12:43,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 01:12:43,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 01:12:43,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:43,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:43,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=e671dc61-7f01-4d5b-963c-4efd4467939c}, logIndex: 0, isSendImmediate: true 01:12:43,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:12:43,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:12:43,979 AM [leader-%d68767] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/snapshot-000000006865D90B-3A61B5A6.tmp 01:12:43,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:43,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:43,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 01:12:43,979 AM [test-pekko.actor.default-dispatcher-8] [INFO] Follower - new-server (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 01:12:43,980 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 01:12:43,982 AM [leader-%d68767] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/snapshot-000000006865D90B-3A61B5A6.v1 01:12:43,982 AM [leader-%d68767] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/snapshot-000000006865D90B-3A61B5A6.v1 01:12:43,982 AM [leader-%d68767] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/TermInfo.properties 01:12:43,982 AM [leader-%d68767] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:43.979482022Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/snapshot-000000006865D90B-3A61B5A6.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:43,982 AM [leader-%d68767] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:43,982 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:43,982 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:43,983 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:12:43,983 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 01:12:43,983 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 01:12:43,983 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:43,983 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:12:43,983 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} [WARN] [07/03/2025 01:12:43.983] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:12:43,983 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 01:12:43,983 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:12:43,983 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:43,983 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:43,983 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:43,983 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/snapshot-000000006865D90B-3A9F6B9F.tmp 01:12:43,984 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/snapshot-000000006865D90B-3A9F6B9F.v1 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/TermInfo.properties 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/snapshot-000000006865D90B-3A9F6B9F.v1 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:43.983526303Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/snapshot-000000006865D90B-3A9F6B9F.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Log size is now 1 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Commit index set to 0 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - 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} 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 01:12:43,985 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:43,985 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 01:12:43,985 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:43.985] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 01:12:44,94 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:44,214 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:44,333 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:44,454 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:44,535 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false], state: Idle 01:12:44,535 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 01:12:44,535 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 01:12:44,535 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 01:12:44,535 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Persist data index=1 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:44,535 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:44,536 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=36774942-3480-4f26-b808-0e626138f983}, logIndex: 1, isSendImmediate: true 01:12:44,536 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 01:12:44,536 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 01:12:44,536 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:44,536 AM [leader-%d68768] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/snapshot-000000006865D90C-1FF23ED2.tmp 01:12:44,536 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:44,536 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 01:12:44,536 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:44,536 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:44,536 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:44,536 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:12:44,536 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:12:44,536 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:44,536 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:44,537 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 01:12:44,537 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/snapshot-000000006865D90C-20027197.tmp 01:12:44,537 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 01:12:44,537 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[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 01:12:44,537 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 01:12:44,537 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}, JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:44,538 AM [test-pekko.actor.default-dispatcher-17] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:663) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [07/03/2025 01:12:44.537] [test-pekko.actor.internal-dispatcher-3] [pekko://test/user/follower153] Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:663) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 01:12:44,539 AM [leader-%d68768] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/snapshot-000000006865D90C-1FF23ED2.v1 01:12:44,539 AM [leader-%d68768] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/snapshot-000000006865D90B-3A61B5A6.v1 01:12:44,540 AM [leader-%d68768] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/snapshot-000000006865D90C-1FF23ED2.v1 01:12:44,540 AM [leader-%d68768] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/TermInfo.properties 01:12:44,540 AM [leader-%d68768] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:43.979482022Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/snapshot-000000006865D90B-3A61B5A6.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:44,540 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/snapshot-000000006865D90C-20027197.v1 01:12:44,540 AM [leader-%d68768] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.535969490Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/leader/snapshot-000000006865D90C-1FF23ED2.v1, size=100, entryCompress=NONE, stateCompress=NONE} 01:12:44,540 AM [leader-%d68768] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:44,540 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/TermInfo.properties 01:12:44,540 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:44,540 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/snapshot-000000006865D90C-20027197.v1 01:12:44,540 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:44,540 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/snapshot-000000006865D90B-3A9F6B9F.v1 01:12:44,541 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:43.983526303Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/snapshot-000000006865D90B-3A9F6B9F.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:44,541 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.537031063Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7367720438358166627/new-server/snapshot-000000006865D90C-20027197.v1, size=100, entryCompress=NONE, stateCompress=NONE} 01:12:44,541 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:44,541 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=new-server2, address=null, votingState=NON_VOTING]] 01:12:44,541 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Log size is now 2 01:12:44,541 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Commit index set to 1 01:12:44,541 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - 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} 01:12:44,541 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 01:12:44,541 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:12:44,541 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 01:12:44,541 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 01:12:44,541 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 01:12:44,541 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - new-server: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:44,541 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:44,587 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting ending 01:12:44,587 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower153] 01:12:44,589 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector154#-1836728830] 01:12:44,589 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server155] 01:12:44,589 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:44,589 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:44,589 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader156] 01:12:44,592 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:44,592 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:44,592 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector157] 01:12:44,595 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress starting [WARN] [07/03/2025 01:12:44.597] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server160]: org.opendaylight.controller.cluster.common.actor.Monitor@1aaef5b1 01:12:44,597 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:12:44,597 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: started executor 01:12:44,598 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: started executor 01:12:44,599 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/TermInfo.properties does not exist 01:12:44,599 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 01:12:44,599 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - 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 01:12:44,602 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:12:44,603 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:12:44,603 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@41d9bee9 01:12:44,603 AM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/03/2025 01:12:44.603] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader161]: org.opendaylight.controller.cluster.common.actor.Monitor@5b7231e6 01:12:44,604 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:44,604 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:44,604 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:44,604 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:44,605 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/TermInfo.properties does not exist 01:12:44,606 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: no eligible files found 01:12:44,606 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:44,609 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:44,609 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:44,610 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1179fb7d 01:12:44,610 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:12:44,610 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 01:12:44,610 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:12:44,610 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 01:12:44,610 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 01:12:44,610 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:12:44,610 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - leader: support() called 01:12:44,611 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 01:12:44,611 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 01:12:44,611 AM [leader-%d325084] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-246B3081.tmp 01:12:44,613 AM [leader-%d325084] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-246B3081.v1 01:12:44,613 AM [leader-%d325084] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/TermInfo.properties 01:12:44,613 AM [leader-%d325084] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-246B3081.v1 01:12:44,613 AM [leader-%d325084] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.611004545Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-246B3081.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:44,614 AM [leader-%d325084] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:44,614 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:44,719 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true], state: Idle 01:12:44,719 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 01:12:44,719 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:44,719 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: captureToInstall should not be called in state PersistCapture[lastSequenceNumber=-1, request=CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true]] 01:12:44,719 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 01:12:44,719 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:44,719 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-03T01:12:44.611004545Z 01:12:44,719 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:12:44,720 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 01:12:44,720 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:12:44,720 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - 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 01:12:44,720 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:12:44,720 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - leader: support() called 01:12:44,720 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:12:44,720 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:12:44,720 AM [leader-%d325085] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:44,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:44,721 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:12:44,721 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - leader: support() called 01:12:44,721 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 01:12:44,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:12:44,721 AM [leader-%d325086] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-2AFFFB21.tmp 01:12:44,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:12:44,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:12:44,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:12:44,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server160), Chunk: 1/1 01:12:44,721 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 01:12:44,725 AM [leader-%d325086] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-2AFFFB21.v1 01:12:44,725 AM [leader-%d325086] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-2AFFFB21.v1 01:12:44,726 AM [leader-%d325086] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/TermInfo.properties 01:12:44,726 AM [leader-%d325086] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-246B3081.v1 01:12:44,726 AM [leader-%d325086] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.611004545Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-246B3081.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:44,726 AM [leader-%d325086] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.721419041Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-2AFFFB21.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:44,726 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:12:44,726 AM [leader-%d325086] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:44,726 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 01:12:44,726 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 01:12:44,726 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:44,726 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:44,726 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 01:12:44,726 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-03T01:12:44.721419041Z 01:12:44,726 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:12:44,726 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:12:44,727 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 01:12:44,727 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/03/2025 01:12:44.727] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:12:44,727 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 01:12:44,727 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 01:12:44,727 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 01:12:44,728 AM [new-server-%d92271] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/snapshot-000000006865D90C-2B66FCCC.tmp 01:12:44,730 AM [new-server-%d92271] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/snapshot-000000006865D90C-2B66FCCC.v1 01:12:44,730 AM [new-server-%d92271] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/TermInfo.properties 01:12:44,730 AM [new-server-%d92271] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/snapshot-000000006865D90C-2B66FCCC.v1 01:12:44,730 AM [new-server-%d92271] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.728169676Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/snapshot-000000006865D90C-2B66FCCC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:44,730 AM [new-server-%d92271] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 01:12:44,730 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 01:12:44,730 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-03T01:12:44.728169676Z 01:12:44,730 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 01:12:44,730 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - new-server: support() called 01:12:44,731 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - new-server: applySnapshot called 01:12:44,731 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:12:44,731 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 01:12:44,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:12:44,731 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 01:12:44,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 01:12:44,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 01:12:44,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 01:12:44,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:44,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:44,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=b234a27f-5aba-4c5d-83ac-d483a9e95fc3}, logIndex: 0, isSendImmediate: true 01:12:44,732 AM [leader-%d325087] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-2BA043C0.tmp 01:12:44,732 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:44,732 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,732 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:12:44,732 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:44,732 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 01:12:44,732 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:44,732 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:12:44,732 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:44,732 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:44,732 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:44,732 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/snapshot-000000006865D90C-2BACE51C.tmp 01:12:44,734 AM [leader-%d325087] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-2BA043C0.v1 01:12:44,734 AM [leader-%d325087] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-2BA043C0.v1 01:12:44,734 AM [leader-%d325087] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-2AFFFB21.v1 01:12:44,734 AM [leader-%d325087] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/TermInfo.properties 01:12:44,734 AM [leader-%d325087] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.721419041Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-2AFFFB21.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:44,734 AM [leader-%d325087] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.731923392Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/leader/snapshot-000000006865D90C-2BA043C0.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:44,734 AM [leader-%d325087] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:44,734 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:44,734 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:44,734 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/snapshot-000000006865D90C-2BACE51C.v1 01:12:44,735 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/snapshot-000000006865D90C-2BACE51C.v1 01:12:44,735 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/TermInfo.properties 01:12:44,735 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/snapshot-000000006865D90C-2B66FCCC.v1 01:12:44,735 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.728169676Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/snapshot-000000006865D90C-2B66FCCC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:44,735 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.732751132Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6973502057515543844/new-server/snapshot-000000006865D90C-2BACE51C.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:12:44,735 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:44,735 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 01:12:44,735 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Log size is now 1 01:12:44,736 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - 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} 01:12:44,736 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:12:44,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 01:12:44,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:12:44,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:12:44,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:12:44,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:44,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,736 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 01:12:44,736 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Commit index set to 0 01:12:44,736 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:44,736 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:44,736 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 01:12:44,736 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 01:12:44,736 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} [WARN] [07/03/2025 01:12:44.736] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 01:12:44,782 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress ending 01:12:44,783 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower158] 01:12:44,794 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector159#1494282244] 01:12:44,794 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server160] 01:12:44,794 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:44,794 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:44,794 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader161] 01:12:44,795 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:44,795 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:44,795 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector162] 01:12:44,798 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode starting [WARN] [07/03/2025 01:12:44.800] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader164]: org.opendaylight.controller.cluster.common.actor.Monitor@597498cf 01:12:44,800 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:44,801 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:44,801 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:44,801 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:44,803 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254561911597302350/leader/TermInfo.properties does not exist 01:12:44,803 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 01:12:44,803 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:44,806 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:44,806 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:44,806 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4d156db7 01:12:44,806 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:12:44,812 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 01:12:44,812 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:12:44,812 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning INVALID_REQUEST for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 01:12:44,812 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode ending 01:12:44,812 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower163] 01:12:44,824 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader164] 01:12:44,824 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:44,824 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:44,826 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting starting [WARN] [07/03/2025 01:12:44.827] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader168]: org.opendaylight.controller.cluster.common.actor.Monitor@4f56e2fa 01:12:44,828 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:44,828 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:44,828 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:12:44,828 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:12:44,831 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/leader/TermInfo.properties does not exist 01:12:44,831 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: no eligible files found [WARN] [07/03/2025 01:12:44.831] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower166]: org.opendaylight.controller.cluster.common.actor.Monitor@69e525e0 01:12:44,831 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:44,831 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 01:12:44,832 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: started executor 01:12:44,832 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: started executor 01:12:44,833 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/follower/TermInfo.properties does not exist 01:12:44,833 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: no eligible files found 01:12:44,833 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - 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] [07/03/2025 01:12:44.834] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2167]: org.opendaylight.controller.cluster.common.actor.Monitor@6d44f585 01:12:44,835 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 01:12:44,835 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:44,835 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:44,835 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5eec3e4 01:12:44,835 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 01:12:44,835 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: started executor 01:12:44,835 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:44,835 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:44,835 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: started executor 01:12:44,836 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 01:12:44,836 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 01:12:44,836 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@265c7d7d 01:12:44,836 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 01:12:44,837 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/follower2/TermInfo.properties does not exist 01:12:44,837 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: no eligible files found 01:12:44,837 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:44,839 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 01:12:44,839 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:12:44,839 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:12:44,839 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:44,839 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 01:12:44,839 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 01:12:44,839 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@44904db1 01:12:44,839 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - follower2 (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term [WARN] [07/03/2025 01:12:44.840] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 01:12:44,841 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 01:12:44,841 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 01:12:44,841 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 01:12:44,841 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:44.841] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 01:12:44,846 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 01:12:44,846 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:12:44,846 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - leader: Updated server config: isVoting: false, peers: [PeerInfo [id=follower2, address=pekko://test/user/follower2167, votingState=VOTING], PeerInfo [id=follower, address=pekko://test/user/follower166, votingState=VOTING]] 01:12:44,847 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]] 01:12:44,847 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 01:12:44,847 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 01:12:44,847 AM [leader-%d373770] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/leader/snapshot-000000006865D90C-327EC7B2.tmp 01:12:44,847 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=b1f9398c-a496-4f20-95dd-dc2fe6465b7c}, logIndex: 0, isSendImmediate: true 01:12:44,847 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:44,847 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,847 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 01:12:44,847 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 01:12:44,848 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,848 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:12:44,848 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 01:12:44,848 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 01:12:44,848 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 01:12:44,848 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 01:12:44,848 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:44,848 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 01:12:44,848 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 01:12:44,848 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 01:12:44,848 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/follower2/snapshot-000000006865D90C-32904DB0.tmp 01:12:44,848 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:44,848 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:44,848 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 01:12:44,848 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 01:12:44,848 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/follower/snapshot-000000006865D90C-3293DA69.tmp 01:12:44,849 AM [leader-%d373770] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/leader/snapshot-000000006865D90C-327EC7B2.v1 01:12:44,849 AM [leader-%d373770] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/leader/snapshot-000000006865D90C-327EC7B2.v1 01:12:44,849 AM [leader-%d373770] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/leader/TermInfo.properties 01:12:44,849 AM [leader-%d373770] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.847169458Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/leader/snapshot-000000006865D90C-327EC7B2.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:44,849 AM [leader-%d373770] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:44,850 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:44,850 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false} 01:12:44,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/follower2/snapshot-000000006865D90C-32904DB0.v1 01:12:44,850 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/follower/snapshot-000000006865D90C-3293DA69.v1 01:12:44,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/follower2/snapshot-000000006865D90C-32904DB0.v1 01:12:44,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/follower2/TermInfo.properties 01:12:44,850 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/follower/snapshot-000000006865D90C-3293DA69.v1 01:12:44,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.848317872Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/follower2/snapshot-000000006865D90C-32904DB0.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:44,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower2: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false} 01:12:44,850 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/follower/TermInfo.properties 01:12:44,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - follower2: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=pekko://test/user/leader168, votingState=NON_VOTING], PeerInfo [id=follower, address=pekko://test/user/follower166, votingState=VOTING]] 01:12:44,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Log size is now 1 01:12:44,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - 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} 01:12:44,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:12:44,850 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:44.848550505Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16529300120183830748/follower/snapshot-000000006865D90C-3293DA69.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:44,850 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 01:12:44,850 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false} 01:12:44,850 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:12:44,850 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:12:44,850 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:12:44,850 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 01:12:44,850 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,850 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=pekko://test/user/leader168, votingState=NON_VOTING], PeerInfo [id=follower2, address=pekko://test/user/follower2167, votingState=VOTING]] 01:12:44,850 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Log size is now 1 01:12:44,850 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - 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} 01:12:44,850 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) [WARN] [07/03/2025 01:12:44.850] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 01:12:44,850 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} has been successfully replicated to a majority of followers 01:12:44,851 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 01:12:44,851 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:44,851 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:44,851 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 01:12:44,851 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - Leader changed to non-voting - trying leadership transfer 01:12:44,851 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 01:12:44,851 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} [WARN] [07/03/2025 01:12:44.851] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 01:12:44,851 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Initiating leader transfer 01:12:44,852 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - follower: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 01:12:44,852 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower2: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 01:12:44,853 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorLeadershipTransferCohort - leader: pauseLeader successfully completed - doing transfer 01:12:44,853 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Leader - leader (Leader): Attempting to transfer leadership 01:12:44,853 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,853 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,853 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:12:44,853 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} 01:12:44,854 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower (Follower): matchEntry JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false} is present: existingEntryTerm: 1 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower (Follower): Log size is now 1 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower (Follower): Commit index set to 0 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - 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} 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 01:12:44,854 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:12:44,854 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,854 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Leader - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: 0, lastIndex: 0, isVoting: true 01:12:44,854 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Leader - leader (Leader): Follower's log matches - sending ElectionTimeout 01:12:44,854 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,854 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:44,854 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,854 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Leader - leader (Leader): Leader transfer complete 01:12:44,854 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader transfer complete - waiting for new leader 01:12:44,854 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:44,855 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:44,855 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 01:12:44,855 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [follower2] 01:12:44,857 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=2, votedFor=follower 01:12:44,857 AM [test-pekko.actor.default-dispatcher-17] [INFO] Candidate - follower (Candidate): Starting new election term 2 01:12:44,857 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - follower (Candidate): Sending RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} to peer follower2 01:12:44,857 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:44,857 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:12:44,857 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): Cluster state: [] 01:12:44,857 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 01:12:44,857 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - follower2 (Follower): Term 2 in "RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1}" message is greater than follower's term 1 - updating term 01:12:44,860 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=null 01:12:44,860 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): In requestVote: RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 0, lastTerm: 1 01:12:44,862 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=follower 01:12:44,862 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=true} 01:12:44,862 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - follower (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=true}, my term is 2 01:12:44,862 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - follower (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=true}, current voteCount: 1 01:12:44,862 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - follower (Leader): Election: Leader has following peers: [leader, follower2] 01:12:44,862 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower leader: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,862 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,862 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - follower (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:12:44,863 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractLeader - leader (Leader): Term 2 in "AppendEntries{term=2, leaderId=follower, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than leader's term 1 - switching to Follower 01:12:44,863 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader follower, need to catch up to -1 01:12:44,863 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 [WARN] [07/03/2025 01:12:44.863] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 01:12:44,863 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:44,864 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader follower and reached 0 (of expected -1) [WARN] [07/03/2025 01:12:44.864] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 01:12:44,865 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=2, votedFor=null 01:12:44,866 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - leader (Leader) :- Switching from behavior Leader to Follower, election term: 2 01:12:45,374 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - leader: Last sync leader does not match current leader follower, need to catch up to -1 01:12:45,374 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader follower and reached 0 (of expected -1) 01:12:45,374 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - follower (Leader): handleAppendEntriesReply - FollowerLogInformation for leader updated: matchIndex: 0, nextIndex: 1 01:12:45,374 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader changed to follower 01:12:45,375 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower leader: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:45,375 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorLeadershipTransferCohort - leader: Successfully transferred leadership to follower in 523.2 ms 01:12:45,375 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: leader transfer succeeded after change to non-voting 01:12:45,375 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - leader: Lagging 0 entries behind leader follower and reached 0 (of expected -1) [WARN] [07/03/2025 01:12:45.375] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=false] [WARN] [07/03/2025 01:12:45.375] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=true] 01:12:45,401 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting ending 01:12:45,402 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower165] 01:12:45,403 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader168] 01:12:45,404 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:45,404 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:45,404 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector169] 01:12:45,405 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector170#357908547] 01:12:45,405 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower166] 01:12:45,405 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:12:45,405 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:12:45,406 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector171#-54936227] 01:12:45,406 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2167] 01:12:45,406 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 01:12:45,406 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 01:12:45,409 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState starting [WARN] [07/03/2025 01:12:45.410] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader173]: org.opendaylight.controller.cluster.common.actor.Monitor@770bb04b 01:12:45,411 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:45,412 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:45,412 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:45,412 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState ending 01:12:45,412 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower172] 01:12:45,414 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3105945144518020664/leader/TermInfo.properties does not exist 01:12:45,414 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader173] 01:12:45,414 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: no eligible files found 01:12:45,414 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:45,419 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 01:12:45,419 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 01:12:45,419 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@59c49f55 01:12:45,419 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:45,419 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:45,522 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer starting [WARN] [07/03/2025 01:12:45.523] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader177]: org.opendaylight.controller.cluster.common.actor.Monitor@3993b5a 01:12:45,524 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:45,524 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:45,524 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 01:12:45,524 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 01:12:45,526 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/leader/TermInfo.properties does not exist 01:12:45,526 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 01:12:45,526 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/03/2025 01:12:45.528] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower175]: org.opendaylight.controller.cluster.common.actor.Monitor@423809f3 01:12:45,528 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:45,528 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:45,528 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1d1a0ab2 01:12:45,529 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 01:12:45,529 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: started executor 01:12:45,529 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower, downNode] 01:12:45,529 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: started executor 01:12:45,529 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:45,529 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:45.529] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/follower2176] received dead letter from TestActor[pekko://test/user/leader177]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 01:12:45,529 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:45.530] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader177]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 01:12:45,531 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/follower/TermInfo.properties does not exist 01:12:45,531 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: no eligible files found 01:12:45,531 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - 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] [07/03/2025 01:12:45.531] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2176]: org.opendaylight.controller.cluster.common.actor.Monitor@11354eb9 01:12:45,532 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 01:12:45,532 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower2: started executor 01:12:45,532 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower2: started executor 01:12:45,533 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/follower2/TermInfo.properties does not exist 01:12:45,534 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower2: no eligible files found 01:12:45,534 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:45,535 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 01:12:45,535 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 01:12:45,535 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3d3ef880 01:12:45,536 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 01:12:45,536 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 01:12:45,536 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 01:12:45,536 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@55cb9e51 01:12:45,538 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 01:12:45,538 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:12:45,538 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:12:45,538 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:45.538] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower175] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 01:12:45,547 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 01:12:45,547 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 01:12:45,547 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,547 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:45,548 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=a01a14b3-f8c9-4598-becd-41758ff5f9f5}, logIndex: 0, isSendImmediate: true 01:12:45,548 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:45,548 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:45,548 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:45,548 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='follower'} 01:12:45,548 AM [test-pekko.actor.default-dispatcher-7] [INFO] Follower - follower2 (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 01:12:45,548 AM [leader-%d117419] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/leader/snapshot-000000006865D90D-20A94790.tmp [WARN] [07/03/2025 01:12:45.549] [test-pekko.actor.default-dispatcher-8] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader177]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 01:12:45,551 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 01:12:45,551 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 01:12:45,551 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 01:12:45,551 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:45,551 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 01:12:45,551 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} [WARN] [07/03/2025 01:12:45.552] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 01:12:45,552 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,552 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 01:12:45,552 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:45,552 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,552 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:45,552 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/follower2/snapshot-000000006865D90D-20EAC2F0.tmp 01:12:45,552 AM [leader-%d117419] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/leader/snapshot-000000006865D90D-20A94790.v1 01:12:45,552 AM [leader-%d117419] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/leader/snapshot-000000006865D90D-20A94790.v1 01:12:45,552 AM [leader-%d117419] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/leader/TermInfo.properties 01:12:45,553 AM [leader-%d117419] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.547964816Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/leader/snapshot-000000006865D90D-20A94790.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:45,553 AM [leader-%d117419] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:45,553 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:45,553 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/follower2/snapshot-000000006865D90D-20EAC2F0.v1 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/follower2/snapshot-000000006865D90D-20EAC2F0.v1 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/follower2/TermInfo.properties 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.552256240Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2121956274717233635/follower2/snapshot-000000006865D90D-20EAC2F0.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - follower2: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PeerInfos - follower2: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=pekko://test/user/leader177, votingState=VOTING], PeerInfo [id=downNode, address=, votingState=VOTING]] 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower2 (Follower): Log size is now 1 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - 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} 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,554 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:45,555 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers [WARN] [07/03/2025 01:12:45.555] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 01:12:45,555 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 01:12:45,555 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:45,555 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:45,555 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 01:12:45,555 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 01:12:45,555 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - follower2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} [WARN] [07/03/2025 01:12:45.555] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower175] unhandled message from TestActor[pekko://test/user/leader177]: ServerRemoved [serverId=follower] 01:12:45,599 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer ending 01:12:45,599 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower174] 01:12:45,600 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader177] 01:12:45,600 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:45,600 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:45,601 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector178] 01:12:45,601 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector179#-473649797] 01:12:45,601 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower175] 01:12:45,601 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:12:45,601 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:12:45,602 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector180#536181803] 01:12:45,602 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2176] 01:12:45,602 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 01:12:45,602 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 01:12:45,605 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader starting [WARN] [07/03/2025 01:12:45.606] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server183]: org.opendaylight.controller.cluster.common.actor.Monitor@64be8c5b 01:12:45,606 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:12:45,607 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 01:12:45,607 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 01:12:45,608 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14740667006187989106/new-server/TermInfo.properties does not exist 01:12:45,608 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 01:12:45,608 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - 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 01:12:45,611 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:12:45,611 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:12:45,611 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@ec0405c 01:12:45,611 AM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/03/2025 01:12:45.612] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader184]: org.opendaylight.controller.cluster.common.actor.Monitor@15713646 01:12:45,612 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:45,612 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 01:12:45,612 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 01:12:45,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14740667006187989106/leader/TermInfo.properties does not exist 01:12:45,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 01:12:45,614 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:45,615 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 01:12:45,616 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 01:12:45,616 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@676688a4 01:12:45,626 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server183, votingMember=true], state: Idle 01:12:45,627 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 01:12:45,627 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader ending 01:12:45,627 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower181] 01:12:45,638 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector182#-1652160462] 01:12:45,638 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server183] 01:12:45,638 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:45,638 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:45,639 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader184] 01:12:45,639 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:45,639 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:45,642 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus starting [WARN] [07/03/2025 01:12:45.643] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader188]: org.opendaylight.controller.cluster.common.actor.Monitor@6b9e5471 01:12:45,643 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:45,643 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:45,644 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 01:12:45,644 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 01:12:45,645 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/TermInfo.properties does not exist 01:12:45,645 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 01:12:45,645 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/03/2025 01:12:45.647] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower186]: org.opendaylight.controller.cluster.common.actor.Monitor@4b9127b5 01:12:45,648 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:45,648 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:45,648 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@43567cae 01:12:45,648 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 01:12:45,648 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: started executor 01:12:45,648 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 01:12:45,648 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: started executor 01:12:45,648 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:45.649] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower2187] received dead letter from TestActor[pekko://test/user/leader188]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 01:12:45,649 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:45,649 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/TermInfo.properties does not exist 01:12:45,650 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: no eligible files found 01:12:45,650 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - 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] [07/03/2025 01:12:45.651] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2187]: org.opendaylight.controller.cluster.common.actor.Monitor@44c5ecee 01:12:45,651 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 01:12:45,651 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: started executor 01:12:45,652 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: started executor 01:12:45,652 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 01:12:45,652 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 01:12:45,652 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@45b3a17f 01:12:45,652 AM [test-pekko.actor.default-dispatcher-8] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 01:12:45,652 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/TermInfo.properties does not exist 01:12:45,653 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: no eligible files found 01:12:45,653 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:45,655 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 01:12:45,655 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:12:45,655 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:12:45,655 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:45.655] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 01:12:45,655 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 01:12:45,655 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 01:12:45,655 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@103f6592 01:12:45,662 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]], state: Idle 01:12:45,662 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:12:45,662 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - leader: Updated server config: isVoting: true, peers: [PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=NON_VOTING]] 01:12:45,662 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 01:12:45,662 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:45,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=8f078fde-11d3-4d84-a9dc-1b0412f72fac}, logIndex: 0, isSendImmediate: true 01:12:45,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:12:45,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:12:45,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:45,663 AM [leader-%d607566] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/snapshot-000000006865D90D-2786E902.tmp 01:12:45,663 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - follower2 (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 01:12:45,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:45,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:12:45,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]] 01:12:45,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:45,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:45,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:45,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/snapshot-000000006865D90D-2797A3D6.tmp 01:12:45,664 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 01:12:45,665 AM [leader-%d607566] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/snapshot-000000006865D90D-2786E902.v1 01:12:45,665 AM [leader-%d607566] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/TermInfo.properties 01:12:45,665 AM [leader-%d607566] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/snapshot-000000006865D90D-2786E902.v1 01:12:45,666 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 01:12:45,666 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 01:12:45,666 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/snapshot-000000006865D90D-2797A3D6.v1 [WARN] [07/03/2025 01:12:45.666] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 01:12:45,666 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 01:12:45,666 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/snapshot-000000006865D90D-2797A3D6.v1 01:12:45,666 AM [leader-%d607566] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.663152898Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/snapshot-000000006865D90D-2786E902.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:45,666 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/TermInfo.properties 01:12:45,666 AM [leader-%d607566] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:45,666 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:45,666 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 01:12:45,666 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.664249302Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/snapshot-000000006865D90D-2797A3D6.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:45,666 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:45,666 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,666 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING]] 01:12:45,666 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Log size is now 1 01:12:45,666 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Commit index set to 0 01:12:45,667 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - 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} 01:12:45,667 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:45,667 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:45,667 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:45,667 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:12:45,667 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 01:12:45,667 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,667 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,667 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 01:12:45,667 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:45,667 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:12:45,667 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,667 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:45,667 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:45,667 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/snapshot-000000006865D90D-27C5D77C.tmp 01:12:45,667 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} [WARN] [07/03/2025 01:12:45.667] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 01:12:45,668 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/snapshot-000000006865D90D-27C5D77C.v1 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/snapshot-000000006865D90D-27C5D77C.v1 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/TermInfo.properties 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.667277180Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/snapshot-000000006865D90D-27C5D77C.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - follower2: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - follower2: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=NON_VOTING]] 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): Log size is now 1 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - 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} 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 01:12:45,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,669 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 01:12:45,670 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:45.670] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 01:12:45,715 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]], state: Idle 01:12:45,715 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:12:45,715 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - leader: Updated server config: isVoting: true, peers: [PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=VOTING]] 01:12:45,715 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 01:12:45,715 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=1 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,715 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:45,716 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=d0320213-b29a-401a-bf6d-04952b339337}, logIndex: 1, isSendImmediate: true 01:12:45,716 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 01:12:45,716 AM [leader-%d607567] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/snapshot-000000006865D90D-2AAE6A40.tmp 01:12:45,716 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 01:12:45,716 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,716 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:45,716 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower2 01:12:45,716 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,716 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:45,716 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower 01:12:45,716 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,716 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,716 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]] 01:12:45,716 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,716 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 01:12:45,717 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:45,717 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:12:45,717 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:12:45,717 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,717 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,717 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:45,717 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:45,717 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/snapshot-000000006865D90D-2ABFB40D.tmp 01:12:45,717 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 01:12:45,717 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/snapshot-000000006865D90D-2AC00D3B.tmp 01:12:45,718 AM [leader-%d607567] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/snapshot-000000006865D90D-2AAE6A40.v1 01:12:45,719 AM [leader-%d607567] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/snapshot-000000006865D90D-2AAE6A40.v1 01:12:45,719 AM [leader-%d607567] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/TermInfo.properties 01:12:45,719 AM [leader-%d607567] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/snapshot-000000006865D90D-2786E902.v1 01:12:45,719 AM [leader-%d607567] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.663152898Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/snapshot-000000006865D90D-2786E902.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:45,719 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/snapshot-000000006865D90D-2ABFB40D.v1 01:12:45,719 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/snapshot-000000006865D90D-2AC00D3B.v1 01:12:45,719 AM [leader-%d607567] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.716073536Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/leader/snapshot-000000006865D90D-2AAE6A40.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:45,719 AM [leader-%d607567] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:45,719 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/snapshot-000000006865D90D-2ABFB40D.v1 01:12:45,719 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/snapshot-000000006865D90D-2797A3D6.v1 01:12:45,720 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/snapshot-000000006865D90D-27C5D77C.v1 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/TermInfo.properties 01:12:45,720 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/snapshot-000000006865D90D-2AC00D3B.v1 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.664249302Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/snapshot-000000006865D90D-2797A3D6.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/TermInfo.properties 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.717206541Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower/snapshot-000000006865D90D-2ABFB40D.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING]] 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Log size is now 2 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Commit index set to 1 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - 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} 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.667277180Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/snapshot-000000006865D90D-27C5D77C.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 0 to 1 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.717229371Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7337586094123230034/follower2/snapshot-000000006865D90D-2AC00D3B.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:12:45,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,720 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower2: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:45,720 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - follower2: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=VOTING]] 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): Log size is now 2 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): Commit index set to 1 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - 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} 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 1 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from 0 to 1 01:12:45,720 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 1, nextIndex: 2 01:12:45,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - follower2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,720 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:12:45,768 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus ending 01:12:45,768 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower185] 01:12:45,779 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader188] 01:12:45,780 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:45,780 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:45,780 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector189] 01:12:45,781 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector190#1107972434] 01:12:45,781 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower186] 01:12:45,781 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:12:45,781 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:12:45,781 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector191#1826937397] 01:12:45,782 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2187] 01:12:45,782 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 01:12:45,782 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 01:12:45,785 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower starting [WARN] [07/03/2025 01:12:45.787] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server194]: org.opendaylight.controller.cluster.common.actor.Monitor@454780a8 01:12:45,788 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:12:45,788 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 01:12:45,788 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 01:12:45,790 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/TermInfo.properties does not exist 01:12:45,790 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 01:12:45,790 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - 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 01:12:45,792 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:12:45,792 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:12:45,792 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1502c833 01:12:45,793 AM [main] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 2 01:12:45,793 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/03/2025 01:12:45.793] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader195]: org.opendaylight.controller.cluster.common.actor.Monitor@658bd128 01:12:45,794 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 01:12:45,794 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:45,794 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:12:45,794 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:12:45,795 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/TermInfo.properties does not exist 01:12:45,795 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 01:12:45,795 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:45,798 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 01:12:45,798 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=leader} 01:12:45,798 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7725a1ad 01:12:45,798 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 01:12:45,798 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:12:45,798 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:12:45,798 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 01:12:45,798 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 01:12:45,798 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:12:45,798 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 01:12:45,799 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 1 for term 1 01:12:45,856 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true], state: Idle 01:12:45,856 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 01:12:45,857 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - 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 01:12:45,857 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:12:45,857 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 01:12:45,857 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:12:45,858 AM [leader-%d559665] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:45,858 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:45,859 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 01:12:45,859 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 01:12:45,860 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 01:12:45,860 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:12:45,860 AM [leader-%d559666] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/snapshot-000000006865D90D-3341803D.tmp 01:12:45,860 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:12:45,860 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:12:45,860 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:12:45,860 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server194), Chunk: 1/1 01:12:45,860 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 01:12:45,863 AM [leader-%d559666] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/snapshot-000000006865D90D-3341803D.v1 01:12:45,863 AM [leader-%d559666] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/snapshot-000000006865D90D-3341803D.v1 01:12:45,863 AM [leader-%d559666] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/TermInfo.properties 01:12:45,863 AM [leader-%d559666] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.859930685Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/snapshot-000000006865D90D-3341803D.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:45,863 AM [leader-%d559666] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:45,864 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:45,864 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-03T01:12:45.859930685Z 01:12:45,864 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:12:45,864 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:12:45,864 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:12:45,864 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 01:12:45,864 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 2 01:12:45,864 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:45,864 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 01:12:45,865 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 01:12:45,865 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/03/2025 01:12:45.865] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:12:45,866 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 01:12:45,866 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 01:12:45,866 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 01:12:45,866 AM [new-server-%d658845] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/snapshot-000000006865D90D-33A2C612.tmp 01:12:45,868 AM [new-server-%d658845] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/snapshot-000000006865D90D-33A2C612.v1 01:12:45,868 AM [new-server-%d658845] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/snapshot-000000006865D90D-33A2C612.v1 01:12:45,868 AM [new-server-%d658845] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/TermInfo.properties 01:12:45,869 AM [new-server-%d658845] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.866305554Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/snapshot-000000006865D90D-33A2C612.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:45,869 AM [new-server-%d658845] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 01:12:45,869 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 01:12:45,869 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-03T01:12:45.866305554Z 01:12:45,869 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 01:12:45,869 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called 01:12:45,869 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: applySnapshot called 01:12:45,869 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:12:45,869 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 01:12:45,869 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:12:45,869 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 2, nextIndex set to 3 01:12:45,869 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=3 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=8354e8cc-a87e-434f-ba96-9ac11712da52}, logIndex: 3, isSendImmediate: true 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:45,870 AM [leader-%d559667] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/snapshot-000000006865D90D-33E0EF14.tmp 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower follower 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower new-server 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,870 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,870 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 01:12:45,871 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:45,871 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:12:45,871 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,871 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:45,871 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 01:12:45,871 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:12:45,871 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:12:45,871 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,871 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:12:45,871 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:45,871 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/snapshot-000000006865D90D-33EE95EE.tmp 01:12:45,871 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=, votingState=VOTING], PeerInfo [id=new-server, address=null, votingState=VOTING]] 01:12:45,871 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Log size is now 2 01:12:45,871 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - 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} 01:12:45,871 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 01:12:45,871 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 01:12:45,871 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:12:45,873 AM [leader-%d559667] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/snapshot-000000006865D90D-33E0EF14.v1 01:12:45,873 AM [leader-%d559667] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/snapshot-000000006865D90D-33E0EF14.v1 01:12:45,873 AM [leader-%d559667] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/snapshot-000000006865D90D-3341803D.v1 01:12:45,873 AM [leader-%d559667] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/TermInfo.properties 01:12:45,873 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/snapshot-000000006865D90D-33EE95EE.v1 01:12:45,873 AM [leader-%d559667] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.859930685Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/snapshot-000000006865D90D-3341803D.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:45,873 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/snapshot-000000006865D90D-33A2C612.v1 01:12:45,873 AM [leader-%d559667] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.870379284Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/snapshot-000000006865D90D-33E0EF14.v1, size=97, entryCompress=NONE, stateCompress=NONE} 01:12:45,873 AM [leader-%d559667] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:12:45,874 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/snapshot-000000006865D90D-33EE95EE.v1 01:12:45,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:12:45,874 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/TermInfo.properties 01:12:45,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:45,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:12:45,874 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.866305554Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/snapshot-000000006865D90D-33A2C612.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:12:45,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 3 01:12:45,874 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.871273966Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/snapshot-000000006865D90D-33EE95EE.v1, size=97, entryCompress=NONE, stateCompress=NONE} 01:12:45,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 2 to 3 01:12:45,874 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:12:45,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 3 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:45,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 2 for term 1 01:12:45,874 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=follower, address=null, votingState=VOTING]] 01:12:45,874 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Log size is now 1 01:12:45,874 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - 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} 01:12:45,874 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 2) 01:12:45,874 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[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 01:12:45,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 3, nextIndex: 4 01:12:45,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 [WARN] [07/03/2025 01:12:45.874] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 01:12:45,874 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Commit index set to 3 01:12:45,874 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 01:12:45,874 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 01:12:45,874 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 3 01:12:45,874 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 2 to 3 01:12:45,874 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - new-server: Applying state for log index 3 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:12:46,34 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Commit index set to 3 01:12:46,34 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 01:12:46,34 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 01:12:46,34 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 01:12:46,34 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 01:12:46,34 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 2 to 3 01:12:46,34 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 2 for term 1 01:12:46,58 AM [main] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/snapshot-000000006865D90D-33E0EF14.v1 01:12:46,58 AM [main] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/TermInfo.properties 01:12:46,58 AM [main] [DEBUG] RaftStorage - leader: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.870379284Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/leader/snapshot-000000006865D90D-33E0EF14.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 01:12:46,59 AM [main] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/snapshot-000000006865D90D-33EE95EE.v1 01:12:46,59 AM [main] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/TermInfo.properties 01:12:46,59 AM [main] [DEBUG] RaftStorage - new-server: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-03T01:12:45.871273966Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17840784691016379209/new-server/snapshot-000000006865D90D-33EE95EE.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 01:12:46,59 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower ending 01:12:46,59 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower192] 01:12:46,61 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector193#-1768188977] 01:12:46,61 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server194] 01:12:46,61 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:46,62 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:46,62 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader195] 01:12:46,62 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:46,62 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:46,62 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector196] 01:12:46,65 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader starting [WARN] [07/03/2025 01:12:46.067] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server199]: org.opendaylight.controller.cluster.common.actor.Monitor@424e2548 01:12:46,68 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:12:46,68 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: started executor 01:12:46,68 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: started executor 01:12:46,70 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest139843581421631297/new-server/TermInfo.properties does not exist 01:12:46,70 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: no eligible files found 01:12:46,70 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - 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 01:12:46,72 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:12:46,72 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:12:46,72 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@10bb5bc1 01:12:46,72 AM [test-pekko.actor.default-dispatcher-17] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/03/2025 01:12:46.074] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower201]: org.opendaylight.controller.cluster.common.actor.Monitor@32c16d1f 01:12:46,75 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 01:12:46,75 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: started executor 01:12:46,75 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: started executor 01:12:46,76 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest139843581421631297/follower/TermInfo.properties does not exist 01:12:46,76 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: no eligible files found 01:12:46,76 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:46,78 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 01:12:46,78 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 01:12:46,78 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@38c8edd3 01:12:46,79 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 01:12:46,81 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 01:12:46,81 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 01:12:46,81 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - 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} 01:12:46,81 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:12:46,81 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - follower: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server199, votingMember=true], state: Idle 01:12:46,81 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader200 01:12:46,81 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader200)] [WARN] [07/03/2025 01:12:46.081] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower201] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 01:12:46,130 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader ending 01:12:46,130 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower197] 01:12:46,131 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector198#-1937714689] 01:12:46,131 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server199] 01:12:46,131 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:46,131 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:46,132 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader200#514312144] 01:12:46,132 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower201] 01:12:46,132 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:12:46,132 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:12:46,135 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader starting [WARN] [07/03/2025 01:12:46.136] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower204]: org.opendaylight.controller.cluster.common.actor.Monitor@11dd22b4 01:12:46,137 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 01:12:46,137 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: started executor 01:12:46,137 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: started executor 01:12:46,139 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12271195570993365913/follower/TermInfo.properties does not exist 01:12:46,139 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: no eligible files found 01:12:46,139 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:46,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 01:12:46,142 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 01:12:46,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2274cab5 01:12:46,143 AM [test-pekko.actor.default-dispatcher-8] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 01:12:46,145 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 01:12:46,145 AM [test-pekko.actor.default-dispatcher-8] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 01:12:46,145 AM [test-pekko.actor.default-dispatcher-8] [INFO] Follower - 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} 01:12:46,145 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/03/2025 01:12:46.145] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/follower204] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 01:12:46,153 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - follower: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 01:12:46,154 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader203 01:12:46,154 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader203)] 01:12:46,204 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader ending 01:12:46,204 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower202] 01:12:46,215 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader203] 01:12:46,215 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower204] 01:12:46,216 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:12:46,216 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:12:46,220 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer starting [WARN] [07/03/2025 01:12:46.221] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader206]: org.opendaylight.controller.cluster.common.actor.Monitor@3aad4495 01:12:46,222 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:46,222 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:46,222 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:46,222 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:46,224 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5327040578279445951/leader/TermInfo.properties does not exist 01:12:46,224 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: no eligible files found 01:12:46,224 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:46,227 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:46,227 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:46,227 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1b79d0f3 01:12:46,227 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 01:12:46,227 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:46,233 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true], state: Idle 01:12:46,233 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 01:12:46,233 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Returning ALREADY_EXISTS for operation AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 01:12:46,233 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer ending 01:12:46,233 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower205] 01:12:46,244 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader206] 01:12:46,244 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:46,245 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:46,250 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout starting [WARN] [07/03/2025 01:12:46.252] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@1a239b6c 01:12:46,253 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 01:12:46,253 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: started executor 01:12:46,253 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: started executor [WARN] [07/03/2025 01:12:46.255] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@69f887c9 01:12:46,256 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6542700069604281122/node1/TermInfo.properties does not exist 01:12:46,256 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: no eligible files found 01:12:46,256 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 01:12:46,256 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 01:12:46,256 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 01:12:46,256 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node2: started executor 01:12:46,256 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 01:12:46,256 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node2: started executor 01:12:46,256 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 01:12:46,258 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6542700069604281122/node2/TermInfo.properties does not exist 01:12:46,258 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node2: no eligible files found 01:12:46,258 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 01:12:46,258 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 01:12:46,258 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 01:12:46,259 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - node2: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 01:12:46,259 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 01:12:46,259 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 01:12:46,259 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1bbd0092 01:12:46,261 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 01:12:46,261 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 01:12:46,261 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@a8875a0 01:12:46,267 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]], state: Idle 01:12:46,267 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:12:46,267 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 01:12:46,267 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 01:12:46,267 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:46,267 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 01:12:46,267 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 01:12:46,269 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 01:12:46,269 AM [test-pekko.actor.default-dispatcher-8] [INFO] Candidate - node1 (Candidate): Starting new election term 2 01:12:46,269 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 01:12:46,269 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:46,383 AM [test-pekko.actor.default-dispatcher-8] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 01:12:46,383 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 01:12:46,384 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 01:12:46,384 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 01:12:46,384 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout ending 01:12:46,384 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower207] 01:12:46,395 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector208#560004535] 01:12:46,395 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 01:12:46,396 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:12:46,396 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:12:46,396 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector209#-888152852] 01:12:46,396 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 01:12:46,396 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:12:46,396 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:12:46,400 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader starting 01:12:46,403 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 01:12:46,404 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node1: started executor 01:12:46,404 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node1: started executor [WARN] [07/03/2025 01:12:46.405] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@5c1ce75f 01:12:46,406 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16753648533073684251/node1/TermInfo.properties does not exist 01:12:46,406 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node1: no eligible files found 01:12:46,406 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 01:12:46,406 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 163 01:12:46,406 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PeerInfos - 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]] 01:12:46,406 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - node1: Received apply journal entries for recovery, applying to state: 0 to 0 01:12:46,406 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 01:12:46,406 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - node1: Recovery completed in 47.57 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 [WARN] [07/03/2025 01:12:46.408] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@53f79070 01:12:46,408 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 01:12:46,408 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: started executor 01:12:46,408 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: started executor 01:12:46,409 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 01:12:46,409 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode1} 01:12:46,409 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7deed650 01:12:46,410 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16753648533073684251/node2/TermInfo.properties does not exist 01:12:46,410 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node2: no eligible files found 01:12:46,410 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 01:12:46,410 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 163 01:12:46,410 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - 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]] 01:12:46,411 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 0 01:12:46,411 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 01:12:46,411 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - node2: Recovery completed in 64.84 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 01:12:46,413 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 01:12:46,413 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode2} 01:12:46,413 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@45c4b8bb 01:12:46,424 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 01:12:46,425 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:12:46,425 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 01:12:46,425 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - 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]] 01:12:46,425 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:46,425 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 01:12:46,425 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 01:12:46,428 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 01:12:46,428 AM [test-pekko.actor.default-dispatcher-8] [INFO] Candidate - node1 (Candidate): Starting new election term 2 01:12:46,428 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:46,944 AM [test-pekko.actor.default-dispatcher-8] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 01:12:46,944 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - 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]] 01:12:46,944 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 01:12:46,944 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 01:12:46,945 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader downNode1, need to catch up to 0 [WARN] [07/03/2025 01:12:46.945] [test-pekko.actor.default-dispatcher-17] [pekko://test/deadLetters] received dead letter from TestActor[pekko://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] [07/03/2025 01:12:46.946] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 01:12:47,502 AM [main] [INFO] PeerInfos - node1: Peer address for peer node2 set to pekko://test/user/node2 01:12:47,502 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 01:12:47,502 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:12:47,503 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 01:12:47,503 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING], PeerInfo [id=downNode2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode1, address=null, votingState=NON_VOTING]] 01:12:47,503 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 01:12:47,503 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 01:12:47,506 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node1 01:12:47,506 AM [test-pekko.actor.default-dispatcher-8] [INFO] Candidate - node1 (Candidate): Starting new election term 3 01:12:47,506 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 01:12:47,506 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:12:47,506 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:12:47,506 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 01:12:47,506 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 01:12:47,506 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - node2 (Follower): Term 3 in "RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1}" message is greater than follower's term 1 - updating term 01:12:47,509 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=null 01:12:47,509 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 01:12:47,511 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node1 01:12:47,511 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 01:12:47,511 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 01:12:47,511 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 01:12:47,511 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - node1 (Leader): Election: Leader has following peers: [node2, downNode2, downNode1] 01:12:47,511 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:47,512 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:12:47,512 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node2: Last sync leader does not match current leader node1, need to catch up to -1 01:12:47,512 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node1 elected [WARN] [07/03/2025 01:12:47.512] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=false] 01:12:47,512 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: New server configuration : [ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]] 01:12:47,512 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - node1: Persist data index=1 term=3 command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} 01:12:47,512 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=true} 01:12:47,513 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - node1 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=2ab6d600-cbac-4665-a23b-e47b2ca5e679}, logIndex: 1, isSendImmediate: true 01:12:47,513 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:47,513 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node2: Lagging -1 entries behind leader node1 and reached 0 (of expected -1) [WARN] [07/03/2025 01:12:47.513] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=true] 01:12:47,513 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - node1: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 01:12:47,513 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 0, nextIndex: 1 01:12:47,513 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:47,514 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 01:12:47,514 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - node1 (Leader): Sending AppendEntries to follower node2: AppendEntries{term=3, leaderId=node1, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=true}]} 01:12:47,514 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node2 (Follower): handleAppendEntries: AppendEntries{term=3, leaderId=node1, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=true}]} 01:12:47,514 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node2 (Follower): Number of entries to be appended = 1 01:12:47,514 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:12:47,514 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 01:12:47,514 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} 01:12:47,514 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=true} 01:12:47,514 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PeerInfos - 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]] 01:12:47,514 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node2 (Follower): Log size is now 2 01:12:47,514 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - 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} 01:12:47,514 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 0 (of expected -1) 01:12:47,514 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=false} 01:12:47,514 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 1, nextIndex: 2 01:12:47,514 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:12:47,514 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Leader): Setting last applied to 1 01:12:47,514 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 01:12:47,514 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} 01:12:47,514 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 01:12:47,514 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:47,514 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorVotingConfigSupport - node1: VotingConfig{serverInfo=[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 01:12:47,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - node2: persist complete JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=false} 01:12:47,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node2 (Follower): Commit index set to 1 01:12:47,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 01:12:47,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:12:47,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): Setting last applied to 1 01:12:47,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 01:12:47,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} 01:12:47,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 01:12:47,623 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 01:12:47,715 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader ending 01:12:47,715 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower210] 01:12:47,726 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector211#799017087] 01:12:47,727 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 01:12:47,727 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:12:47,727 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:12:47,727 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector212#289852283] 01:12:47,727 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 01:12:47,727 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:12:47,727 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:12:47,730 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout starting [WARN] [07/03/2025 01:12:47.731] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server215]: org.opendaylight.controller.cluster.common.actor.Monitor@a4ad13c 01:12:47,732 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:12:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 01:12:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 01:12:47,734 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1674754073737212189/new-server/TermInfo.properties does not exist 01:12:47,734 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 01:12:47,734 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - 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 01:12:47,738 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:12:47,738 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:12:47,738 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@42721b9d 01:12:47,738 AM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/03/2025 01:12:47.739] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader216]: org.opendaylight.controller.cluster.common.actor.Monitor@529345af 01:12:47,739 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:47,739 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:12:47,740 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:47,740 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 01:12:47,741 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1674754073737212189/leader/TermInfo.properties does not exist 01:12:47,741 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: no eligible files found 01:12:47,741 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:12:47,745 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:12:47,745 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:12:47,745 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4a5c460 01:12:47,745 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:12:47,745 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 01:12:47,745 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:12:47,745 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 01:12:47,745 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 01:12:47,745 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:12:47,745 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - leader: support() called 01:12:47,746 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 01:12:47,746 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 01:12:47,751 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true], state: Idle 01:12:47,751 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 01:12:47,751 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - leader: captureToInstall should not be called in state PersistCapture[lastSequenceNumber=-1, request=CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true]] 01:12:47,751 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 01:12:47,864 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - new-server (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 01:12:47,867 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:12:47,867 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 01:12:47,867 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 01:12:47,868 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/03/2025 01:12:47.868] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server215] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:12:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 01:12:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 01:12:47,965 AM [test-pekko.actor.default-dispatcher-16] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 01:12:47,965 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout ending 01:12:47,965 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower213] 01:12:47,976 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector214#1597747313] 01:12:47,976 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server215] 01:12:47,976 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:47,976 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:12:47,976 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader216] 01:12:47,977 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:12:47,977 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks [INFO] [07/03/2025 01:12:47.978] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:12:47,978 AM [test-pekko.actor.default-dispatcher-8] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/03/2025 01:12:47.980] [test-pekko.actor.default-dispatcher-8] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.163:17355) [INFO] [07/03/2025 01:12:47.979] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.163:17355] - Exiting completed [INFO] [07/03/2025 01:12:47.980] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.163:17355] - Shutting down... 01:12:47,980 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.163:17355] - Exiting completed 01:12:47,980 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.163:17355] - Shutting down... 01:12:47,980 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.163:17355] - Successfully shut down [INFO] [07/03/2025 01:12:47.980] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.163:17355] - Successfully shut down [INFO] [07/03/2025 01:12:47.981] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.163:17355/system/remoting-terminator] Shutting down remote daemon. 01:12:47,982 AM [test-pekko.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/03/2025 01:12:47.982] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.163:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:12:47,982 AM [test-pekko.actor.default-dispatcher-8] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/03/2025 01:12:47.984] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.163:17355/system/remoting-terminator] Remoting shut down. 01:12:47,984 AM [test-pekko.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.