[DEBUG] [07/02/2025 01:11:24.098] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 01:11:24,98 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/02/2025 01:11:24.099] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/02/2025 01:11:24.099] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/02/2025 01:11:24.113] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.70:17355] with UID [-8343760164578913059] 01:11:24,113 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.70:17355] with UID [-8343760164578913059] [INFO] [07/02/2025 01:11:24.114] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.70:17355] - Starting up, Pekko version [1.0.3] ... 01:11:24,114 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.70:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/02/2025 01:11:24.116] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.70:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/02/2025 01:11:24.116] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.70:17355] - Started up successfully 01:11:24,117 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.70:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 01:11:24,117 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.70:17355] - Started up successfully 01:11:24,118 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.70:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 01:11:24,118 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.70:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [07/02/2025 01:11:24.117] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.70:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/02/2025 01:11:24.117] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.70:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 01:11:24,131 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress starting [WARN] [07/02/2025 01:11:24.134] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server109]: org.opendaylight.controller.cluster.common.actor.Monitor@14ae5b15 [INFO] [pekkoDeadLetter][07/02/2025 01:11:24.134] [test-pekko.actor.default-dispatcher-13] [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:11:24,135 AM [test-pekko.actor.default-dispatcher-13] [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:11:24,139 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:11:24,139 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 01:11:24,139 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 01:11:24,152 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/TermInfo.properties does not exist 01:11:24,152 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: no eligible files found 01:11:24,152 AM [test-pekko.actor.default-dispatcher-13] [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:11:24,156 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:11:24,156 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:11:24,156 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3d443347 01:11:24,157 AM [test-pekko.actor.default-dispatcher-13] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 01:11:24.159] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader110]: org.opendaylight.controller.cluster.common.actor.Monitor@67156ded [INFO] [pekkoDeadLetter][07/02/2025 01:11:24.159] [test-pekko.actor.default-dispatcher-13] [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:11:24,159 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,160 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:24,160 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:24,160 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 01:11:24,160 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 01:11:24,161 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/TermInfo.properties does not exist 01:11:24,162 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 01:11:24,162 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,164 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:24,164 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:24,164 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@61c82d97 01:11:24,164 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:11:24,174 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true], state: Idle 01:11:24,186 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 01:11:24,187 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:11:24,187 AM [test-pekko.actor.default-dispatcher-12] [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:11:24,187 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:11:24,187 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 01:11:24,187 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:11:24,188 AM [leader-%d978557] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:24,190 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:24,190 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:11:24,190 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 01:11:24,191 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:11:24,191 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:11:24,191 AM [leader-%d978558] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0B62091E.tmp 01:11:24,191 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:11:24,191 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:11:24,191 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:11:24,191 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server109), Chunk: 1/1 01:11:24,193 AM [leader-%d978558] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0B62091E.v1 01:11:24,193 AM [leader-%d978558] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0B62091E.v1 01:11:24,194 AM [leader-%d978558] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/TermInfo.properties 01:11:24,194 AM [leader-%d978558] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.190974238Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0B62091E.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:24,194 AM [leader-%d978558] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:24,194 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:24,194 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T01:11:24.190974238Z 01:11:24,194 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:11:24,194 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:11:24,236 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false], state: InstallingSnapshot 01:11:24,236 AM [test-pekko.actor.default-dispatcher-12] [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:11:24,237 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 01:11:24,239 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:11:24,240 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 01:11:24,240 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 01:11:24,240 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:11:24,240 AM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 01:11:24,240 AM [test-pekko.actor.default-dispatcher-13] [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'. [WARN] [07/02/2025 01:11:24.240] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:11:24,240 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 01:11:24,240 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called [INFO] [pekkoDeadLetter][07/02/2025 01:11:24.240] [test-pekko.actor.default-dispatcher-13] [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:11:24,241 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 01:11:24,241 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 01:11:24,241 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called 01:11:24,241 AM [new-server-%d615633] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0E61CD8B.tmp 01:11:24,245 AM [new-server-%d615633] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0E61CD8B.v1 01:11:24,245 AM [new-server-%d615633] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0E61CD8B.v1 01:11:24,245 AM [new-server-%d615633] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/TermInfo.properties 01:11:24,246 AM [new-server-%d615633] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.241290635Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0E61CD8B.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:24,246 AM [new-server-%d615633] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 01:11:24,246 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 01:11:24,246 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-02T01:11:24.241290635Z 01:11:24,246 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 01:11:24,246 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 01:11:24,247 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: applySnapshot called 01:11:24,247 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:11:24,247 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 01:11:24,247 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:11:24,247 AM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 01:11:24,247 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 01:11:24,247 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 01:11:24,247 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 01:11:24,248 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:11:24,248 AM [test-pekko.actor.default-dispatcher-12] [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:11:24,248 AM [leader-%d978559] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0ED087D3.tmp 01:11:24,248 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=b3a2e3a0-7991-41c3-a07f-39cf00ca2d06}, logIndex: 0, isSendImmediate: true 01:11:24,248 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:24,248 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:24,248 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:11:24,249 AM [test-pekko.actor.default-dispatcher-12] [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:11:24,249 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,249 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:11:24,249 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:11:24,249 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:11:24,249 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,249 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0EDF004A.tmp 01:11:24,250 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 01:11:24,251 AM [leader-%d978559] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0ED087D3.v1 01:11:24,251 AM [leader-%d978559] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0B62091E.v1 01:11:24,252 AM [leader-%d978559] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/TermInfo.properties 01:11:24,252 AM [leader-%d978559] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0ED087D3.v1 01:11:24,252 AM [leader-%d978559] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.190974238Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0B62091E.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:24,252 AM [leader-%d978559] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.248547283Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0ED087D3.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:24,252 AM [leader-%d978559] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:24,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:24,252 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0EDF004A.v1 01:11:24,252 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0E61CD8B.v1 01:11:24,252 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0EDF004A.v1 01:11:24,252 AM [test-pekko.actor.default-dispatcher-12] [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:11:24,252 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/TermInfo.properties 01:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.241290635Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0E61CD8B.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.249495626Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0EDF004A.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 01:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Log size is now 1 01:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 01:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:11:24,253 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:24,254 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,254 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 01:11:24,254 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration [WARN] [07/02/2025 01:11:24.254] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 01:11:24,254 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 01:11:24,254 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,254 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,254 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): Commit index set to 0 01:11:24,254 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:24,254 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:11:24,254 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 01:11:24,254 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 01:11:24,254 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=fefdb421-ea70-4011-931e-990629c0b9ec}, logIndex: 1, isSendImmediate: true 01:11:24,254 AM [test-pekko.actor.default-dispatcher-7] [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:11:24,254 AM [leader-%d978560] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0F2D4CD1.tmp 01:11:24,254 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:24,254 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server [INFO] [pekkoDeadLetter][07/02/2025 01:11:24.254] [test-pekko.actor.default-dispatcher-12] [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:11:24,254 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,254 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:24,254 AM [test-pekko.actor.default-dispatcher-13] [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:11:24,255 AM [test-pekko.actor.default-dispatcher-13] [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:11:24,255 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:11:24,255 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:11:24,255 AM [test-pekko.actor.default-dispatcher-13] [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:11:24,255 AM [test-pekko.actor.default-dispatcher-13] [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:11:24,255 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0F36384E.tmp 01:11:24,255 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:11:24,257 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 01:11:24,257 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 01:11:24,257 AM [leader-%d978560] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0F2D4CD1.v1 01:11:24,257 AM [leader-%d978560] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/TermInfo.properties 01:11:24,257 AM [leader-%d978560] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0ED087D3.v1 01:11:24,257 AM [leader-%d978560] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0F2D4CD1.v1 01:11:24,257 AM [leader-%d978560] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.248547283Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0ED087D3.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:24,257 AM [leader-%d978560] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.254627025Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/leader/snapshot-000000006864873C-0F2D4CD1.v1, size=100, entryCompress=NONE, stateCompress=NONE} 01:11:24,257 AM [leader-%d978560] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:24,258 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0F36384E.v1 01:11:24,258 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0F36384E.v1 01:11:24,258 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0EDF004A.v1 01:11:24,258 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/TermInfo.properties 01:11:24,258 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.249495626Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0EDF004A.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:24,258 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.255211598Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12244121089953571553/new-server/snapshot-000000006864873C-0F36384E.v1, size=100, entryCompress=NONE, stateCompress=NONE} 01:11:24,258 AM [test-pekko.actor.default-dispatcher-13] [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:11:24,258 AM [test-pekko.actor.default-dispatcher-13] [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:11:24,258 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Log size is now 2 01:11:24,258 AM [test-pekko.actor.default-dispatcher-13] [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:11:24,258 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:24,259 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:24,259 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 01:11:24,259 AM [test-pekko.actor.default-dispatcher-11] [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=false}]} 01:11:24,259 AM [test-pekko.actor.default-dispatcher-6] [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:626) 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:11:24,260 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 01:11:24,260 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:11:24,260 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 01:11:24,260 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 01:11:24,260 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,260 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:24,260 AM [test-pekko.actor.default-dispatcher-11] [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} 01:11:24,260 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Commit index set to 1 01:11:24,260 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 01:11:24,260 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:11:24,260 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 01:11:24,260 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 01:11:24,260 AM [test-pekko.actor.default-dispatcher-12] [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:11:24,260 AM [test-pekko.actor.default-dispatcher-11] [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 [ERROR] [07/02/2025 01:11:24.257] [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:626) 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:11:24,308 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress ending 01:11:24,308 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower107] 01:11:24,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector108#178836361] 01:11:24,320 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server109] 01:11:24,320 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:24,320 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:24,321 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader110] 01:11:24,321 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:24,321 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:24,321 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector111] 01:11:24,327 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer starting [WARN] [07/02/2025 01:11:24.328] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader113]: org.opendaylight.controller.cluster.common.actor.Monitor@69dade42 [INFO] [pekkoDeadLetter][07/02/2025 01:11:24.328] [test-pekko.actor.default-dispatcher-11] [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:11:24,328 AM [test-pekko.actor.default-dispatcher-6] [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:11:24,329 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:24,330 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:24,330 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:11:24,330 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:11:24,332 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5067641499964671748/leader/TermInfo.properties does not exist 01:11:24,332 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 01:11:24,332 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:11:24,335 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:24,335 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:24,335 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@246b0a08 01:11:24,335 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 01:11:24,335 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:24,341 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='new-server'}, state: Idle 01:11:24,342 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer ending 01:11:24,342 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower112] 01:11:24,353 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader113] 01:11:24,353 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:24,354 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:24,356 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader starting [WARN] [07/02/2025 01:11:24.358] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader115]: org.opendaylight.controller.cluster.common.actor.Monitor@19c2502f [INFO] [pekkoDeadLetter][07/02/2025 01:11:24.358] [test-pekko.actor.default-dispatcher-16] [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:11:24,358 AM [test-pekko.actor.default-dispatcher-12] [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:11:24,359 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:24,359 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:11:24,359 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:11:24,361 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16321566124259781747/leader/TermInfo.properties does not exist 01:11:24,361 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 01:11:24,361 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:11:24,364 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 01:11:24,364 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 01:11:24,364 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7a696679 01:11:24,375 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 01:11:24,375 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 01:11:24,375 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader ending 01:11:24,375 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower114] 01:11:24,386 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader115] 01:11:24,387 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:24,387 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:24,390 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader starting [WARN] [07/02/2025 01:11:24.391] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader118]: org.opendaylight.controller.cluster.common.actor.Monitor@18f278f6 [INFO] [pekkoDeadLetter][07/02/2025 01:11:24.391] [test-pekko.actor.default-dispatcher-12] [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:11:24,391 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,392 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:24,392 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:24,393 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:11:24,393 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:11:24,395 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2056940223036369298/leader/TermInfo.properties does not exist 01:11:24,396 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 01:11:24,396 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,399 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:24,399 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:24,399 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4d773d52 01:11:24,399 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 01:11:24,399 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/02/2025 01:11:24.399] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower117]: org.opendaylight.controller.cluster.common.actor.Monitor@58c02ce8 [INFO] [pekkoDeadLetter][07/02/2025 01:11:24.400] [test-pekko.actor.default-dispatcher-12] [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:11:24,400 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,401 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 01:11:24,401 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 01:11:24,401 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 01:11:24,402 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2056940223036369298/follower/TermInfo.properties does not exist 01:11:24,403 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: no eligible files found 01:11:24,403 AM [test-pekko.actor.default-dispatcher-6] [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:11:24,405 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 01:11:24,405 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 01:11:24,405 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7e279114 01:11:24,406 AM [test-pekko.actor.default-dispatcher-6] [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:11:24,408 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 01:11:24,408 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:11:24,409 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:11:24,409 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/02/2025 01:11:24.409] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 01:11:24.409] [test-pekko.actor.default-dispatcher-12] [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:11:24,409 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,508 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 01:11:24,511 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true]] 01:11:24,511 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 01:11:24,511 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=follower, isVoting=true]]}, pending=true} 01:11:24,511 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=96ff6b14-9563-4e68-b874-9f8679ea1dab}, logIndex: 0, isSendImmediate: true 01:11:24,511 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:24,511 AM [leader-%d153320] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2056940223036369298/leader/snapshot-000000006864873C-1E7D95D2.tmp 01:11:24,511 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:24,511 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:11:24,511 AM [test-pekko.actor.default-dispatcher-16] [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:11:24,512 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='leader'} 01:11:24,512 AM [test-pekko.actor.default-dispatcher-6] [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:11:24,512 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:11:24,512 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:11:24,512 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 01:11:24,512 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true} 01:11:24,512 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2056940223036369298/follower/snapshot-000000006864873C-1E919762.tmp 01:11:24,513 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:11:24,515 AM [leader-%d153320] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2056940223036369298/leader/snapshot-000000006864873C-1E7D95D2.v1 01:11:24,515 AM [leader-%d153320] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2056940223036369298/leader/snapshot-000000006864873C-1E7D95D2.v1 01:11:24,516 AM [leader-%d153320] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2056940223036369298/leader/TermInfo.properties 01:11:24,516 AM [leader-%d153320] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.511546834Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2056940223036369298/leader/snapshot-000000006864873C-1E7D95D2.v1, size=75, entryCompress=NONE, stateCompress=NONE} 01:11:24,516 AM [leader-%d153320] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:24,516 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2056940223036369298/follower/snapshot-000000006864873C-1E919762.v1 01:11:24,516 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:24,516 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 01:11:24,516 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2056940223036369298/follower/snapshot-000000006864873C-1E919762.v1 01:11:24,516 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2056940223036369298/follower/TermInfo.properties 01:11:24,517 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.512857954Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2056940223036369298/follower/snapshot-000000006864873C-1E919762.v1, size=75, entryCompress=NONE, stateCompress=NONE} 01:11:24,517 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 01:11:24,517 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [] 01:11:24,517 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Log size is now 1 01:11:24,517 AM [test-pekko.actor.default-dispatcher-6] [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:11:24,517 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:11:24,517 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 [WARN] [07/02/2025 01:11:24.517] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 01:11:24,517 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:11:24,518 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:11:24,518 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:11:24,518 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} [INFO] [pekkoDeadLetter][07/02/2025 01:11:24.518] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower117] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower117] 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:11:24,518 AM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower117] 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:11:24,518 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:24,518 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} has been successfully replicated to a majority of followers 01:11:24,518 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): Commit index set to 0 01:11:24,518 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:24,518 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:11:24,518 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:11:24,518 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 01:11:24,518 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} [WARN] [07/02/2025 01:11:24.520] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/leader118] unhandled message from TestActor[pekko://test/user/leader118]: ServerRemoved [serverId=leader] 01:11:24,563 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader ending 01:11:24,563 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower116] 01:11:24,574 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader118] 01:11:24,574 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:24,574 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:24,575 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector119] 01:11:24,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector120#2113636218] 01:11:24,575 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower117] 01:11:24,576 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:11:24,576 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:11:24,578 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot starting [WARN] [07/02/2025 01:11:24.580] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server123]: org.opendaylight.controller.cluster.common.actor.Monitor@5c7be72d 01:11:24,581 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:11:24,581 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 01:11:24,581 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 01:11:24,583 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9336952462541344301/new-server/TermInfo.properties does not exist 01:11:24,583 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 01:11:24,583 AM [test-pekko.actor.default-dispatcher-11] [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:11:24,598 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:11:24,598 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:11:24,598 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@49ed650d 01:11:24,598 AM [test-pekko.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 01:11:24,600 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:24,600 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:24,600 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 01:11:24,600 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor [WARN] [07/02/2025 01:11:24.600] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader124]: org.opendaylight.controller.cluster.common.actor.Monitor@2474f634 01:11:24,601 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9336952462541344301/leader/TermInfo.properties does not exist 01:11:24,601 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 01:11:24,602 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:11:24,704 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:24,704 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:24,704 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@54f1f0cc 01:11:24,704 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:11:24,716 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true], state: Idle 01:11:24,716 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 01:11:24,716 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:11:24,716 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:11:24,716 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:11:24,717 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 01:11:24,717 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:11:24,717 AM [leader-%d784253] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:24,718 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:24,718 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:11:24,718 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 01:11:24,718 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:11:24,718 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:11:24,718 AM [leader-%d784254] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9336952462541344301/leader/snapshot-000000006864873C-2AD0F49D.tmp 01:11:24,718 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:11:24,718 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:11:24,718 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:11:24,718 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server123), Chunk: 1/1 01:11:24,718 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:11:24,730 AM [leader-%d784254] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9336952462541344301/leader/snapshot-000000006864873C-2AD0F49D.v1 01:11:24,731 AM [leader-%d784254] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9336952462541344301/leader/snapshot-000000006864873C-2AD0F49D.v1 01:11:24,731 AM [leader-%d784254] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9336952462541344301/leader/TermInfo.properties 01:11:24,731 AM [leader-%d784254] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.718337181Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9336952462541344301/leader/snapshot-000000006864873C-2AD0F49D.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:24,731 AM [leader-%d784254] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:24,731 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:24,731 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T01:11:24.718337181Z 01:11:24,731 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:11:24,731 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:11:24,733 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:11:24,733 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:11:24,733 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:11:24,733 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:11:24,733 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 01:11:24,733 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 01:11:24,733 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - new-server: support() called [WARN] [07/02/2025 01:11:24.733] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server123] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:11:24,734 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 01:11:24,734 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 01:11:24,734 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - new-server: support() called 01:11:24,735 AM [new-server-%d566047] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9336952462541344301/new-server/snapshot-000000006864873C-2BD287B8.tmp 01:11:24,739 AM [new-server-%d566047] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9336952462541344301/new-server/snapshot-000000006864873C-2BD287B8.v1 01:11:24,739 AM [new-server-%d566047] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9336952462541344301/new-server/snapshot-000000006864873C-2BD287B8.v1 01:11:24,739 AM [new-server-%d566047] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9336952462541344301/new-server/TermInfo.properties 01:11:24,739 AM [new-server-%d566047] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:24.735217592Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9336952462541344301/new-server/snapshot-000000006864873C-2BD287B8.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:24,739 AM [new-server-%d566047] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 01:11:24,739 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 01:11:24,739 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-02T01:11:24.735217592Z 01:11:24,739 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 01:11:24,739 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called 01:11:24,740 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: applySnapshot called 01:11:24,740 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:11:24,740 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 01:11:24,740 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:11:24,740 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:11:24,740 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 01:11:24,767 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 01:11:24,767 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server new-server: not leader 01:11:26,334 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 01:11:26,334 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 01:11:26,335 AM [test-pekko.actor.default-dispatcher-16] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 01:11:26,335 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot ending 01:11:26,335 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower121] 01:11:26,346 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector122#1415676703] 01:11:26,347 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server123] 01:11:26,347 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:26,348 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:26,348 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader124] 01:11:26,348 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:26,348 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:26,349 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector125] 01:11:26,351 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected starting [WARN] [07/02/2025 01:11:26.353] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@77d316ca 01:11:26,355 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 01:11:26,355 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: started executor 01:11:26,355 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: started executor [WARN] [07/02/2025 01:11:26.357] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@82d5d28 01:11:26,357 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 01:11:26,358 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: started executor 01:11:26,358 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: started executor 01:11:26,358 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2048097033759198355/node1/TermInfo.properties does not exist 01:11:26,358 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: no eligible files found 01:11:26,358 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 01:11:26,358 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 01:11:26,358 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 01:11:26,358 AM [test-pekko.actor.default-dispatcher-11] [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:11:26,359 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2048097033759198355/node2/TermInfo.properties does not exist 01:11:26,359 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - node2: no eligible files found 01:11:26,359 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 01:11:26,359 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 01:11:26,359 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 01:11:26,359 AM [test-pekko.actor.default-dispatcher-13] [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:11:26,361 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 01:11:26,361 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 01:11:26,361 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@311326fd 01:11:26,362 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 01:11:26,362 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 01:11:26,362 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@26f9b86c 01:11:26,370 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 01:11:26,373 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:11:26,373 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 01:11:26,373 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 01:11:26,374 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:26,374 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 01:11:26,374 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 01:11:26,377 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 01:11:26,377 AM [test-pekko.actor.default-dispatcher-12] [INFO] Candidate - node1 (Candidate): Starting new election term 2 01:11:26,377 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 01:11:26,377 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:11:26,421 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 01:11:26,421 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [] 01:11:26,424 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=node2 01:11:26,424 AM [test-pekko.actor.default-dispatcher-12] [INFO] Candidate - node2 (Candidate): Starting new election term 2 01:11:26,425 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:11:26,425 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node2 (Candidate): Received ElectionTimeout 01:11:26,425 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 01:11:26,425 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:26,425 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:11:26,425 AM [test-pekko.actor.default-dispatcher-11] [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:11:26,425 AM [test-pekko.actor.default-dispatcher-11] [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:11:26,425 AM [test-pekko.actor.default-dispatcher-11] [INFO] Candidate - node1 (Candidate): New Leader node2 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:11:26,426 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:11:26,544 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 01:11:26,544 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node2 elected 01:11:26,544 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: Forwarding ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] to new leader 01:11:26,544 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 01:11:26,544 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 01:11:26,544 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: getLeaderAddress leaderId = node2 peerAddress = pekko://test/user/node2 01:11:26,545 AM [test-pekko.actor.default-dispatcher-13] [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:11:26,545 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/node2)] 01:11:26,545 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:26,545 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle [WARN] [07/02/2025 01:11:26.545] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 01:11:26,545 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:11:26,545 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=pekko://test/user/node1, votingState=VOTING]] 01:11:26,545 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 01:11:26,545 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - node2: Persist data index=1 term=2 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:11:26,545 AM [test-pekko.actor.default-dispatcher-13] [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:11:26,546 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=15aefc81-d828-45cf-930b-6379686de33e}, logIndex: 1, isSendImmediate: true 01:11:26,546 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:26,546 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 01:11:26,546 AM [test-pekko.actor.default-dispatcher-13] [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:11:26,546 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 01:11:26,546 AM [test-pekko.actor.default-dispatcher-6] [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:11:26,546 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 1 01:11:26,546 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:11:26,546 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:11:26,546 AM [test-pekko.actor.default-dispatcher-6] [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:11:26,546 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 01:11:26,547 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Log size is now 2 01:11:26,547 AM [test-pekko.actor.default-dispatcher-6] [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:11:26,547 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 01:11:26,547 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 1, nextIndex: 2 01:11:26,547 AM [test-pekko.actor.default-dispatcher-6] [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:11:26,547 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:26,547 AM [test-pekko.actor.default-dispatcher-11] [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} [WARN] [07/02/2025 01:11:26.548] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 01:11:26,548 AM [test-pekko.actor.default-dispatcher-6] [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} 01:11:26,548 AM [test-pekko.actor.default-dispatcher-6] [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:11:26,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 01:11:26,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 0 01:11:26,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 01:11:26,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 01:11:26,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 1 01:11:26,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 01:11:26,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:11:26,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 01:11:26,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 2 01:11:26,549 AM [test-pekko.actor.default-dispatcher-6] [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:11:26,663 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Commit index set to 1 01:11:26,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 01:11:26,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:11:26,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 01:11:26,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 01:11:26,664 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:11:26,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 01:11:26,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 01:11:26,664 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:11:26,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 01:11:26,664 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 2 01:11:26,783 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 01:11:26,851 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected ending 01:11:26,851 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower126] 01:11:26,862 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector127#-1342265825] 01:11:26,863 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 01:11:26,863 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:11:26,863 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:11:26,863 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector128#-1466155136] 01:11:26,864 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 01:11:26,864 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:11:26,864 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:11:26,869 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout starting [WARN] [07/02/2025 01:11:26.870] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server131]: org.opendaylight.controller.cluster.common.actor.Monitor@d8071f2 01:11:26,872 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:11:26,872 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 01:11:26,872 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 01:11:26,874 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8492286926915351822/new-server/TermInfo.properties does not exist 01:11:26,874 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 01:11:26,874 AM [test-pekko.actor.default-dispatcher-11] [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:11:26,876 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:11:26,876 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:11:26,876 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3830f887 01:11:26,877 AM [test-pekko.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 01:11:26.877] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader132]: org.opendaylight.controller.cluster.common.actor.Monitor@509e51aa 01:11:26,878 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:26,878 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:26,878 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:11:26,879 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:11:26,880 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8492286926915351822/leader/TermInfo.properties does not exist 01:11:26,880 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 01:11:26,880 AM [test-pekko.actor.default-dispatcher-11] [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:11:26,883 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:26,883 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:26,883 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5064a182 01:11:26,883 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:11:26,890 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:11:26,890 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 01:11:26,890 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:11:26,890 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:11:26,890 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:11:26,890 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 01:11:26,890 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:11:26,890 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=bogus] 01:11:26,890 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server bogus: server Id doesn't match 01:11:26,891 AM [leader-%d738160] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:26,891 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:26,891 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:11:26,891 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 01:11:26,891 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:11:26,891 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:11:26,891 AM [leader-%d738161] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8492286926915351822/leader/snapshot-000000006864873E-3521C7E6.tmp 01:11:26,891 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:11:26,891 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:11:26,891 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:11:26,891 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server131), Chunk: 1/1 01:11:26,893 AM [leader-%d738161] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8492286926915351822/leader/snapshot-000000006864873E-3521C7E6.v1 01:11:26,894 AM [leader-%d738161] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8492286926915351822/leader/snapshot-000000006864873E-3521C7E6.v1 01:11:26,894 AM [leader-%d738161] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8492286926915351822/leader/TermInfo.properties 01:11:26,894 AM [leader-%d738161] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:26.891406310Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8492286926915351822/leader/snapshot-000000006864873E-3521C7E6.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:26,894 AM [leader-%d738161] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:26,894 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:26,894 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T01:11:26.891406310Z 01:11:26,894 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:11:26,894 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:11:27,3 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:11:27,6 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:11:27,6 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:11:27,6 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 [WARN] [07/02/2025 01:11:27.007] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server131] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:11:27,103 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 01:11:27,103 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 01:11:27,104 AM [test-pekko.actor.default-dispatcher-16] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 01:11:27,104 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout ending 01:11:27,104 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower129] 01:11:27,115 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector130#-1075003019] 01:11:27,115 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server131] 01:11:27,115 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:27,115 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:27,115 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader132] 01:11:27,115 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:27,115 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:27,118 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower starting [WARN] [07/02/2025 01:11:27.119] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server135]: org.opendaylight.controller.cluster.common.actor.Monitor@2f9903b 01:11:27,120 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:11:27,120 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 01:11:27,120 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 01:11:27,121 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/TermInfo.properties does not exist 01:11:27,121 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 01:11:27,121 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:11:27,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:11:27,125 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:11:27,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@482c384c 01:11:27,125 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:11:27,125 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 01:11:27.126] [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@11ad15ca 01:11:27,126 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:27,126 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:27,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:11:27,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 01:11:27,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/TermInfo.properties does not exist 01:11:27,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 01:11:27,128 AM [test-pekko.actor.default-dispatcher-11] [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:11:27,131 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:27,131 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:27,132 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6f92fdfd 01:11:27,132 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:11:27,239 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true], state: Idle 01:11:27,239 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 01:11:27,240 AM [test-pekko.actor.default-dispatcher-11] [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:11:27,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:11:27,240 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - leader: support() called 01:11:27,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:11:27,241 AM [leader-%d112034] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:27,241 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:27,241 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 01:11:27,241 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - leader: support() called 01:11:27,241 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:11:27,241 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:11:27,241 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:11:27,241 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:11:27,241 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:11:27,241 AM [leader-%d112035] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/snapshot-000000006864873F-0E67983F.tmp 01:11:27,242 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server135), Chunk: 1/1 01:11:27,242 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:11:27,244 AM [leader-%d112035] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/snapshot-000000006864873F-0E67983F.v1 01:11:27,244 AM [leader-%d112035] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/snapshot-000000006864873F-0E67983F.v1 01:11:27,244 AM [leader-%d112035] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/TermInfo.properties 01:11:27,244 AM [leader-%d112035] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:27.241670207Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/snapshot-000000006864873F-0E67983F.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:27,245 AM [leader-%d112035] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:27,245 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:27,245 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T01:11:27.241670207Z 01:11:27,245 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:11:27,245 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:11:27,245 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:11:27,245 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:11:27,245 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:11:27,245 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:11:27,245 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 01:11:27,245 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 01:11:27,246 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/02/2025 01:11:27.246] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:11:27,246 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 01:11:27,246 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 01:11:27,246 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 01:11:27,247 AM [new-server-%d701453] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/snapshot-000000006864873F-0EB95126.tmp 01:11:27,249 AM [new-server-%d701453] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/snapshot-000000006864873F-0EB95126.v1 01:11:27,249 AM [new-server-%d701453] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/TermInfo.properties 01:11:27,249 AM [new-server-%d701453] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/snapshot-000000006864873F-0EB95126.v1 01:11:27,249 AM [new-server-%d701453] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:27.247025958Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/snapshot-000000006864873F-0EB95126.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:27,249 AM [new-server-%d701453] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 01:11:27,249 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 01:11:27,249 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-02T01:11:27.247025958Z 01:11:27,249 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 01:11:27,249 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - new-server: support() called 01:11:27,249 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - new-server: applySnapshot called 01:11:27,250 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:11:27,250 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:11:27,250 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 2 01:11:27,250 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 01:11:27,250 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 01:11:27,250 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 01:11:27,250 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:11:27,250 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=2 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:11:27,250 AM [test-pekko.actor.default-dispatcher-6] [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:11:27,250 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=6d58b689-40c3-48ab-82ef-47bb890a2123}, logIndex: 2, isSendImmediate: true 01:11:27,250 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:27,250 AM [leader-%d112036] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/snapshot-000000006864873F-0EF01DAA.tmp 01:11:27,250 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:11:27,250 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 2 is present for follower new-server 01:11:27,250 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=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:11:27,250 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 01:11:27,251 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:11:27,251 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:11:27,251 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:11:27,251 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:11:27,251 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:11:27,251 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/snapshot-000000006864873F-0EFA3A52.tmp 01:11:27,253 AM [leader-%d112036] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/snapshot-000000006864873F-0EF01DAA.v1 01:11:27,253 AM [leader-%d112036] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/snapshot-000000006864873F-0E67983F.v1 01:11:27,253 AM [leader-%d112036] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/snapshot-000000006864873F-0EF01DAA.v1 01:11:27,253 AM [leader-%d112036] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/TermInfo.properties 01:11:27,254 AM [leader-%d112036] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:27.241670207Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/snapshot-000000006864873F-0E67983F.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:27,254 AM [leader-%d112036] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:27.250617258Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/leader/snapshot-000000006864873F-0EF01DAA.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:27,254 AM [leader-%d112036] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:27,254 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:27,254 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/snapshot-000000006864873F-0EFA3A52.v1 01:11:27,254 AM [test-pekko.actor.default-dispatcher-6] [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:11:27,254 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/snapshot-000000006864873F-0EFA3A52.v1 01:11:27,254 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/TermInfo.properties 01:11:27,254 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/snapshot-000000006864873F-0EB95126.v1 01:11:27,254 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:27.247025958Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/snapshot-000000006864873F-0EB95126.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:27,254 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:27.251279954Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9412098277557431552/new-server/snapshot-000000006864873F-0EFA3A52.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:27,254 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:11:27,255 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:11:27,255 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Log size is now 1 01:11:27,255 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:11:27,255 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected 1) 01:11:27,255 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 2, nextIndex: 3 01:11:27,255 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 01:11:27,255 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:11:27,255 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 2 01:11:27,255 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 1 to 2 01:11:27,255 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:11:27,255 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 01:11:27,255 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 [WARN] [07/02/2025 01:11:27.255] [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:11:27,255 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:11:27,255 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Commit index set to 2 01:11:27,256 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 01:11:27,256 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:11:27,256 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 2 01:11:27,256 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 1 to 2 01:11:27,256 AM [test-pekko.actor.default-dispatcher-6] [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:11:27,290 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower ending 01:11:27,290 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower133] 01:11:27,301 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector134#264898428] 01:11:27,302 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server135] 01:11:27,302 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:27,302 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:27,302 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader136] 01:11:27,302 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:27,302 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:27,302 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector137] 01:11:27,306 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout starting [WARN] [07/02/2025 01:11:27.308] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@3338ba87 01:11:27,308 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 01:11:27,309 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: started executor 01:11:27,309 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: started executor [WARN] [07/02/2025 01:11:27.310] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@1a5b1086 01:11:27,310 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest560450480809522346/node1/TermInfo.properties does not exist 01:11:27,311 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - node1: no eligible files found 01:11:27,311 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 01:11:27,311 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 01:11:27,311 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING]] 01:11:27,311 AM [test-pekko.actor.default-dispatcher-13] [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:11:27,311 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 01:11:27,311 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: started executor 01:11:27,311 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: started executor 01:11:27,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest560450480809522346/node2/TermInfo.properties does not exist 01:11:27,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: no eligible files found 01:11:27,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 01:11:27,314 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 01:11:27,314 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node2: Updated server config: isVoting: false, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 01:11:27,314 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 1, size: 1 01:11:27,314 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 1 01:11:27,314 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 1 01:11:27,314 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node2: Recovery completed in 45.28 μs - Switching actor to Follower - last log index = 1, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 2 01:11:27,314 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 01:11:27,314 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 01:11:27,314 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@23e0cf47 01:11:27,316 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 01:11:27,316 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 01:11:27,316 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7a0d8965 01:11:27,322 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 01:11:27,322 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:11:27,322 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 01:11:27,322 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 01:11:27,322 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:27,322 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 01:11:27,322 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 01:11:27,325 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 01:11:27,325 AM [test-pekko.actor.default-dispatcher-6] [INFO] Candidate - node1 (Candidate): Starting new election term 2 01:11:27,325 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 01:11:27,325 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:11:27,325 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:11:27,325 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 01:11:27,325 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 01:11:27,325 AM [test-pekko.actor.default-dispatcher-11] [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:11:27,328 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=null 01:11:27,328 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 1, lastTerm: 1 01:11:27,328 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 01:11:27,328 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=false}, my term is 2 01:11:27,328 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=false}, current voteCount: 1 01:11:27,634 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 01:11:27,634 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=NON_VOTING]] 01:11:27,634 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 01:11:27,634 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: Found server ActorSelection[Anchor(pekko://test/), Path(/user/node2)] to forward to 01:11:27,635 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]], state: Idle 01:11:27,635 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:11:27,635 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - node2: Sending local ElectionTimeout to start leader election 01:11:27,635 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=VOTING]] 01:11:27,635 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 01:11:27,635 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [node1] 01:11:27,661 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node2 01:11:27,661 AM [test-pekko.actor.default-dispatcher-13] [INFO] Candidate - node2 (Candidate): Starting new election term 3 01:11:27,661 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Candidate - node2 (Candidate): Sending RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} to peer node1 01:11:27,661 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:11:27,661 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:11:27,662 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): Cluster state: [] 01:11:27,662 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} with higher term appears reachable, updating term. 01:11:27,662 AM [test-pekko.actor.default-dispatcher-11] [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:11:27,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=null 01:11:27,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): In requestVote: RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 01:11:27,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node2 01:11:27,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 01:11:27,668 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node2 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 01:11:27,668 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node2 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 01:11:27,668 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 01:11:27,668 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:27,668 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:11:27,668 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node2: New leader node2 elected 01:11:27,668 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 01:11:27,668 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 01:11:27,668 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node2: Persist data index=2 term=3 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:11:27,668 AM [test-pekko.actor.default-dispatcher-6] [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} [WARN] [07/02/2025 01:11:27.668] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 01:11:27,669 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=8c334fdd-c59d-43cf-a83f-23e4b289de20}, logIndex: 2, isSendImmediate: true 01:11:27,669 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:11:27,669 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]] 01:11:27,669 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) [WARN] [07/02/2025 01:11:27.669] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 01:11:27,670 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 01:11:27,670 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 3 01:11:27,671 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:11:27,671 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 01:11:27,671 AM [test-pekko.actor.default-dispatcher-6] [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:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [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:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 2 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Append entry to log 2 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=1, term=1, command=2, pending=false} 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [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=true} 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Log size is now 3 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Commit index set to 1 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [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:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=false]]} 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Applying state for log index 1 data 2 01:11:27,671 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - node1: applyState called: 2 01:11:27,672 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 01:11:27,672 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 01:11:27,672 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 3 01:11:27,672 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 2, nextIndex: 3 01:11:27,672 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:11:27,672 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 2 01:11:27,672 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 1 to 2 01:11:27,672 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - node2: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:11:27,672 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=2 01:11:27,672 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 1 for term 3 01:11:27,672 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:11:27,672 AM [test-pekko.actor.default-dispatcher-13] [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:11:27,673 AM [test-pekko.actor.default-dispatcher-13] [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:11:27,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=1, command=2, pending=false} 01:11:27,673 AM [test-pekko.actor.default-dispatcher-11] [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:11:27,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): Commit index set to 2 01:11:27,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 01:11:27,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:11:27,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 2 01:11:27,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 1 to 2 01:11:27,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node1: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 01:11:27,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=2 01:11:27,674 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 1 for term 3 01:11:27,784 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 01:11:27,872 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout ending 01:11:27,873 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower138] 01:11:27,884 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector139#6004663] 01:11:27,884 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 01:11:27,884 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:11:27,884 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:11:27,885 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector140#-496497954] 01:11:27,885 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 01:11:27,885 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:11:27,885 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:11:27,888 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached starting [WARN] [07/02/2025 01:11:27.889] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server143]: org.opendaylight.controller.cluster.common.actor.Monitor@3727fe06 01:11:27,892 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:11:27,892 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 01:11:27,892 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 01:11:27,893 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/new-server/TermInfo.properties does not exist 01:11:27,893 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 01:11:27,893 AM [test-pekko.actor.default-dispatcher-11] [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:11:27,896 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:11:27,896 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:11:27,896 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7779f56b 01:11:27,897 AM [test-pekko.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 01:11:27.897] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader144]: org.opendaylight.controller.cluster.common.actor.Monitor@581acab6 01:11:27,898 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:27,898 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:27,898 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:11:27,898 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:11:27,900 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/TermInfo.properties does not exist 01:11:27,900 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: no eligible files found 01:11:27,900 AM [test-pekko.actor.default-dispatcher-13] [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:11:27,902 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:27,902 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:27,902 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2b13740d 01:11:27,903 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:11:27,911 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:11:27,911 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 01:11:27,911 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:11:27,911 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:11:27,911 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:11:27,911 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 01:11:27,912 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:11:27,912 AM [leader-%d954610] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:27,912 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:27,912 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:11:27,912 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 01:11:27,913 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:11:27,913 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:11:27,913 AM [leader-%d954611] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/snapshot-000000006864873F-366AE61B.tmp 01:11:27,913 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:11:27,913 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:11:27,913 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:11:27,913 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server143), Chunk: 1/1 01:11:27,913 AM [test-pekko.actor.default-dispatcher-13] [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:11:27,915 AM [leader-%d954611] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/snapshot-000000006864873F-366AE61B.v1 01:11:27,915 AM [leader-%d954611] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/TermInfo.properties 01:11:27,915 AM [leader-%d954611] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/snapshot-000000006864873F-366AE61B.v1 01:11:27,916 AM [leader-%d954611] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:27.912975387Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/snapshot-000000006864873F-366AE61B.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:27,916 AM [leader-%d954611] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:27,916 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:27,916 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T01:11:27.912975387Z 01:11:27,916 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:11:27,916 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:11:27,916 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:11:27,916 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 01:11:27,916 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 01:11:27,916 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:11:27,916 AM [test-pekko.actor.default-dispatcher-13] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 01:11:27,917 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 01:11:27,917 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: support() called [WARN] [07/02/2025 01:11:27.917] [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:11:27,918 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 01:11:27,918 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 01:11:27,918 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: support() called 01:11:27,918 AM [new-server-%d820148] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/new-server/snapshot-000000006864873F-36BE4EC5.tmp 01:11:27,920 AM [new-server-%d820148] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/new-server/snapshot-000000006864873F-36BE4EC5.v1 01:11:27,920 AM [new-server-%d820148] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/new-server/snapshot-000000006864873F-36BE4EC5.v1 01:11:27,920 AM [new-server-%d820148] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/new-server/TermInfo.properties 01:11:27,920 AM [new-server-%d820148] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:27.918441669Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/new-server/snapshot-000000006864873F-36BE4EC5.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:27,921 AM [new-server-%d820148] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 01:11:27,921 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 01:11:27,921 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-02T01:11:27.918441669Z 01:11:27,921 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 01:11:27,921 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: support() called 01:11:27,921 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: applySnapshot called 01:11:27,921 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:11:27,921 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:11:27,921 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 01:11:27,921 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:11:27,921 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 01:11:27,961 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 01:11:27,961 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:11:27,961 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:11:27,961 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:11:27,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=e682e128-aeed-4833-bfa1-f0c5ba3deb06}, logIndex: 0, isSendImmediate: true 01:11:27,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:27,962 AM [leader-%d954612] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/snapshot-000000006864873F-39585DC7.tmp 01:11:27,962 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:11:27,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:11:27,962 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:11:27,962 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:11:27,964 AM [leader-%d954612] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/snapshot-000000006864873F-39585DC7.v1 01:11:27,965 AM [leader-%d954612] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/snapshot-000000006864873F-39585DC7.v1 01:11:27,965 AM [leader-%d954612] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/TermInfo.properties 01:11:27,965 AM [leader-%d954612] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/snapshot-000000006864873F-366AE61B.v1 01:11:27,965 AM [leader-%d954612] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:27.912975387Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/snapshot-000000006864873F-366AE61B.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:27,965 AM [leader-%d954612] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:27.962092487Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11734019639758921772/leader/snapshot-000000006864873F-39585DC7.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:27,965 AM [leader-%d954612] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:27,965 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:27,965 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:11:28,11 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 01:11:28,12 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 01:11:28,24 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:11:28,143 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:11:28,143 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:11:28,263 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:11:28,264 AM [test-pekko.actor.default-dispatcher-13] [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:11:28,384 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:11:28,384 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:11:28,503 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:11:28,503 AM [test-pekko.actor.default-dispatcher-13] [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:11:28,623 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:11:28,623 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:11:28,744 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:11:28,744 AM [test-pekko.actor.default-dispatcher-13] [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:11:28,864 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:11:28,864 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:11:29,973 AM [test-pekko.actor.default-dispatcher-16] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured while replicating the new server configuration for new-server 01:11:29,973 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 01:11:29,973 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 01:11:29,973 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 01:11:29,974 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached ending 01:11:29,974 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower141] 01:11:29,976 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector142#-1338754564] 01:11:29,977 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server143] 01:11:29,977 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:29,977 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:29,977 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader144] 01:11:29,977 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:29,977 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:29,978 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector145] 01:11:29,978 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-serverCollector146] 01:11:29,981 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers starting [WARN] [07/02/2025 01:11:29.982] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader148]: org.opendaylight.controller.cluster.common.actor.Monitor@29e4b391 01:11:29,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:29,983 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:29,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:11:29,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:11:29,985 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11238714372000865481/leader/TermInfo.properties does not exist 01:11:29,985 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 01:11:29,985 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:11:29,991 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:29,991 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:29,991 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@47de04c8 01:11:29,992 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:11:29,992 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 01:11:29,992 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers ending 01:11:29,992 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower147] 01:11:29,993 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader148] 01:11:29,993 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:29,993 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:29,996 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete starting [WARN] [07/02/2025 01:11:29.997] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server151]: org.opendaylight.controller.cluster.common.actor.Monitor@5085bf26 01:11:29,998 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:11:29,998 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 01:11:29,998 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 01:11:29,999 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6287397365137222810/new-server/TermInfo.properties does not exist 01:11:29,999 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: no eligible files found 01:11:29,999 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,2 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:11:30,2 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:11:30,2 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@72b097f4 01:11:30,2 AM [test-pekko.actor.default-dispatcher-13] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 01:11:30.003] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader152]: org.opendaylight.controller.cluster.common.actor.Monitor@674643f7 01:11:30,3 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:30,3 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:30,4 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: started executor 01:11:30,4 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: started executor 01:11:30,5 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6287397365137222810/leader/TermInfo.properties does not exist 01:11:30,5 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: no eligible files found 01:11:30,5 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,7 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:30,7 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:30,7 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3b0cd929 01:11:30,7 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:11:30,7 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 01:11:30,7 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:11:30,7 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,7 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 01:11:30,7 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:11:30,7 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - leader: support() called 01:11:30,8 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 01:11:30,8 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:11:30,8 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true], state: Idle 01:11:30,8 AM [leader-%d202164] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6287397365137222810/leader/snapshot-0000000068648742-00811CEC.tmp 01:11:30,8 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 01:11:30,8 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,8 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 01:11:30,10 AM [leader-%d202164] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6287397365137222810/leader/snapshot-0000000068648742-00811CEC.v1 01:11:30,10 AM [leader-%d202164] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6287397365137222810/leader/snapshot-0000000068648742-00811CEC.v1 01:11:30,10 AM [leader-%d202164] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6287397365137222810/leader/TermInfo.properties 01:11:30,10 AM [leader-%d202164] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.008461548Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6287397365137222810/leader/snapshot-0000000068648742-00811CEC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:30,11 AM [leader-%d202164] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:30,11 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:30,110 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:30,111 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:30,111 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T01:11:30.008461548Z 01:11:30,111 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:11:30,111 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 01:11:30,111 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: No longer the leader 01:11:30,111 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:11:30,111 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 01:11:30,111 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 01:11:30,111 AM [test-pekko.actor.default-dispatcher-13] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 01:11:30,111 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete ending 01:11:30,111 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower149] 01:11:30,113 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector150#1807248706] 01:11:30,113 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server151] 01:11:30,113 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:30,113 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:30,113 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader152] 01:11:30,114 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:30,114 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:30,117 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting starting [WARN] [07/02/2025 01:11:30.119] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server155]: org.opendaylight.controller.cluster.common.actor.Monitor@64d7c1c3 01:11:30,120 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:11:30,120 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: started executor 01:11:30,120 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: started executor 01:11:30,121 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/TermInfo.properties does not exist 01:11:30,122 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: no eligible files found 01:11:30,122 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,125 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:11:30,125 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:11:30,125 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5497d747 01:11:30,126 AM [test-pekko.actor.default-dispatcher-13] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 01:11:30.127] [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@4d0c6b0c 01:11:30,128 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:30,128 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:30,128 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: started executor 01:11:30,128 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: started executor 01:11:30,129 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/TermInfo.properties does not exist 01:11:30,129 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: no eligible files found 01:11:30,129 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,132 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:30,132 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:30,132 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@416285da 01:11:30,132 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:11:30,132 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false], state: Idle 01:11:30,132 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 01:11:30,132 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 01:11:30,133 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 01:11:30,133 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:11:30,133 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,133 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=bc8debaa-3d95-45b4-ae28-036928f0102a}, logIndex: 0, isSendImmediate: true 01:11:30,133 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:11:30,133 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:11:30,133 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:11:30,133 AM [leader-%d50579] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/snapshot-0000000068648742-07F083C6.tmp 01:11:30,133 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,133 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 01:11:30,133 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:11:30,133 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,135 AM [leader-%d50579] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/snapshot-0000000068648742-07F083C6.v1 01:11:30,136 AM [leader-%d50579] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/snapshot-0000000068648742-07F083C6.v1 01:11:30,136 AM [leader-%d50579] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/TermInfo.properties 01:11:30,136 AM [leader-%d50579] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.133202886Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/snapshot-0000000068648742-07F083C6.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:30,136 AM [leader-%d50579] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:30,136 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:30,136 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,136 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:11:30,136 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:11:30,137 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 01:11:30,137 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,137 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:11:30,137 AM [test-pekko.actor.default-dispatcher-13] [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/02/2025 01:11:30.137] [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:11:30,137 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,137 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:11:30,137 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:11:30,137 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 01:11:30,137 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,137 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/snapshot-0000000068648742-0831C128.tmp 01:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/snapshot-0000000068648742-0831C128.v1 01:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/snapshot-0000000068648742-0831C128.v1 01:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/TermInfo.properties 01:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.137478440Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/snapshot-0000000068648742-0831C128.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 01:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Log size is now 1 01:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Commit index set to 0 01:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 01:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 01:11:30,139 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,139 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 01:11:30,139 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 [WARN] [07/02/2025 01:11:30.139] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 01:11:30,243 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:30,364 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:30,484 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:30,604 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:30,688 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false], state: Idle 01:11:30,689 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 01:11:30,689 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 01:11:30,689 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 01:11:30,689 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,689 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,689 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=2818fdeb-e7c3-4dc6-bf2a-385687118771}, logIndex: 1, isSendImmediate: true 01:11:30,689 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 01:11:30,689 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 01:11:30,689 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,689 AM [leader-%d50580] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/snapshot-0000000068648742-29188C9F.tmp 01:11:30,690 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:30,690 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 01:11:30,690 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,690 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:30,690 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 01:11:30,690 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:11:30,691 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,691 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 01:11:30,690 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,691 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,691 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:11:30,691 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:11:30,691 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,691 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,691 AM [test-pekko.actor.default-dispatcher-16] [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:626) 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/02/2025 01:11:30.691] [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:626) 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:11:30,692 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting ending 01:11:30,692 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower153] 01:11:30,691 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/snapshot-0000000068648742-293D8D8F.tmp 01:11:30,694 AM [leader-%d50580] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/snapshot-0000000068648742-29188C9F.v1 01:11:30,695 AM [leader-%d50580] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/snapshot-0000000068648742-07F083C6.v1 01:11:30,695 AM [leader-%d50580] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/snapshot-0000000068648742-29188C9F.v1 01:11:30,695 AM [leader-%d50580] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/TermInfo.properties 01:11:30,695 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/snapshot-0000000068648742-293D8D8F.v1 01:11:30,695 AM [leader-%d50580] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.133202886Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/snapshot-0000000068648742-07F083C6.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:30,695 AM [leader-%d50580] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.689474719Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/leader/snapshot-0000000068648742-29188C9F.v1, size=100, entryCompress=NONE, stateCompress=NONE} 01:11:30,695 AM [leader-%d50580] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:30,695 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/snapshot-0000000068648742-0831C128.v1 01:11:30,696 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:30,696 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/TermInfo.properties 01:11:30,696 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:11:30,696 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/snapshot-0000000068648742-293D8D8F.v1 01:11:30,696 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.137478440Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/snapshot-0000000068648742-0831C128.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:30,696 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.691899791Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11219634425451882259/new-server/snapshot-0000000068648742-293D8D8F.v1, size=100, entryCompress=NONE, stateCompress=NONE} 01:11:30,696 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,696 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,697 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Log size is now 2 01:11:30,697 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Commit index set to 1 01:11:30,697 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,697 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 01:11:30,697 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:11:30,697 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 01:11:30,697 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 01:11:30,697 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 01:11:30,697 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,697 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:11:30,704 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector154#392377635] 01:11:30,704 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server155] 01:11:30,704 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:30,704 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:30,705 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader156] 01:11:30,705 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:30,705 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:30,705 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector157] 01:11:30,710 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress starting [WARN] [07/02/2025 01:11:30.711] [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@4b3b518b 01:11:30,712 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:11:30,712 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 01:11:30,712 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 01:11:30,713 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/TermInfo.properties does not exist 01:11:30,714 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 01:11:30,714 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,716 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:11:30,716 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:11:30,716 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@354a460d 01:11:30,717 AM [test-pekko.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 01:11:30.717] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader161]: org.opendaylight.controller.cluster.common.actor.Monitor@70b6e5f0 01:11:30,718 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:30,718 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:30,718 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 01:11:30,718 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 01:11:30,719 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/TermInfo.properties does not exist 01:11:30,719 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 01:11:30,719 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,721 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:30,721 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:30,721 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5f58c5da 01:11:30,722 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:11:30,722 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 01:11:30,722 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:11:30,722 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,722 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 01:11:30,722 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:11:30,722 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - leader: support() called 01:11:30,723 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 01:11:30,723 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:11:30,723 AM [leader-%d918083] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-2B1B4DAA.tmp 01:11:30,725 AM [leader-%d918083] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-2B1B4DAA.v1 01:11:30,725 AM [leader-%d918083] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/TermInfo.properties 01:11:30,725 AM [leader-%d918083] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-2B1B4DAA.v1 01:11:30,725 AM [leader-%d918083] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.723209642Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-2B1B4DAA.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:30,725 AM [leader-%d918083] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:30,726 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:30,831 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true], state: Idle 01:11:30,832 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:30,832 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 01:11:30,832 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,832 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 01:11:30,832 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:30,832 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T01:11:30.723209642Z 01:11:30,832 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:11:30,832 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 01:11:30,833 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:11:30,833 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,833 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:11:30,833 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - leader: support() called 01:11:30,835 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:11:30,835 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:11:30,835 AM [leader-%d918084] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:30,835 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:30,835 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:11:30,835 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - leader: support() called 01:11:30,836 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:11:30,836 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:11:30,836 AM [leader-%d918085] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-31D3E776.tmp 01:11:30,836 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:11:30,836 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:11:30,836 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:11:30,836 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,836 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server160), Chunk: 1/1 01:11:30,839 AM [leader-%d918085] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-31D3E776.v1 01:11:30,840 AM [leader-%d918085] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-31D3E776.v1 01:11:30,840 AM [leader-%d918085] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/TermInfo.properties 01:11:30,840 AM [leader-%d918085] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-2B1B4DAA.v1 01:11:30,840 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:11:30,840 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 01:11:30,840 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 01:11:30,840 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:11:30,840 AM [test-pekko.actor.default-dispatcher-13] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 01:11:30,841 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 01:11:30,841 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: support() called 01:11:30,841 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 01:11:30,842 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 01:11:30,842 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: support() called [WARN] [07/02/2025 01:11:30.842] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:11:30,842 AM [leader-%d918085] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.723209642Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-2B1B4DAA.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:30,842 AM [leader-%d918085] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.835970934Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-31D3E776.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:30,842 AM [leader-%d918085] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:30,842 AM [new-server-%d610060] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/snapshot-0000000068648742-3233D46A.tmp 01:11:30,843 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:30,843 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T01:11:30.835970934Z 01:11:30,843 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:11:30,843 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:11:30,844 AM [new-server-%d610060] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/snapshot-0000000068648742-3233D46A.v1 01:11:30,844 AM [new-server-%d610060] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/snapshot-0000000068648742-3233D46A.v1 01:11:30,844 AM [new-server-%d610060] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/TermInfo.properties 01:11:30,844 AM [new-server-%d610060] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.842257514Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/snapshot-0000000068648742-3233D46A.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:30,845 AM [new-server-%d610060] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 01:11:30,845 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 01:11:30,845 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-02T01:11:30.842257514Z 01:11:30,845 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 01:11:30,845 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: support() called 01:11:30,845 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: applySnapshot called 01:11:30,845 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:11:30,845 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 01:11:30,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:11:30,845 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 01:11:30,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 01:11:30,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 01:11:30,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 01:11:30,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 01:11:30,845 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,846 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=d8deddb7-df3e-4930-812d-3982dc028924}, logIndex: 0, isSendImmediate: true 01:11:30,846 AM [leader-%d918086] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-326BE1A2.tmp 01:11:30,846 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:30,846 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,846 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 01:11:30,846 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,846 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 01:11:30,846 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=-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:11:30,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:11:30,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:11:30,846 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:11:30,846 AM [test-pekko.actor.default-dispatcher-16] [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:11:30,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/snapshot-0000000068648742-3274DF17.tmp 01:11:30,849 AM [leader-%d918086] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-326BE1A2.v1 01:11:30,849 AM [leader-%d918086] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-31D3E776.v1 01:11:30,849 AM [leader-%d918086] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-326BE1A2.v1 01:11:30,849 AM [leader-%d918086] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/TermInfo.properties 01:11:30,849 AM [leader-%d918086] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.835970934Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-31D3E776.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:30,849 AM [leader-%d918086] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.845930914Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/leader/snapshot-0000000068648742-326BE1A2.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:30,849 AM [leader-%d918086] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:30,849 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/snapshot-0000000068648742-3274DF17.v1 01:11:30,849 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:30,849 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/snapshot-0000000068648742-3274DF17.v1 01:11:30,849 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/snapshot-0000000068648742-3233D46A.v1 01:11:30,849 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,849 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/TermInfo.properties 01:11:30,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.842257514Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/snapshot-0000000068648742-3233D46A.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:30,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.846520087Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16518339545154125894/new-server/snapshot-0000000068648742-3274DF17.v1, size=86, entryCompress=NONE, stateCompress=NONE} 01:11:30,850 AM [test-pekko.actor.default-dispatcher-16] [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:11:30,850 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:11:30,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Log size is now 1 01:11:30,850 AM [test-pekko.actor.default-dispatcher-16] [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:11:30,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:11:30,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 01:11:30,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:11:30,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:11:30,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:11:30,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} [WARN] [07/02/2025 01:11:30.850] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 01:11:30,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,850 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Commit index set to 0 01:11:30,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:30,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:11:30,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 01:11:30,850 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 01:11:30,850 AM [test-pekko.actor.default-dispatcher-16] [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:11:30,897 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress ending 01:11:30,897 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower158] 01:11:30,908 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector159#-1787107134] 01:11:30,908 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server160] 01:11:30,909 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:30,909 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:30,909 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader161] 01:11:30,909 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:30,909 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:30,909 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector162] 01:11:30,913 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode starting [WARN] [07/02/2025 01:11:30.914] [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@902292e 01:11:30,915 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:30,915 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:30,916 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 01:11:30,916 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 01:11:30,917 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest734346108009220634/leader/TermInfo.properties does not exist 01:11:30,917 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 01:11:30,917 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,920 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:30,920 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:30,920 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@28a4e60d 01:11:30,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:11:30,926 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 01:11:30,926 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:11:30,926 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning INVALID_REQUEST for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 01:11:30,927 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode ending 01:11:30,927 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower163] 01:11:30,928 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader164] 01:11:30,928 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:30,928 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:30,930 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting starting [WARN] [07/02/2025 01:11:30.931] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader168]: org.opendaylight.controller.cluster.common.actor.Monitor@4303ec3d 01:11:30,932 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:30,932 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:30,932 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:11:30,932 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor [WARN] [07/02/2025 01:11:30.935] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower166]: org.opendaylight.controller.cluster.common.actor.Monitor@b42f808 01:11:30,935 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/leader/TermInfo.properties does not exist 01:11:30,935 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: no eligible files found 01:11:30,935 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,935 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 01:11:30,935 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: started executor 01:11:30,935 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: started executor 01:11:30,936 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/follower/TermInfo.properties does not exist 01:11:30,937 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: no eligible files found 01:11:30,937 AM [test-pekko.actor.default-dispatcher-6] [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:11:30,937 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 01:11:30,937 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: started executor 01:11:30,937 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: started executor [WARN] [07/02/2025 01:11:30.937] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2167]: org.opendaylight.controller.cluster.common.actor.Monitor@257728bc 01:11:30,938 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:30,938 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:30,938 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@124741e2 01:11:30,938 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/follower2/TermInfo.properties does not exist 01:11:30,939 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: no eligible files found 01:11:30,939 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 01:11:30,939 AM [test-pekko.actor.default-dispatcher-16] [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:11:30,939 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:30,939 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:30,939 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 01:11:30,939 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:11:30,939 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,939 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]] 01:11:30,939 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,939 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,940 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 01:11:30,940 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 01:11:30,940 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=d12e216d-4919-4491-bdee-b31f93fb21cb}, logIndex: 0, isSendImmediate: true 01:11:30,940 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7ea987af 01:11:30,940 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:30,940 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,940 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,940 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 01:11:30,940 AM [test-pekko.actor.default-dispatcher-6] [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:11:30,940 AM [leader-%d76500] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/leader/snapshot-0000000068648742-3805ED60.tmp 01:11:30,941 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 01:11:30,941 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 01:11:30,941 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3e8e5c45 01:11:30,942 AM [test-pekko.actor.default-dispatcher-16] [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:11:30,942 AM [leader-%d76500] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/leader/snapshot-0000000068648742-3805ED60.v1 01:11:30,943 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 01:11:30,943 AM [leader-%d76500] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/leader/TermInfo.properties 01:11:30,943 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:11:30,943 AM [leader-%d76500] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/leader/snapshot-0000000068648742-3805ED60.v1 01:11:30,943 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:11:30,943 AM [leader-%d76500] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.939912544Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/leader/snapshot-0000000068648742-3805ED60.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:30,943 AM [leader-%d76500] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:30,943 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:30,943 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:11:30,943 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,943 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower [WARN] [07/02/2025 01:11:30.943] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [WARN] [07/02/2025 01:11:30.943] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 01:11:30,943 AM [test-pekko.actor.default-dispatcher-6] [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=false}]} 01:11:30,943 AM [test-pekko.actor.default-dispatcher-11] [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=false}]} 01:11:30,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:11:30,943 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:11:30,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:11:30,943 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,943 AM [test-pekko.actor.default-dispatcher-11] [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=false} 01:11:30,943 AM [test-pekko.actor.default-dispatcher-6] [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:11:30,943 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 01:11:30,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/follower/snapshot-0000000068648742-3843D25F.tmp 01:11:30,944 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 01:11:30,944 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 01:11:30,944 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,944 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 01:11:30,944 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:11:30,944 AM [test-pekko.actor.default-dispatcher-12] [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=false}]} [WARN] [07/02/2025 01:11:30.944] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] [WARN] [07/02/2025 01:11:30.944] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 01:11:30,944 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 01:11:30,944 AM [test-pekko.actor.default-dispatcher-13] [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=false}]} 01:11:30,944 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 01:11:30,944 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:11:30,944 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,944 AM [test-pekko.actor.default-dispatcher-13] [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=false} 01:11:30,944 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/follower2/snapshot-0000000068648742-384BB61B.tmp 01:11:30,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/follower/snapshot-0000000068648742-3843D25F.v1 01:11:30,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/follower/snapshot-0000000068648742-3843D25F.v1 01:11:30,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/follower/TermInfo.properties 01:11:30,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.943968863Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/follower/snapshot-0000000068648742-3843D25F.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:30,946 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,946 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): Log size is now 1 01:11:30,946 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,946 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:11:30,946 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:11:30,946 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:11:30,946 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:11:30,947 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=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 01:11:30,947 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,947 AM [test-pekko.actor.default-dispatcher-7] [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:11:30,947 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/follower2/snapshot-0000000068648742-384BB61B.v1 01:11:30,947 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - Leader changed to non-voting - trying leadership transfer 01:11:30,947 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/follower2/snapshot-0000000068648742-384BB61B.v1 01:11:30,947 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Initiating leader transfer 01:11:30,947 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/follower2/TermInfo.properties 01:11:30,947 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:30.944485915Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13267573493430312058/follower2/snapshot-0000000068648742-384BB61B.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:30,947 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,947 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,947 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - follower2 (Follower): Log size is now 1 01:11:30,947 AM [test-pekko.actor.default-dispatcher-13] [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:11:30,947 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:11:30,947 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:11:30,948 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): Commit index set to 0 01:11:30,948 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:30,948 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:11:30,948 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:11:30,948 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 01:11:30,948 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - follower2: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 01:11:30,948 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,948 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - follower: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 01:11:30,949 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorLeadershipTransferCohort - leader: pauseLeader successfully completed - doing transfer 01:11:30,949 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Leader - leader (Leader): Attempting to transfer leadership 01:11:30,949 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:11:30,949 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 01:11:30,949 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=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:11:30,949 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,949 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:30,949 AM [test-pekko.actor.default-dispatcher-11] [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=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} 01:11:30,949 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 01:11:30,949 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 01:11:30,949 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (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:11:30,949 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:11:30,949 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): Log size is now 1 01:11:30,949 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:11:30,949 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 01:11:30,950 AM [test-pekko.actor.default-dispatcher-11] [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:11:30,950 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:30,950 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:11:30,950 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 01:11:30,950 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 01:11:30,950 AM [test-pekko.actor.default-dispatcher-11] [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]]} 01:11:30,950 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Leader - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower2, matchIndex: 0, lastIndex: 0, isVoting: true 01:11:30,950 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Leader - leader (Leader): Follower's log matches - sending ElectionTimeout 01:11:30,950 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:11:30,950 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,950 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Leader - leader (Leader): Leader transfer complete 01:11:30,950 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:30,950 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader transfer complete - waiting for new leader 01:11:30,950 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:30,950 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:30,950 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): Received TimeoutNow - switching to Candidate 01:11:30,950 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - follower2 (Candidate): Election: Candidate has following voting peers: [follower] 01:11:30,952 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=follower2 01:11:30,952 AM [test-pekko.actor.default-dispatcher-11] [INFO] Candidate - follower2 (Candidate): Starting new election term 2 01:11:30,952 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - follower2 (Candidate): Sending RequestVote{term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1} to peer follower 01:11:30,952 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorBehavior - follower2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:11:30,952 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:11:30,952 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 01:11:30,952 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 01:11:30,952 AM [test-pekko.actor.default-dispatcher-7] [INFO] Follower - follower (Follower): Term 2 in "RequestVote{term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1}" message is greater than follower's term 1 - updating term 01:11:30,954 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=2, votedFor=null 01:11:30,954 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 0, lastTerm: 1 01:11:30,956 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=2, votedFor=follower2 01:11:30,956 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=true} 01:11:30,956 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - follower2 (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=true}, my term is 2 01:11:30,956 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - follower2 (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=true}, current voteCount: 1 01:11:30,956 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - follower2 (Leader): Election: Leader has following peers: [leader, follower] 01:11:30,956 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - follower2 (Leader): Checking sendAppendEntries for follower leader: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,956 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - follower2 (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,956 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader follower2, need to catch up to -1 01:11:30,956 AM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractLeader - leader (Leader): Term 2 in "AppendEntries{term=2, leaderId=follower2, 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 [WARN] [07/02/2025 01:11:30.956] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 01:11:30,956 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorBehavior - follower2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:11:30,956 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - follower2 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:11:30,956 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - follower2 (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:30,957 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) [WARN] [07/02/2025 01:11:30.957] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 01:11:30,958 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=2, votedFor=null 01:11:30,958 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorBehavior - leader (Leader) :- Switching from behavior Leader to Follower, election term: 2 01:11:31,474 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) 01:11:31,474 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - leader: Last sync leader does not match current leader follower2, need to catch up to -1 01:11:31,474 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader changed to follower2 01:11:31,474 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - follower2 (Leader): handleAppendEntriesReply - FollowerLogInformation for leader updated: matchIndex: 0, nextIndex: 1 01:11:31,474 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - follower2 (Leader): Checking sendAppendEntries for follower leader: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:31,474 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorLeadershipTransferCohort - leader: Successfully transferred leadership to follower2 in 526.8 ms 01:11:31,475 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: leader transfer succeeded after change to non-voting [WARN] [07/02/2025 01:11:31.476] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=false] 01:11:31,476 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - leader: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) [WARN] [07/02/2025 01:11:31.476] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=true] 01:11:31,493 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting ending 01:11:31,493 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower165] 01:11:31,504 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader168] 01:11:31,505 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:31,505 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:31,505 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector169] 01:11:31,505 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector170#-1276860128] 01:11:31,506 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower166] 01:11:31,506 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:11:31,506 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:11:31,506 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector171#-2006036764] 01:11:31,506 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2167] 01:11:31,507 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 01:11:31,507 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 01:11:31,510 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState starting [WARN] [07/02/2025 01:11:31.511] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader173]: org.opendaylight.controller.cluster.common.actor.Monitor@7b08c3b2 01:11:31,512 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:31,513 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 01:11:31,513 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 01:11:31,513 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState ending 01:11:31,513 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower172] 01:11:31,514 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1566563090475478714/leader/TermInfo.properties does not exist 01:11:31,515 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 01:11:31,515 AM [test-pekko.actor.default-dispatcher-11] [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:11:31,519 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 01:11:31,519 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 01:11:31,519 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@54575d5e 01:11:31,524 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader173] 01:11:31,524 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:31,524 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:31,527 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer starting [WARN] [07/02/2025 01:11:31.528] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader177]: org.opendaylight.controller.cluster.common.actor.Monitor@19bf3b1d 01:11:31,529 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:31,529 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:31,529 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 01:11:31,529 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 01:11:31,531 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/leader/TermInfo.properties does not exist 01:11:31,531 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 01:11:31,531 AM [test-pekko.actor.default-dispatcher-11] [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/02/2025 01:11:31.531] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower175]: org.opendaylight.controller.cluster.common.actor.Monitor@13fd459b 01:11:31,532 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 01:11:31,532 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: started executor 01:11:31,533 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: started executor 01:11:31,534 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/follower/TermInfo.properties does not exist 01:11:31,534 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower: no eligible files found 01:11:31,534 AM [test-pekko.actor.default-dispatcher-13] [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:11:31,534 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:31,534 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:31,534 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@52a728a5 01:11:31,534 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower, downNode] 01:11:31,534 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:31,535 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/02/2025 01:11:31.535] [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:11:31,535 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/02/2025 01:11:31.535] [test-pekko.actor.default-dispatcher-6] [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==[]} [WARN] [07/02/2025 01:11:31.535] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2176]: org.opendaylight.controller.cluster.common.actor.Monitor@50e5789d 01:11:31,536 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 01:11:31,536 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 01:11:31,536 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6715734f 01:11:31,536 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 01:11:31,536 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower2: started executor 01:11:31,536 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower2: started executor 01:11:31,536 AM [test-pekko.actor.default-dispatcher-13] [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:11:31,538 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/follower2/TermInfo.properties does not exist 01:11:31,538 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: no eligible files found 01:11:31,538 AM [test-pekko.actor.default-dispatcher-11] [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:11:31,540 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 01:11:31,540 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:11:31,540 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 [WARN] [07/02/2025 01:11:31.540] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower175] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 01:11:31,540 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:31,541 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 01:11:31,541 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 01:11:31,541 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7bc666e6 01:11:31,552 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 01:11:31,552 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 01:11:31,552 AM [test-pekko.actor.default-dispatcher-7] [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:11:31,552 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=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:11:31,552 AM [leader-%d954767] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/leader/snapshot-0000000068648743-20F35A22.tmp 01:11:31,553 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=55b40abe-d4c3-4102-888d-8b52344f796c}, logIndex: 0, isSendImmediate: true 01:11:31,553 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:31,553 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:31,553 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:31,553 AM [test-pekko.actor.default-dispatcher-11] [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/02/2025 01:11:31.554] [test-pekko.actor.default-dispatcher-6] [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:11:31,553 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='follower'} 01:11:31,556 AM [leader-%d954767] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/leader/snapshot-0000000068648743-20F35A22.v1 01:11:31,556 AM [leader-%d954767] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/leader/snapshot-0000000068648743-20F35A22.v1 01:11:31,556 AM [leader-%d954767] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/leader/TermInfo.properties 01:11:31,556 AM [leader-%d954767] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.552819234Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/leader/snapshot-0000000068648743-20F35A22.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:31,556 AM [leader-%d954767] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:31,556 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:31,556 AM [test-pekko.actor.default-dispatcher-7] [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:11:31,557 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 01:11:31,557 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/02/2025 01:11:31.557] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 01:11:31,557 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 01:11:31,557 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:11:31,557 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 01:11:31,557 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=false}]} 01:11:31,557 AM [test-pekko.actor.default-dispatcher-6] [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=false}]} 01:11:31,557 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 01:11:31,557 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:11:31,557 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,557 AM [test-pekko.actor.default-dispatcher-6] [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=false} 01:11:31,557 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/follower2/snapshot-0000000068648743-2140D98E.tmp 01:11:31,560 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/follower2/snapshot-0000000068648743-2140D98E.v1 01:11:31,560 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/follower2/snapshot-0000000068648743-2140D98E.v1 01:11:31,560 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/follower2/TermInfo.properties 01:11:31,560 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.557898126Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18135897406806025561/follower2/snapshot-0000000068648743-2140D98E.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:31,560 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,561 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,561 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Log size is now 1 01:11:31,561 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,561 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:11:31,561 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 01:11:31,561 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:11:31,561 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:11:31,561 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:11:31,561 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,561 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:31,561 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 01:11:31,561 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:31,561 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:11:31,561 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 01:11:31,561 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 01:11:31,561 AM [test-pekko.actor.default-dispatcher-12] [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]]} 01:11:31,561 AM [test-pekko.actor.default-dispatcher-6] [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/02/2025 01:11:31.562] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] [WARN] [07/02/2025 01:11:31.562] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower175] unhandled message from TestActor[pekko://test/user/leader177]: ServerRemoved [serverId=follower] 01:11:31,606 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer ending 01:11:31,606 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower174] 01:11:31,617 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader177] 01:11:31,618 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:31,618 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:31,618 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector178] 01:11:31,618 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector179#-523370884] 01:11:31,619 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower175] 01:11:31,619 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:11:31,619 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:11:31,619 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector180#1000483817] 01:11:31,619 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2176] 01:11:31,619 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 01:11:31,619 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 01:11:31,622 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader starting [WARN] [07/02/2025 01:11:31.623] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server183]: org.opendaylight.controller.cluster.common.actor.Monitor@17b2acde 01:11:31,624 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:11:31,624 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 01:11:31,624 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 01:11:31,625 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12035992306024467206/new-server/TermInfo.properties does not exist 01:11:31,625 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 01:11:31,625 AM [test-pekko.actor.default-dispatcher-11] [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:11:31,628 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:11:31,628 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:11:31,628 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@15c936be 01:11:31,629 AM [test-pekko.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 01:11:31.629] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader184]: org.opendaylight.controller.cluster.common.actor.Monitor@e951729 01:11:31,632 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:31,632 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 01:11:31,632 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 01:11:31,633 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12035992306024467206/leader/TermInfo.properties does not exist 01:11:31,633 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 01:11:31,633 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:11:31,636 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 01:11:31,636 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 01:11:31,636 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5bc3e016 01:11:31,646 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server183, votingMember=true], state: Idle 01:11:31,646 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 01:11:31,647 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader ending 01:11:31,647 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower181] 01:11:31,657 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector182#-758474465] 01:11:31,657 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server183] 01:11:31,657 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:31,657 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:31,658 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader184] 01:11:31,658 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:31,658 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:31,660 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus starting [WARN] [07/02/2025 01:11:31.661] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader188]: org.opendaylight.controller.cluster.common.actor.Monitor@53b98fa7 01:11:31,662 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:31,662 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:31,662 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 01:11:31,662 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 01:11:31,664 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/TermInfo.properties does not exist 01:11:31,664 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 01:11:31,664 AM [test-pekko.actor.default-dispatcher-11] [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/02/2025 01:11:31.664] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower186]: org.opendaylight.controller.cluster.common.actor.Monitor@4f27af60 01:11:31,666 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 01:11:31,666 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 01:11:31,667 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 01:11:31,668 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/TermInfo.properties does not exist 01:11:31,668 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower: no eligible files found 01:11:31,668 AM [test-pekko.actor.default-dispatcher-13] [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:11:31,668 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 01:11:31,668 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: started executor 01:11:31,668 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: started executor [WARN] [07/02/2025 01:11:31.669] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2187]: org.opendaylight.controller.cluster.common.actor.Monitor@3fdcaa19 01:11:31,670 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:31,670 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:31,670 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4c41ddf8 01:11:31,670 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 01:11:31,670 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:31,670 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:31,670 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 01:11:31,670 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 01:11:31,670 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7b545291 01:11:31,671 AM [test-pekko.actor.default-dispatcher-13] [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:11:31,674 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 01:11:31,675 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:11:31,675 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:11:31,675 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/02/2025 01:11:31.675] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 01:11:31,679 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/TermInfo.properties does not exist 01:11:31,679 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower2: no eligible files found 01:11:31,679 AM [test-pekko.actor.default-dispatcher-18] [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:11:31,680 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]], state: Idle 01:11:31,680 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:11:31,680 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,680 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 01:11:31,680 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,680 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=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 01:11:31,680 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=8dab938a-bb69-4e59-926f-1de05d7c5548}, logIndex: 0, isSendImmediate: true 01:11:31,680 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 01:11:31,680 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 01:11:31,680 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,680 AM [leader-%d682175] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/snapshot-0000000068648743-2892F0AC.tmp 01:11:31,680 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:31,681 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:31,681 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:11:31,681 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,681 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,681 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]] 01:11:31,681 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:11:31,681 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:11:31,681 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,681 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,681 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/snapshot-0000000068648743-28A06637.tmp 01:11:31,681 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,686 AM [leader-%d682175] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/snapshot-0000000068648743-2892F0AC.v1 01:11:31,686 AM [leader-%d682175] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/TermInfo.properties 01:11:31,686 AM [leader-%d682175] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/snapshot-0000000068648743-2892F0AC.v1 01:11:31,686 AM [leader-%d682175] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.680718508Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/snapshot-0000000068648743-2892F0AC.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:31,686 AM [leader-%d682175] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:31,686 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:31,686 AM [test-pekko.actor.default-dispatcher-17] [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} 01:11:31,687 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 01:11:31,687 AM [test-pekko.actor.default-dispatcher-18] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 01:11:31,687 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5705b3f4 01:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/snapshot-0000000068648743-28A06637.v1 01:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/snapshot-0000000068648743-28A06637.v1 01:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/TermInfo.properties 01:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.681600567Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/snapshot-0000000068648743-28A06637.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Log size is now 1 01:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Commit index set to 0 01:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 01:11:31,687 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:11:31,687 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,687 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/02/2025 01:11:31.688] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 01:11:31,688 AM [test-pekko.actor.default-dispatcher-18] [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:11:31,692 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 01:11:31,692 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 01:11:31,692 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 01:11:31,692 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:11:31,692 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:31,692 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 01:11:31,692 AM [test-pekko.actor.default-dispatcher-17] [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=false}]} [WARN] [07/02/2025 01:11:31.692] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] [WARN] [07/02/2025 01:11:31.692] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 01:11:31,692 AM [test-pekko.actor.default-dispatcher-16] [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=false}]} 01:11:31,692 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 01:11:31,692 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:11:31,692 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,692 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=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 01:11:31,692 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/snapshot-0000000068648743-294D967F.tmp 01:11:31,693 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 01:11:31,695 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/snapshot-0000000068648743-294D967F.v1 01:11:31,695 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/TermInfo.properties 01:11:31,695 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/snapshot-0000000068648743-294D967F.v1 01:11:31,695 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.692950655Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/snapshot-0000000068648743-294D967F.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:31,695 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,695 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,695 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Log size is now 1 01:11:31,695 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 01:11:31,696 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:11:31,696 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 01:11:31,696 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:11:31,696 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 01:11:31,696 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 01:11:31,696 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,696 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 01:11:31,696 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:31,733 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]], state: Idle 01:11:31,733 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:11:31,733 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,733 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 01:11:31,733 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,733 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,734 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=a68420bf-ecdb-4d73-9a3c-004a16affb45}, logIndex: 1, isSendImmediate: true 01:11:31,734 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 01:11:31,734 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 01:11:31,734 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,734 AM [leader-%d682176] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/snapshot-0000000068648743-2BBF84AF.tmp 01:11:31,734 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:31,734 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower2 01:11:31,734 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,734 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,734 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 01:11:31,734 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:11:31,734 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,734 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,735 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/snapshot-0000000068648743-2BCEDA65.tmp 01:11:31,735 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:31,735 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower 01:11:31,735 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,736 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]] 01:11:31,736 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,736 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:11:31,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:11:31,736 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,736 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/snapshot-0000000068648743-2BEB61EA.tmp 01:11:31,739 AM [leader-%d682176] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/snapshot-0000000068648743-2BBF84AF.v1 01:11:31,739 AM [leader-%d682176] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/snapshot-0000000068648743-2BBF84AF.v1 01:11:31,739 AM [leader-%d682176] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/TermInfo.properties 01:11:31,739 AM [leader-%d682176] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/snapshot-0000000068648743-2892F0AC.v1 01:11:31,740 AM [leader-%d682176] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.680718508Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/snapshot-0000000068648743-2892F0AC.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:31,740 AM [leader-%d682176] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.733971631Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/leader/snapshot-0000000068648743-2BBF84AF.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:31,740 AM [leader-%d682176] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:31,741 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:31,741 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,741 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 01:11:31,742 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/snapshot-0000000068648743-2BCEDA65.v1 01:11:31,742 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/snapshot-0000000068648743-2BEB61EA.v1 01:11:31,742 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/snapshot-0000000068648743-2BCEDA65.v1 01:11:31,742 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/TermInfo.properties 01:11:31,742 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/snapshot-0000000068648743-294D967F.v1 01:11:31,742 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/snapshot-0000000068648743-2BEB61EA.v1 01:11:31,742 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.692950655Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/snapshot-0000000068648743-294D967F.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:31,742 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/snapshot-0000000068648743-28A06637.v1 01:11:31,743 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.734976613Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower2/snapshot-0000000068648743-2BCEDA65.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:31,743 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/TermInfo.properties 01:11:31,743 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,743 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Log size is now 2 01:11:31,743 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Commit index set to 1 01:11:31,743 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,743 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 01:11:31,743 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:11:31,743 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 1 01:11:31,743 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from 0 to 1 01:11:31,743 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,743 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 1, nextIndex: 2 01:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.681600567Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/snapshot-0000000068648743-28A06637.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:31,743 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.736846314Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9254156465052440316/follower/snapshot-0000000068648743-2BEB61EA.v1, size=96, entryCompress=NONE, stateCompress=NONE} 01:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Log size is now 2 01:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Commit index set to 1 01:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 01:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 01:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 0 to 1 01:11:31,743 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:11:31,743 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,743 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:11:31,787 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus ending 01:11:31,787 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower185] 01:11:31,798 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader188] 01:11:31,799 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:31,799 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:31,799 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector189] 01:11:31,800 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector190#265280494] 01:11:31,800 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower186] 01:11:31,800 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:11:31,800 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:11:31,800 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector191#498217224] 01:11:31,801 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2187] 01:11:31,801 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 01:11:31,801 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 01:11:31,805 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower starting [WARN] [07/02/2025 01:11:31.807] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server194]: org.opendaylight.controller.cluster.common.actor.Monitor@25951cce 01:11:31,808 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:11:31,808 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 01:11:31,808 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 01:11:31,810 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/TermInfo.properties does not exist 01:11:31,810 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 01:11:31,810 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:11:31,813 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:11:31,813 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:11:31,813 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6f0dca9a 01:11:31,814 AM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 01:11:31,814 AM [main] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 2 [WARN] [07/02/2025 01:11:31.815] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader195]: org.opendaylight.controller.cluster.common.actor.Monitor@5ab4cb44 01:11:31,816 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 01:11:31,816 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:31,816 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:11:31,816 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 01:11:31,818 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/TermInfo.properties does not exist 01:11:31,818 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 01:11:31,818 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:11:31,820 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 01:11:31,820 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=leader} 01:11:31,821 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@9f8d228 01:11:31,821 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 01:11:31,821 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:11:31,821 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:11:31,821 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 01:11:31,822 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 01:11:31,822 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:11:31,822 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 01:11:31,822 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 1 for term 1 01:11:31,879 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true], state: Idle 01:11:31,879 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 01:11:31,879 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,879 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 01:11:31,879 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 01:11:31,880 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 01:11:31,880 AM [leader-%d130311] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:31,880 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:31,880 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 01:11:31,880 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 01:11:31,881 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 01:11:31,881 AM [leader-%d130312] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/snapshot-0000000068648743-34883E64.tmp 01:11:31,881 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 01:11:31,881 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 01:11:31,881 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 01:11:31,881 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 01:11:31,881 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server194), Chunk: 1/1 01:11:31,881 AM [test-pekko.actor.default-dispatcher-16] [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:11:31,885 AM [leader-%d130312] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/snapshot-0000000068648743-34883E64.v1 01:11:31,885 AM [leader-%d130312] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/snapshot-0000000068648743-34883E64.v1 01:11:31,885 AM [leader-%d130312] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/TermInfo.properties 01:11:31,885 AM [leader-%d130312] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.881344100Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/snapshot-0000000068648743-34883E64.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:31,885 AM [leader-%d130312] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:31,885 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:31,885 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T01:11:31.881344100Z 01:11:31,885 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 01:11:31,886 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 01:11:31,886 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:11:31,886 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 01:11:31,886 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 2 01:11:31,886 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:11:31,886 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 01:11:31,886 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 01:11:31,886 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - new-server: support() called [WARN] [07/02/2025 01:11:31.886] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:11:31,886 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 01:11:31,886 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 01:11:31,886 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - new-server: support() called 01:11:31,887 AM [new-server-%d100645] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/snapshot-0000000068648743-34E034D0.tmp 01:11:31,889 AM [new-server-%d100645] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/snapshot-0000000068648743-34E034D0.v1 01:11:31,889 AM [new-server-%d100645] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/snapshot-0000000068648743-34E034D0.v1 01:11:31,889 AM [new-server-%d100645] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/TermInfo.properties 01:11:31,889 AM [new-server-%d100645] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.887108816Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/snapshot-0000000068648743-34E034D0.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:31,889 AM [new-server-%d100645] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 01:11:31,889 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 01:11:31,889 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-02T01:11:31.887108816Z 01:11:31,890 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 01:11:31,890 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - new-server: support() called 01:11:31,890 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - new-server: applySnapshot called 01:11:31,890 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:11:31,890 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 01:11:31,890 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 01:11:31,890 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:11:31,890 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 01:11:31,890 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 01:11:31,890 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:11:31,890 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:11:31,891 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:11:31,891 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=e8783937-ceb1-46ad-821a-783a503313a0}, logIndex: 3, isSendImmediate: true 01:11:31,891 AM [leader-%d130313] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/snapshot-0000000068648743-351E8410.tmp 01:11:31,891 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:31,891 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:11:31,891 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower follower 01:11:31,891 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:11:31,891 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:11:31,891 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower new-server 01:11:31,891 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:11:31,891 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:11:31,891 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,892 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 01:11:31,892 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:11:31,892 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,892 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,892 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,892 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:11:31,892 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:11:31,892 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,892 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,892 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/snapshot-0000000068648743-352E54DC.tmp 01:11:31,892 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,892 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=, votingState=VOTING], PeerInfo [id=new-server, address=null, votingState=VOTING]] 01:11:31,892 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Log size is now 2 01:11:31,892 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,892 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 01:11:31,892 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 01:11:31,892 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:11:31,894 AM [leader-%d130313] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/snapshot-0000000068648743-351E8410.v1 01:11:31,894 AM [leader-%d130313] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/snapshot-0000000068648743-351E8410.v1 01:11:31,894 AM [leader-%d130313] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/snapshot-0000000068648743-34883E64.v1 01:11:31,894 AM [leader-%d130313] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/TermInfo.properties 01:11:31,894 AM [leader-%d130313] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.881344100Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/snapshot-0000000068648743-34883E64.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:31,894 AM [leader-%d130313] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.891192336Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/snapshot-0000000068648743-351E8410.v1, size=97, entryCompress=NONE, stateCompress=NONE} 01:11:31,894 AM [leader-%d130313] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 01:11:31,894 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 01:11:31,894 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,895 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:11:31,895 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 3 01:11:31,895 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 2 to 3 01:11:31,895 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,895 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 2 for term 1 01:11:31,895 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/snapshot-0000000068648743-352E54DC.v1 01:11:31,895 AM [test-pekko.actor.default-dispatcher-17] [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:11:31,895 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/snapshot-0000000068648743-352E54DC.v1 01:11:31,895 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/snapshot-0000000068648743-34E034D0.v1 01:11:31,895 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/TermInfo.properties 01:11:31,895 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.887108816Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/snapshot-0000000068648743-34E034D0.v1, size=64, entryCompress=NONE, stateCompress=NONE} 01:11:31,895 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.892228828Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/snapshot-0000000068648743-352E54DC.v1, size=97, entryCompress=NONE, stateCompress=NONE} 01:11:31,895 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,895 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,895 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Log size is now 1 01:11:31,895 AM [test-pekko.actor.default-dispatcher-6] [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:11:31,895 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 2) 01:11:31,895 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 3, nextIndex: 4 01:11:31,896 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 01:11:31,896 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Commit index set to 3 01:11:31,896 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) [WARN] [07/02/2025 01:11:31.896] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 01:11:31,896 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 01:11:31,896 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 3 01:11:31,896 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 2 to 3 01:11:31,896 AM [test-pekko.actor.default-dispatcher-6] [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:11:32,55 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Commit index set to 3 01:11:32,55 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 01:11:32,55 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 01:11:32,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 01:11:32,55 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 01:11:32,55 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 2 to 3 01:11:32,56 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 2 for term 1 01:11:32,81 AM [main] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/snapshot-0000000068648743-351E8410.v1 01:11:32,81 AM [main] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/TermInfo.properties 01:11:32,81 AM [main] [DEBUG] RaftStorage - leader: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.891192336Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/leader/snapshot-0000000068648743-351E8410.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 01:11:32,82 AM [main] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/snapshot-0000000068648743-352E54DC.v1 01:11:32,82 AM [main] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/TermInfo.properties 01:11:32,82 AM [main] [DEBUG] RaftStorage - new-server: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T01:11:31.892228828Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15976961182190643327/new-server/snapshot-0000000068648743-352E54DC.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 01:11:32,82 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower ending 01:11:32,82 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower192] 01:11:32,93 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector193#1104199133] 01:11:32,94 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server194] 01:11:32,94 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:32,94 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:32,94 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader195] 01:11:32,94 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:32,94 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:32,94 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector196] 01:11:32,98 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader starting [WARN] [07/02/2025 01:11:32.100] [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@5d1d2d42 01:11:32,101 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:11:32,101 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 01:11:32,101 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 01:11:32,103 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14806300908248807366/new-server/TermInfo.properties does not exist 01:11:32,103 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 01:11:32,103 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:11:32,107 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:11:32,107 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:11:32,107 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@209f45d 01:11:32,111 AM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 01:11:32.112] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower201]: org.opendaylight.controller.cluster.common.actor.Monitor@85035d1 01:11:32,113 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 01:11:32,113 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: started executor 01:11:32,113 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: started executor 01:11:32,114 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14806300908248807366/follower/TermInfo.properties does not exist 01:11:32,114 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: no eligible files found 01:11:32,114 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:11:32,117 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 01:11:32,117 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 01:11:32,117 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2d4230df 01:11:32,118 AM [test-pekko.actor.default-dispatcher-16] [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:11:32,121 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 01:11:32,121 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 01:11:32,121 AM [test-pekko.actor.default-dispatcher-16] [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:11:32,121 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 [WARN] [07/02/2025 01:11:32.121] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/follower201] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 01:11:32,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - follower: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server199, votingMember=true], state: Idle 01:11:32,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader200 01:11:32,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader200)] 01:11:32,180 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader ending 01:11:32,180 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower197] 01:11:32,191 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector198#1851253091] 01:11:32,192 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server199] 01:11:32,192 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:32,192 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:32,192 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader200#-1620079610] 01:11:32,192 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower201] 01:11:32,192 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:11:32,192 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:11:32,194 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader starting [WARN] [07/02/2025 01:11:32.196] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower204]: org.opendaylight.controller.cluster.common.actor.Monitor@448c8edd 01:11:32,197 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 01:11:32,197 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 01:11:32,198 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 01:11:32,200 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13791771479712813026/follower/TermInfo.properties does not exist 01:11:32,200 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: no eligible files found 01:11:32,200 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:11:32,204 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 01:11:32,204 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 01:11:32,204 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@551c7c5c 01:11:32,205 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:11:32,208 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 01:11:32,208 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 01:11:32,208 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:11:32,208 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 [WARN] [07/02/2025 01:11:32.208] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower204] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 01:11:32,215 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - follower: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 01:11:32,215 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader203 01:11:32,215 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader203)] 01:11:32,265 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader ending 01:11:32,266 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower202] 01:11:32,277 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader203] 01:11:32,277 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower204] 01:11:32,277 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:11:32,278 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 01:11:32,280 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer starting [WARN] [07/02/2025 01:11:32.281] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader206]: org.opendaylight.controller.cluster.common.actor.Monitor@1f56c4f7 01:11:32,282 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:32,282 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:32,283 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 01:11:32,283 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 01:11:32,284 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17001781735689765164/leader/TermInfo.properties does not exist 01:11:32,285 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 01:11:32,285 AM [test-pekko.actor.default-dispatcher-12] [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:11:32,287 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:32,287 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:32,287 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4f3805bd 01:11:32,288 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 01:11:32,288 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:32,293 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true], state: Idle 01:11:32,293 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 01:11:32,293 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:11:32,294 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer ending 01:11:32,294 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower205] 01:11:32,304 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader206] 01:11:32,305 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:32,305 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:32,308 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout starting [WARN] [07/02/2025 01:11:32.310] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@51682d99 01:11:32,311 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 01:11:32,311 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: started executor 01:11:32,311 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: started executor 01:11:32,312 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5674363118519986521/node1/TermInfo.properties does not exist 01:11:32,313 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: no eligible files found 01:11:32,313 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 01:11:32,313 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 01:11:32,313 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 01:11:32,313 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 [WARN] [07/02/2025 01:11:32.313] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@10f5c292 01:11:32,314 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 01:11:32,314 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node2: started executor 01:11:32,314 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node2: started executor 01:11:32,316 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 01:11:32,316 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 01:11:32,316 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2fe1037e 01:11:32,317 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5674363118519986521/node2/TermInfo.properties does not exist 01:11:32,317 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: no eligible files found 01:11:32,317 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 01:11:32,317 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 01:11:32,317 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 01:11:32,317 AM [test-pekko.actor.default-dispatcher-12] [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:11:32,321 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 01:11:32,321 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 01:11:32,321 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@53f07944 01:11:32,325 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]], state: Idle 01:11:32,325 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:11:32,325 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 01:11:32,325 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 01:11:32,326 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:32,326 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 01:11:32,326 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 01:11:32,329 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 01:11:32,329 AM [test-pekko.actor.default-dispatcher-17] [INFO] Candidate - node1 (Candidate): Starting new election term 2 01:11:32,329 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 01:11:32,329 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:11:32,443 AM [test-pekko.actor.default-dispatcher-17] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 01:11:32,443 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 01:11:32,444 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 01:11:32,444 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 01:11:32,444 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout ending 01:11:32,444 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower207] 01:11:32,455 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector208#1092951098] 01:11:32,456 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 01:11:32,456 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:11:32,456 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:11:32,456 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector209#-653192358] 01:11:32,457 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 01:11:32,457 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:11:32,457 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:11:32,460 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader starting [WARN] [07/02/2025 01:11:32.464] [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@4907c174 01:11:32,464 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 01:11:32,465 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: started executor 01:11:32,465 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: started executor [WARN] [07/02/2025 01:11:32.467] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@1e6301c0 01:11:32,467 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14424471917542501562/node1/TermInfo.properties does not exist 01:11:32,467 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: no eligible files found 01:11:32,467 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 01:11:32,468 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 01:11:32,468 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 163 01:11:32,468 AM [test-pekko.actor.default-dispatcher-12] [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:11:32,468 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node1: Received apply journal entries for recovery, applying to state: 0 to 0 01:11:32,468 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 01:11:32,468 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: started executor 01:11:32,468 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: started executor 01:11:32,468 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node1: Recovery completed in 36.02 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 01:11:32,470 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14424471917542501562/node2/TermInfo.properties does not exist 01:11:32,470 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: no eligible files found 01:11:32,470 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 01:11:32,470 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 163 01:11:32,470 AM [test-pekko.actor.default-dispatcher-17] [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:11:32,470 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 0 01:11:32,470 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 01:11:32,470 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - node2: Recovery completed in 42.94 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 01:11:32,471 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 01:11:32,471 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode1} 01:11:32,471 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@603fca2e 01:11:32,473 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 01:11:32,473 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode2} 01:11:32,473 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@347f5962 01:11:32,484 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 01:11:32,484 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:11:32,484 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 01:11:32,484 AM [test-pekko.actor.default-dispatcher-17] [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:11:32,484 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:32,484 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 01:11:32,484 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 01:11:32,487 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 01:11:32,487 AM [test-pekko.actor.default-dispatcher-17] [INFO] Candidate - node1 (Candidate): Starting new election term 2 01:11:32,487 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:11:33,3 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 01:11:33,4 AM [test-pekko.actor.default-dispatcher-6] [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:11:33,4 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 01:11:33,4 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 01:11:33,5 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader downNode1, need to catch up to 0 [WARN] [07/02/2025 01:11:33.006] [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/02/2025 01:11:33.006] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 01:11:33,561 AM [main] [INFO] PeerInfos - node1: Peer address for peer node2 set to pekko://test/user/node2 01:11:33,561 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 01:11:33,561 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 01:11:33,561 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 01:11:33,562 AM [test-pekko.actor.default-dispatcher-17] [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:11:33,562 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 01:11:33,562 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 01:11:33,566 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node1 01:11:33,566 AM [test-pekko.actor.default-dispatcher-17] [INFO] Candidate - node1 (Candidate): Starting new election term 3 01:11:33,566 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 01:11:33,566 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:11:33,566 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:11:33,567 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 01:11:33,567 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 01:11:33,567 AM [test-pekko.actor.default-dispatcher-6] [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:11:33,569 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=null 01:11:33,569 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 01:11:33,573 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node1 01:11:33,573 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 01:11:33,573 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 01:11:33,573 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 01:11:33,573 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node1 (Leader): Election: Leader has following peers: [node2, downNode2, downNode1] 01:11:33,574 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:11:33,574 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node2: Last sync leader does not match current leader node1, need to catch up to -1 01:11:33,574 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 [WARN] [07/02/2025 01:11:33.574] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=false] 01:11:33,574 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node1 elected 01:11:33,574 AM [test-pekko.actor.default-dispatcher-17] [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:11:33,574 AM [test-pekko.actor.default-dispatcher-17] [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:11:33,574 AM [test-pekko.actor.default-dispatcher-17] [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:11:33,574 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node1 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=61f69d05-e1a8-4f4f-a646-a4c482844179}, logIndex: 1, isSendImmediate: true 01:11:33,574 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:33,574 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 01:11:33,574 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node2: Lagging -1 entries behind leader node1 and reached 0 (of expected -1) [WARN] [07/02/2025 01:11:33.575] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=true] 01:11:33,575 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 0, nextIndex: 1 01:11:33,575 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:33,575 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 01:11:33,575 AM [test-pekko.actor.default-dispatcher-17] [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:11:33,575 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 01:11:33,575 AM [test-pekko.actor.default-dispatcher-16] [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:11:33,575 AM [test-pekko.actor.default-dispatcher-12] [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:11:33,575 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node2 (Follower): Number of entries to be appended = 1 01:11:33,575 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:11:33,575 AM [test-pekko.actor.default-dispatcher-16] [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:11:33,575 AM [test-pekko.actor.default-dispatcher-16] [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=false} 01:11:33,576 AM [test-pekko.actor.default-dispatcher-16] [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:11:33,576 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node2 (Follower): Log size is now 2 01:11:33,576 AM [test-pekko.actor.default-dispatcher-16] [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:11:33,576 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 0 (of expected -1) 01:11:33,576 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 1, nextIndex: 2 01:11:33,576 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:11:33,576 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Leader): Setting last applied to 1 01:11:33,576 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 01:11:33,576 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:11:33,576 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 01:11:33,576 AM [test-pekko.actor.default-dispatcher-12] [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:11:33,576 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:11:33,576 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node2 (Follower): Commit index set to 1 01:11:33,576 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 01:11:33,576 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:11:33,576 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): Setting last applied to 1 01:11:33,576 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 01:11:33,576 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:11:33,576 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:11:33,577 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 01:11:33,694 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 01:11:33,777 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader ending 01:11:33,777 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower210] 01:11:33,789 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector211#-672682280] 01:11:33,789 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 01:11:33,789 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:11:33,789 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 01:11:33,790 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector212#31443039] 01:11:33,790 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 01:11:33,790 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:11:33,790 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 01:11:33,793 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout starting [WARN] [07/02/2025 01:11:33.795] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server215]: org.opendaylight.controller.cluster.common.actor.Monitor@18a0ec76 01:11:33,796 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 01:11:33,796 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 01:11:33,796 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 01:11:33,797 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8928583480404289271/new-server/TermInfo.properties does not exist 01:11:33,797 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 01:11:33,798 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:11:33,802 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 01:11:33,802 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 01:11:33,802 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@50875919 01:11:33,802 AM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 01:11:33.803] [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@72341220 01:11:33,803 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:33,803 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 01:11:33,803 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 01:11:33,803 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 01:11:33,804 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8928583480404289271/leader/TermInfo.properties does not exist 01:11:33,804 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 01:11:33,804 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:11:33,807 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 01:11:33,807 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 01:11:33,807 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@19ccee39 01:11:33,807 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 01:11:33,807 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 01:11:33,807 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:11:33,807 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=true] 01:11:33,807 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 01:11:33,807 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 01:11:33,807 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 01:11:33,808 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 01:11:33,808 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:11:33,815 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true], state: Idle 01:11:33,815 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 01:11:33,815 AM [test-pekko.actor.default-dispatcher-16] [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:11:33,815 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 01:11:33,933 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:11:33,937 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 01:11:33,937 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:11:33,938 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 01:11:33,938 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/02/2025 01:11:33.938] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/new-server215] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 01:11:34,33 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 01:11:34,33 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:11:34,34 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:11:34,34 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout ending 01:11:34,34 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower213] 01:11:34,45 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector214#1344803719] 01:11:34,45 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server215] 01:11:34,46 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:34,46 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 01:11:34,46 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader216] 01:11:34,46 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 01:11:34,46 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks [INFO] [07/02/2025 01:11:34.047] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:11:34,47 AM [test-pekko.actor.default-dispatcher-16] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/02/2025 01:11:34.048] [test-pekko.actor.default-dispatcher-17] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.70:17355) 01:11:34,49 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.70:17355] - Exiting completed 01:11:34,49 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.70:17355] - Shutting down... 01:11:34,49 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.70:17355] - Successfully shut down [INFO] [07/02/2025 01:11:34.049] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.70:17355] - Exiting completed [INFO] [07/02/2025 01:11:34.049] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.70:17355] - Shutting down... [INFO] [07/02/2025 01:11:34.049] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.70:17355] - Successfully shut down 01:11:34,51 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:11:34,51 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/02/2025 01:11:34.051] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.70:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [07/02/2025 01:11:34.051] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.70:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/02/2025 01:11:34.053] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.70:17355/system/remoting-terminator] Remoting shut down. 01:11:34,53 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/02/2025 01:11:34.053] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger