[DEBUG] [07/02/2025 11:32:53.314] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 11:32:53,316 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/02/2025 11:32:53.316] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/02/2025 11:32:53.316] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/02/2025 11:32:53.334] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.75:17355] with UID [-7024047164910911072] 11:32:53,334 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.75:17355] with UID [-7024047164910911072] [INFO] [07/02/2025 11:32:53.335] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.75:17355] - Starting up, Pekko version [1.0.3] ... 11:32:53,336 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.75:17355] - Starting up, Pekko version [1.0.3] ... 11:32:53,340 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.75:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 11:32:53,340 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.75:17355] - Started up successfully [INFO] [07/02/2025 11:32:53.340] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.75:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/02/2025 11:32:53.340] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.75:17355] - Started up successfully [INFO] [07/02/2025 11:32:53.341] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.75: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 11:32:53.341] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.75:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 11:32:53,341 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.75:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 11:32:53,341 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.75:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 11:32:53,456 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress starting [WARN] [07/02/2025 11:32:53.463] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server109]: org.opendaylight.controller.cluster.common.actor.Monitor@2ebe5e9f [INFO] [pekkoDeadLetter][07/02/2025 11:32:53.463] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/new-server109] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:32:53,463 AM [test-pekko.actor.default-dispatcher-11] [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'. 11:32:53,466 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 11:32:53,466 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: started executor 11:32:53,466 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: started executor 11:32:53,469 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/TermInfo.properties does not exist 11:32:53,469 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 11:32:53,469 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 11:32:53,472 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 11:32:53,472 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 11:32:53,472 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3c28db7d 11:32:53,473 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 11:32:53.563] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader110]: org.opendaylight.controller.cluster.common.actor.Monitor@62706191 [INFO] [pekkoDeadLetter][07/02/2025 11:32:53.563] [test-pekko.actor.default-dispatcher-6] [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'. 11:32:53,564 AM [test-pekko.actor.default-dispatcher-7] [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'. 11:32:53,564 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:53,565 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:32:53,565 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 11:32:53,565 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 11:32:53,567 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/TermInfo.properties does not exist 11:32:53,567 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: no eligible files found 11:32:53,567 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:32:53,570 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:53,570 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:32:53,570 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@330319db 11:32:53,571 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 11:32:53,767 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true], state: Idle 11:32:53,779 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 11:32:53,779 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 11:32:53,779 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 11:32:53,779 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 11:32:53,779 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - leader: support() called 11:32:53,780 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 11:32:53,780 AM [leader-%d385909] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:53,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:53,784 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 11:32:53,784 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - leader: support() called 11:32:53,784 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:32:53,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 11:32:53,785 AM [leader-%d385910] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-2EC6BEEB.tmp 11:32:53,785 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 11:32:53,785 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 11:32:53,785 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 11:32:53,785 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server109), Chunk: 1/1 11:32:53,789 AM [leader-%d385910] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-2EC6BEEB.v1 11:32:53,790 AM [leader-%d385910] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-2EC6BEEB.v1 11:32:53,790 AM [leader-%d385910] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/TermInfo.properties 11:32:53,790 AM [leader-%d385910] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:53.784776939Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-2EC6BEEB.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:53,790 AM [leader-%d385910] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:53,790 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:53,790 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T11:32:53.784776939Z 11:32:53,790 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 11:32:53,791 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 11:32:53,829 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false], state: InstallingSnapshot 11:32:53,829 AM [test-pekko.actor.default-dispatcher-11] [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 11:32:53,829 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 11:32:53,832 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 11:32:53,832 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 11:32:53,832 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 11:32:53,832 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:32:53,832 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 11:32:53,833 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 11:32:53,833 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called [WARN] [07/02/2025 11:32:53.833] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 11:32:53.833] [test-pekko.actor.default-dispatcher-14] [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'. 11:32:53,833 AM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:32:53,834 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 11:32:53,834 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 11:32:53,834 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called 11:32:53,834 AM [new-server-%d890743] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-31BDB4FC.tmp 11:32:53,837 AM [new-server-%d890743] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-31BDB4FC.v1 11:32:53,837 AM [new-server-%d890743] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-31BDB4FC.v1 11:32:53,837 AM [new-server-%d890743] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/TermInfo.properties 11:32:53,837 AM [new-server-%d890743] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:53.834516220Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-31BDB4FC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:53,837 AM [new-server-%d890743] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 11:32:53,837 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 11:32:53,837 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-02T11:32:53.834516220Z 11:32:53,837 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 11:32:53,838 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called 11:32:53,839 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: applySnapshot called 11:32:53,839 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 11:32:53,839 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 11:32:53,839 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 11:32:53,839 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 11:32:53,839 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 11:32:53,839 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 11:32:53,840 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:32:53,840 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:32:53,840 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 11:32:53,840 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=40db6508-e430-487a-853d-82e0e16f4572}, logIndex: 0, isSendImmediate: true 11:32:53,840 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:32:53,840 AM [leader-%d385911] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-321BC63F.tmp 11:32:53,840 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:32:53,840 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:32:53,841 AM [test-pekko.actor.default-dispatcher-15] [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}]} 11:32:53,841 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}]} 11:32:53,841 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 11:32:53,841 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:32:53,841 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]]} 11:32:53,841 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} 11:32:53,841 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-322C0D23.tmp 11:32:53,842 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 11:32:53,843 AM [leader-%d385911] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-321BC63F.v1 11:32:53,843 AM [leader-%d385911] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-321BC63F.v1 11:32:53,843 AM [leader-%d385911] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-2EC6BEEB.v1 11:32:53,843 AM [leader-%d385911] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/TermInfo.properties 11:32:53,843 AM [leader-%d385911] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:53.784776939Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-2EC6BEEB.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:53,843 AM [leader-%d385911] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:53.840681023Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-321BC63F.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:32:53,843 AM [leader-%d385911] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:53,843 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:53,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-322C0D23.v1 11:32:53,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-31BDB4FC.v1 11:32:53,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-322C0D23.v1 11:32:53,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/TermInfo.properties 11:32:53,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:53.834516220Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-31BDB4FC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:53,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:53.841747747Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-322C0D23.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:32:53,844 AM [test-pekko.actor.default-dispatcher-15] [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} 11:32:53,844 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} 11:32:53,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 11:32:53,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Log size is now 1 11:32:53,844 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} 11:32:53,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:32:53,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 11:32:53,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:32:53,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 11:32:53,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 11:32:53,845 AM [test-pekko.actor.default-dispatcher-15] [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 11:32:53.845] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 11:32:53,845 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [INFO] [pekkoDeadLetter][07/02/2025 11:32:53.845] [test-pekko.actor.default-dispatcher-14] [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'. 11:32:53,845 AM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [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'. 11:32:53,845 AM [test-pekko.actor.default-dispatcher-15] [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 11:32:53,845 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 11:32:53,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Commit index set to 0 11:32:53,845 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 11:32:53,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:32:53,845 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 11:32:53,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:32:53,845 AM [test-pekko.actor.default-dispatcher-15] [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]]} 11:32:53,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 11:32:53,845 AM [test-pekko.actor.default-dispatcher-15] [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} 11:32:53,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 11:32:53,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:32:53,845 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=b92c689f-8262-4eda-9703-d63c5b72981a}, logIndex: 1, isSendImmediate: true 11:32:53,845 AM [leader-%d385912] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-3267ACCE.tmp 11:32:53,845 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:32:53,845 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 11:32:53,845 AM [test-pekko.actor.default-dispatcher-15] [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}]} 11:32:53,846 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:32:53,846 AM [test-pekko.actor.default-dispatcher-11] [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}]} 11:32:53,846 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 11:32:53,846 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 11:32:53,846 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:32:53,846 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=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 11:32:53,846 AM [test-pekko.actor.default-dispatcher-11] [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} 11:32:53,846 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-3270E311.tmp 11:32:53,846 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 11:32:53,847 AM [leader-%d385912] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-3267ACCE.v1 11:32:53,847 AM [leader-%d385912] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-321BC63F.v1 11:32:53,848 AM [leader-%d385912] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-3267ACCE.v1 11:32:53,848 AM [leader-%d385912] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/TermInfo.properties 11:32:53,848 AM [leader-%d385912] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:53.840681023Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-321BC63F.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:32:53,848 AM [leader-%d385912] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:53.845655246Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/leader/snapshot-00000000686518E5-3267ACCE.v1, size=100, entryCompress=NONE, stateCompress=NONE} 11:32:53,848 AM [leader-%d385912] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:53,848 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 11:32:53,848 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:53,848 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 11:32:53,848 AM [test-pekko.actor.default-dispatcher-15] [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}]} 11:32:53,849 AM [test-pekko.actor.default-dispatcher-15] [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} 11:32:53,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-3270E311.v1 11:32:53,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-322C0D23.v1 11:32:53,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-3270E311.v1 11:32:53,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/TermInfo.properties 11:32:53,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:53.841747747Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-322C0D23.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:32:53,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:53.846258961Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4933973728319517001/new-server/snapshot-00000000686518E5-3270E311.v1, size=100, entryCompress=NONE, stateCompress=NONE} 11:32:53,850 AM [test-pekko.actor.default-dispatcher-11] [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} 11:32:53,850 AM [test-pekko.actor.default-dispatcher-11] [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]] 11:32:53,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Log size is now 2 11:32:53,850 AM [test-pekko.actor.default-dispatcher-11] [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} 11:32:53,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:32:53,850 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 11:32:53,850 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 11:32:53,850 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 11:32:53,850 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 11:32:53,850 AM [test-pekko.actor.default-dispatcher-7] [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]]} 11:32:53,851 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:32:53,851 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Commit index set to 1 11:32:53,851 AM [test-pekko.actor.default-dispatcher-7] [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 11:32:53,851 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 11:32:53,851 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:32:53,851 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 11:32:53,851 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 11:32:53,851 AM [test-pekko.actor.default-dispatcher-11] [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]]} 11:32:53,859 AM [test-pekko.actor.default-dispatcher-11] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:663) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [07/02/2025 11:32:53.856] [test-pekko.actor.internal-dispatcher-3] [pekko://test/user/follower107] Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:663) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 11:32:53,897 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress ending 11:32:53,897 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower107] 11:32:53,908 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector108#179860933] 11:32:53,908 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server109] 11:32:53,909 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:32:53,909 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:32:53,909 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader110] 11:32:53,909 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:53,909 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:53,910 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector111] 11:32:54,13 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer starting 11:32:54,15 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= [WARN] [07/02/2025 11:32:54.015] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader113]: org.opendaylight.controller.cluster.common.actor.Monitor@1f025d94 [INFO] [pekkoDeadLetter][07/02/2025 11:32:54.015] [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'. 11:32:54,15 AM [test-pekko.actor.default-dispatcher-7] [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'. 11:32:54,16 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:32:54,16 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:32:54,16 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:32:54,18 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17308217189217438022/leader/TermInfo.properties does not exist 11:32:54,18 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: no eligible files found 11:32:54,18 AM [test-pekko.actor.default-dispatcher-14] [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 11:32:54,21 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:54,21 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:32:54,21 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@775b45dc 11:32:54,21 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 11:32:54,22 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:32:54,125 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='new-server'}, state: Idle 11:32:54,126 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer ending 11:32:54,126 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower112] 11:32:54,137 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader113] 11:32:54,137 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:54,137 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:54,141 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader starting [WARN] [07/02/2025 11:32:54.143] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader115]: org.opendaylight.controller.cluster.common.actor.Monitor@5db9185a [INFO] [pekkoDeadLetter][07/02/2025 11:32:54.143] [test-pekko.actor.default-dispatcher-14] [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'. 11:32:54,143 AM [test-pekko.actor.default-dispatcher-15] [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'. 11:32:54,144 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:32:54,144 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 11:32:54,144 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 11:32:54,146 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7850872607662566184/leader/TermInfo.properties does not exist 11:32:54,146 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 11:32:54,146 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:32:54,150 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 11:32:54,150 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 11:32:54,150 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@37cea406 11:32:54,161 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 11:32:54,161 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 11:32:54,162 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader ending 11:32:54,162 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower114] 11:32:54,164 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader115] 11:32:54,164 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:54,164 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:54,168 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader starting [WARN] [07/02/2025 11:32:54.169] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader118]: org.opendaylight.controller.cluster.common.actor.Monitor@eed279d [INFO] [pekkoDeadLetter][07/02/2025 11:32:54.169] [test-pekko.actor.default-dispatcher-14] [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'. 11:32:54,169 AM [test-pekko.actor.default-dispatcher-14] [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'. 11:32:54,170 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:54,170 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:32:54,170 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 11:32:54,170 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 11:32:54,172 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12737038354069003058/leader/TermInfo.properties does not exist 11:32:54,172 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 11:32:54,172 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/02/2025 11:32:54.175] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower117]: org.opendaylight.controller.cluster.common.actor.Monitor@1eb0c2fc [INFO] [pekkoDeadLetter][07/02/2025 11:32:54.175] [test-pekko.actor.default-dispatcher-7] [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'. 11:32:54,176 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'. 11:32:54,176 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 11:32:54,177 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: started executor 11:32:54,177 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:54,177 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:32:54,177 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4e614aaa 11:32:54,177 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: started executor 11:32:54,177 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 11:32:54,177 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:32:54,178 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 11:32:54,178 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12737038354069003058/follower/TermInfo.properties does not exist 11:32:54,178 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: no eligible files found 11:32:54,178 AM [test-pekko.actor.default-dispatcher-14] [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 11:32:54,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true]] 11:32:54,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 11:32:54,180 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=follower, isVoting=true]]}, pending=true} 11:32:54,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=7620221a-49da-4983-b98d-be8f5647fb3d}, logIndex: 0, isSendImmediate: true 11:32:54,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:32:54,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:32:54,180 AM [leader-%d842107] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12737038354069003058/leader/snapshot-00000000686518E6-0ABF3B58.tmp 11:32:54,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='leader'} 11:32:54,181 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 11:32:54,181 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 11:32:54,181 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7277fde2 11:32:54,182 AM [test-pekko.actor.default-dispatcher-14] [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 11:32:54,182 AM [leader-%d842107] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12737038354069003058/leader/snapshot-00000000686518E6-0ABF3B58.v1 11:32:54,182 AM [leader-%d842107] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12737038354069003058/leader/snapshot-00000000686518E6-0ABF3B58.v1 11:32:54,183 AM [leader-%d842107] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12737038354069003058/leader/TermInfo.properties 11:32:54,183 AM [leader-%d842107] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:54.180304728Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12737038354069003058/leader/snapshot-00000000686518E6-0ABF3B58.v1, size=75, entryCompress=NONE, stateCompress=NONE} 11:32:54,183 AM [leader-%d842107] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:54,183 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:54,183 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 11:32:54,184 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 11:32:54,184 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:32:54,184 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 11:32:54,184 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:32:54,184 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 11:32:54,184 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:32:54,184 AM [test-pekko.actor.default-dispatcher-11] [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=false}]} 11:32:54,185 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower [WARN] [07/02/2025 11:32:54.185] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 11:32:54.185] [test-pekko.actor.default-dispatcher-15] [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'. 11:32:54,185 AM [test-pekko.actor.default-dispatcher-15] [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'. [WARN] [07/02/2025 11:32:54.185] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 11:32:54,185 AM [test-pekko.actor.default-dispatcher-14] [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=false}]} 11:32:54,185 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:32:54,185 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:32:54,185 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 11:32:54,185 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 11:32:54,185 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12737038354069003058/follower/snapshot-00000000686518E6-0B142651.tmp [INFO] [pekkoDeadLetter][07/02/2025 11:32:54.185] [test-pekko.actor.default-dispatcher-14] [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'. 11:32:54,186 AM [test-pekko.actor.default-dispatcher-7] [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'. 11:32:54,188 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12737038354069003058/follower/snapshot-00000000686518E6-0B142651.v1 11:32:54,188 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12737038354069003058/follower/TermInfo.properties 11:32:54,188 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12737038354069003058/follower/snapshot-00000000686518E6-0B142651.v1 11:32:54,188 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:54.185869905Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12737038354069003058/follower/snapshot-00000000686518E6-0B142651.v1, size=75, entryCompress=NONE, stateCompress=NONE} 11:32:54,188 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 11:32:54,188 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [] 11:32:54,188 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): Log size is now 1 11:32:54,188 AM [test-pekko.actor.default-dispatcher-14] [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} 11:32:54,188 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:32:54,188 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 11:32:54,189 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:32:54,189 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 11:32:54,189 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 11:32:54,189 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 11:32:54,189 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:32:54,189 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): Commit index set to 0 11:32:54,189 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:32:54,189 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:32:54,189 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} has been successfully replicated to a majority of followers 11:32:54,189 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:32:54,189 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 11:32:54,189 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} [WARN] [07/02/2025 11:32:54.191] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/leader118] unhandled message from TestActor[pekko://test/user/leader118]: ServerRemoved [serverId=leader] 11:32:54,231 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader ending 11:32:54,231 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower116] 11:32:54,233 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader118] 11:32:54,233 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:54,233 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:54,233 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector119] 11:32:54,234 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector120#1250293739] 11:32:54,234 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower117] 11:32:54,235 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 11:32:54,235 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 11:32:54,238 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot starting [WARN] [07/02/2025 11:32:54.239] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server123]: org.opendaylight.controller.cluster.common.actor.Monitor@6a373076 11:32:54,240 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 11:32:54,240 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: started executor 11:32:54,240 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: started executor 11:32:54,242 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8066461003091490062/new-server/TermInfo.properties does not exist 11:32:54,242 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: no eligible files found 11:32:54,242 AM [test-pekko.actor.default-dispatcher-14] [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 11:32:54,246 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 11:32:54,246 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 11:32:54,246 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@37162610 11:32:54,246 AM [test-pekko.actor.default-dispatcher-14] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 11:32:54.247] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader124]: org.opendaylight.controller.cluster.common.actor.Monitor@365eab57 11:32:54,248 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:54,249 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:32:54,249 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:32:54,249 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:32:54,250 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8066461003091490062/leader/TermInfo.properties does not exist 11:32:54,251 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: no eligible files found 11:32:54,251 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:32:54,255 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:54,255 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:32:54,255 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@68c89354 11:32:54,255 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 11:32:54,260 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true], state: Idle 11:32:54,261 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 11:32:54,261 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 11:32:54,261 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 11:32:54,261 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 11:32:54,261 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 11:32:54,261 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 11:32:54,262 AM [leader-%d632680] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:54,263 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:54,263 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 11:32:54,264 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 11:32:54,264 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:32:54,264 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 11:32:54,264 AM [leader-%d632681] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8066461003091490062/leader/snapshot-00000000686518E6-0FC02902.tmp 11:32:54,264 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 11:32:54,264 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 11:32:54,264 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 11:32:54,264 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server123), Chunk: 1/1 11:32:54,264 AM [test-pekko.actor.default-dispatcher-7] [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 11:32:54,268 AM [leader-%d632681] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8066461003091490062/leader/snapshot-00000000686518E6-0FC02902.v1 11:32:54,269 AM [leader-%d632681] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8066461003091490062/leader/snapshot-00000000686518E6-0FC02902.v1 11:32:54,269 AM [leader-%d632681] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8066461003091490062/leader/TermInfo.properties 11:32:54,269 AM [leader-%d632681] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:54.264251650Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8066461003091490062/leader/snapshot-00000000686518E6-0FC02902.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:54,269 AM [leader-%d632681] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:54,269 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:54,269 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T11:32:54.264251650Z 11:32:54,269 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 11:32:54,269 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 11:32:54,269 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 11:32:54,269 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 11:32:54,270 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 11:32:54,270 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:32:54,270 AM [test-pekko.actor.default-dispatcher-7] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 11:32:54,270 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 11:32:54,270 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - new-server: support() called [WARN] [07/02/2025 11:32:54.270] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/new-server123] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 11:32:54,271 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 11:32:54,271 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 11:32:54,271 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - new-server: support() called 11:32:54,272 AM [new-server-%d869822] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8066461003091490062/new-server/snapshot-00000000686518E6-10379CED.tmp 11:32:54,274 AM [new-server-%d869822] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8066461003091490062/new-server/snapshot-00000000686518E6-10379CED.v1 11:32:54,274 AM [new-server-%d869822] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8066461003091490062/new-server/snapshot-00000000686518E6-10379CED.v1 11:32:54,274 AM [new-server-%d869822] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8066461003091490062/new-server/TermInfo.properties 11:32:54,274 AM [new-server-%d869822] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:54.272080109Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8066461003091490062/new-server/snapshot-00000000686518E6-10379CED.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:54,274 AM [new-server-%d869822] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 11:32:54,274 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 11:32:54,275 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-02T11:32:54.272080109Z 11:32:54,275 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 11:32:54,275 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - new-server: support() called 11:32:54,275 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - new-server: applySnapshot called 11:32:54,275 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 11:32:54,275 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 11:32:54,275 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 11:32:54,275 AM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 11:32:54,275 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 11:32:54,311 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 11:32:54,311 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server new-server: not leader 11:32:55,872 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 11:32:55,872 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 11:32:55,872 AM [test-pekko.actor.default-dispatcher-14] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 11:32:55,873 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot ending 11:32:55,873 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower121] 11:32:55,884 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector122#-1672394037] 11:32:55,884 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server123] 11:32:55,886 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:32:55,886 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:32:55,886 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader124] 11:32:55,886 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:55,886 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:55,887 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector125] 11:32:55,890 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected starting [WARN] [07/02/2025 11:32:55.892] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@3ec7f20a 11:32:55,893 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 11:32:55,893 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node1: started executor 11:32:55,893 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node1: started executor [WARN] [07/02/2025 11:32:55.894] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@7f443a64 11:32:55,895 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 11:32:55,895 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node2: started executor 11:32:55,895 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node2: started executor 11:32:55,896 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17687076088525662107/node1/TermInfo.properties does not exist 11:32:55,896 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node1: no eligible files found 11:32:55,896 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 11:32:55,896 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 11:32:55,896 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 11:32:55,897 AM [test-pekko.actor.default-dispatcher-14] [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 11:32:55,897 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17687076088525662107/node2/TermInfo.properties does not exist 11:32:55,898 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node2: no eligible files found 11:32:55,898 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 11:32:55,898 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 11:32:55,898 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 11:32:55,898 AM [test-pekko.actor.default-dispatcher-7] [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 11:32:55,900 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 11:32:55,900 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 11:32:55,900 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5f6c7ae6 11:32:55,901 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 11:32:55,901 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 11:32:55,901 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@665acb4e 11:32:55,901 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 11:32:55,904 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 11:32:55,904 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 11:32:55,904 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 11:32:55,905 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:32:55,905 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 11:32:55,905 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 11:32:55,908 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 11:32:55,908 AM [test-pekko.actor.default-dispatcher-14] [INFO] Candidate - node1 (Candidate): Starting new election term 2 11:32:55,908 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 11:32:55,908 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:32:55,949 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 11:32:55,949 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [] 11:32:55,952 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=node2 11:32:55,952 AM [test-pekko.actor.default-dispatcher-7] [INFO] Candidate - node2 (Candidate): Starting new election term 2 11:32:55,952 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:32:55,952 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Candidate - node2 (Candidate): Received ElectionTimeout 11:32:55,952 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 11:32:55,952 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:32:55,953 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:32:55,953 AM [test-pekko.actor.default-dispatcher-14] [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 11:32:55,953 AM [test-pekko.actor.default-dispatcher-14] [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==[]} 11:32:55,953 AM [test-pekko.actor.default-dispatcher-14] [INFO] Candidate - node1 (Candidate): New Leader node2 sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:32:55,953 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:32:56,72 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 11:32:56,72 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node2 elected 11:32:56,72 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 11:32:56,72 AM [test-pekko.actor.default-dispatcher-7] [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 11:32:56,72 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node1: Forwarding ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] to new leader 11:32:56,72 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:32:56,72 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 11:32:56,72 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node1: getLeaderAddress leaderId = node2 peerAddress = pekko://test/user/node2 11:32:56,72 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node1: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/node2)] 11:32:56,73 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 11:32:56,73 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState [WARN] [07/02/2025 11:32:56.073] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 11:32:56,73 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=pekko://test/user/node1, votingState=VOTING]] 11:32:56,73 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 11:32:56,73 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node2: Persist data index=1 term=2 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 11:32:56,73 AM [test-pekko.actor.default-dispatcher-7] [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} 11:32:56,74 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=b28bf970-1ecf-45a1-8d7a-a8e270e36070}, logIndex: 1, isSendImmediate: true 11:32:56,74 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:32:56,74 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 11:32:56,74 AM [test-pekko.actor.default-dispatcher-7] [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}]} 11:32:56,74 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 11:32:56,74 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}]} 11:32:56,74 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 1 11:32:56,74 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:32:56,74 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]]} 11:32:56,74 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} 11:32:56,74 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]] 11:32:56,74 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Log size is now 2 11:32:56,74 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} 11:32:56,75 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 11:32:56,76 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 1, nextIndex: 2 11:32:56,76 AM [test-pekko.actor.default-dispatcher-7] [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 11:32:56,76 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} 11:32:56,76 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:32:56,76 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - node2: persist complete JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} [WARN] [07/02/2025 11:32:56.076] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 11:32:56,76 AM [test-pekko.actor.default-dispatcher-7] [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 11:32:56,76 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 11:32:56,76 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 0 11:32:56,76 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 11:32:56,76 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 11:32:56,76 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 1 11:32:56,76 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 11:32:56,76 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 11:32:56,77 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 11:32:56,77 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 2 11:32:56,77 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorVotingConfigSupport - node2: VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} has been successfully replicated to a majority of followers 11:32:56,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - node1 (Follower): Commit index set to 1 11:32:56,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 11:32:56,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 11:32:56,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 11:32:56,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 11:32:56,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 11:32:56,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 11:32:56,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 11:32:56,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node1: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 11:32:56,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 11:32:56,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 2 11:32:56,311 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 11:32:56,379 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected ending 11:32:56,379 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower126] 11:32:56,381 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector127#-1761838316] 11:32:56,381 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 11:32:56,382 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 11:32:56,382 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 11:32:56,382 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector128#1404291946] 11:32:56,382 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 11:32:56,383 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 11:32:56,383 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 11:32:56,386 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout starting [WARN] [07/02/2025 11:32:56.387] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server131]: org.opendaylight.controller.cluster.common.actor.Monitor@5ab4886b 11:32:56,389 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 11:32:56,389 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: started executor 11:32:56,389 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: started executor 11:32:56,390 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10804639490702995281/new-server/TermInfo.properties does not exist 11:32:56,391 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: no eligible files found 11:32:56,391 AM [test-pekko.actor.default-dispatcher-14] [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 11:32:56,394 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 11:32:56,394 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 11:32:56,394 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1d2c8040 [WARN] [07/02/2025 11:32:56.395] [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@25c3b85f 11:32:56,395 AM [test-pekko.actor.default-dispatcher-14] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 11:32:56,395 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:56,395 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:32:56,395 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 11:32:56,396 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 11:32:56,396 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10804639490702995281/leader/TermInfo.properties does not exist 11:32:56,397 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: no eligible files found 11:32:56,397 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:32:56,399 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:56,399 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:32:56,399 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@61a7ed75 11:32:56,399 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 11:32:56,406 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true], state: Idle 11:32:56,407 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 11:32:56,407 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 11:32:56,407 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 11:32:56,407 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 11:32:56,407 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 11:32:56,407 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 11:32:56,407 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=bogus] 11:32:56,407 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server bogus: server Id doesn't match 11:32:56,408 AM [leader-%d523817] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:56,408 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:56,408 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 11:32:56,408 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 11:32:56,408 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:32:56,408 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 11:32:56,408 AM [leader-%d523818] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10804639490702995281/leader/snapshot-00000000686518E8-18573E69.tmp 11:32:56,408 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 11:32:56,408 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 11:32:56,408 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 11:32:56,408 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server131), Chunk: 1/1 11:32:56,410 AM [leader-%d523818] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10804639490702995281/leader/snapshot-00000000686518E8-18573E69.v1 11:32:56,410 AM [leader-%d523818] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10804639490702995281/leader/TermInfo.properties 11:32:56,410 AM [leader-%d523818] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10804639490702995281/leader/snapshot-00000000686518E8-18573E69.v1 11:32:56,410 AM [leader-%d523818] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:56.408370793Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10804639490702995281/leader/snapshot-00000000686518E8-18573E69.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:56,410 AM [leader-%d523818] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:56,410 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:56,410 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T11:32:56.408370793Z 11:32:56,410 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 11:32:56,410 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 11:32:56,521 AM [test-pekko.actor.default-dispatcher-14] [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 11:32:56,524 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 11:32:56,524 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 11:32:56,524 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 [WARN] [07/02/2025 11:32:56.524] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/new-server131] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 11:32:56,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 11:32:56,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 11:32:56,621 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 11:32:56,621 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout ending 11:32:56,621 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower129] 11:32:56,623 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector130#2007551259] 11:32:56,624 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server131] 11:32:56,624 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:32:56,624 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:32:56,624 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader132] 11:32:56,625 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:56,625 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:56,628 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower starting [WARN] [07/02/2025 11:32:56.629] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server135]: org.opendaylight.controller.cluster.common.actor.Monitor@4a3c59dc 11:32:56,630 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 11:32:56,631 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 11:32:56,631 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 11:32:56,632 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/TermInfo.properties does not exist 11:32:56,633 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: no eligible files found 11:32:56,633 AM [test-pekko.actor.default-dispatcher-7] [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 11:32:56,636 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 11:32:56,636 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 11:32:56,636 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@191e00 11:32:56,636 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:32:56,636 AM [test-pekko.actor.default-dispatcher-7] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 11:32:56.637] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader136]: org.opendaylight.controller.cluster.common.actor.Monitor@6c09ec47 11:32:56,638 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:56,638 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:32:56,638 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 11:32:56,638 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 11:32:56,640 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/TermInfo.properties does not exist 11:32:56,640 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: no eligible files found 11:32:56,640 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:32:56,642 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:56,642 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:32:56,642 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@520b5aa8 11:32:56,643 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 11:32:56,650 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true], state: Idle 11:32:56,650 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 11:32:56,650 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 11:32:56,651 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 11:32:56,651 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 11:32:56,651 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 11:32:56,652 AM [leader-%d841265] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:56,652 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:56,652 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 11:32:56,652 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 11:32:56,652 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:32:56,652 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 11:32:56,652 AM [leader-%d841266] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/snapshot-00000000686518E8-26E260C8.tmp 11:32:56,652 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 11:32:56,652 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 11:32:56,652 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 11:32:56,652 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server135), Chunk: 1/1 11:32:56,652 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 11:32:56,654 AM [leader-%d841266] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/snapshot-00000000686518E8-26E260C8.v1 11:32:56,654 AM [leader-%d841266] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/snapshot-00000000686518E8-26E260C8.v1 11:32:56,655 AM [leader-%d841266] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/TermInfo.properties 11:32:56,655 AM [leader-%d841266] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:56.652370120Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/snapshot-00000000686518E8-26E260C8.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:56,655 AM [leader-%d841266] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:56,655 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:56,655 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T11:32:56.652370120Z 11:32:56,655 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 11:32:56,655 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 11:32:56,655 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 11:32:56,655 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]} 11:32:56,655 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 11:32:56,655 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:32:56,655 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 11:32:56,656 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 11:32:56,656 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/02/2025 11:32:56.656] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 11:32:56,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 11:32:56,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 11:32:56,656 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 11:32:56,656 AM [new-server-%d748703] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/snapshot-00000000686518E8-27227D60.tmp 11:32:56,658 AM [new-server-%d748703] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/snapshot-00000000686518E8-27227D60.v1 11:32:56,658 AM [new-server-%d748703] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/TermInfo.properties 11:32:56,658 AM [new-server-%d748703] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/snapshot-00000000686518E8-27227D60.v1 11:32:56,659 AM [new-server-%d748703] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:56.656571744Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/snapshot-00000000686518E8-27227D60.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:56,659 AM [new-server-%d748703] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 11:32:56,659 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 11:32:56,659 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-02T11:32:56.656571744Z 11:32:56,659 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 11:32:56,659 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - new-server: support() called 11:32:56,659 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - new-server: applySnapshot called 11:32:56,659 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 11:32:56,659 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 11:32:56,659 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 11:32:56,659 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 11:32:56,660 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 11:32:56,660 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 11:32:56,660 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 11:32:56,660 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:32:56,660 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]]} 11:32:56,660 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} 11:32:56,660 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=bbf6fbae-8958-4523-9a04-b06d7eb77b10}, logIndex: 2, isSendImmediate: true 11:32:56,660 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:32:56,660 AM [leader-%d841267] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/snapshot-00000000686518E8-275CB773.tmp 11:32:56,660 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 11:32:56,660 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 2 is present for follower new-server 11:32:56,660 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}]} 11:32:56,660 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] 11:32:56,660 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=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}]} 11:32:56,661 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 11:32:56,661 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:32:56,661 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:32:56,661 AM [test-pekko.actor.default-dispatcher-14] [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} 11:32:56,661 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/snapshot-00000000686518E8-276C8265.tmp 11:32:56,662 AM [leader-%d841267] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/snapshot-00000000686518E8-275CB773.v1 11:32:56,663 AM [leader-%d841267] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/snapshot-00000000686518E8-26E260C8.v1 11:32:56,663 AM [leader-%d841267] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/snapshot-00000000686518E8-275CB773.v1 11:32:56,663 AM [leader-%d841267] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/TermInfo.properties 11:32:56,663 AM [leader-%d841267] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:56.652370120Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/snapshot-00000000686518E8-26E260C8.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:56,663 AM [leader-%d841267] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:56.660387699Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/leader/snapshot-00000000686518E8-275CB773.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:32:56,663 AM [leader-%d841267] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:56,663 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:56,663 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} 11:32:56,664 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/snapshot-00000000686518E8-276C8265.v1 11:32:56,664 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/snapshot-00000000686518E8-276C8265.v1 11:32:56,664 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/TermInfo.properties 11:32:56,664 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/snapshot-00000000686518E8-27227D60.v1 11:32:56,664 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:56.656571744Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/snapshot-00000000686518E8-27227D60.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:56,664 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:56.661422693Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14932719847166532584/new-server/snapshot-00000000686518E8-276C8265.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:32:56,664 AM [test-pekko.actor.default-dispatcher-14] [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} 11:32:56,664 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 11:32:56,664 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Log size is now 1 11:32:56,664 AM [test-pekko.actor.default-dispatcher-14] [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} 11:32:56,664 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected 1) 11:32:56,665 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 2, nextIndex: 3 11:32:56,665 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 11:32:56,665 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 2 11:32:56,665 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 1 to 2 11:32:56,665 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]]} 11:32:56,665 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 [WARN] [07/02/2025 11:32:56.665] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 11:32:56,665 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 11:32:56,665 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 11:32:56,665 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Commit index set to 2 11:32:56,665 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 11:32:56,665 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:32:56,665 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 2 11:32:56,665 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 1 to 2 11:32:56,665 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - new-server: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:32:56,703 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower ending 11:32:56,703 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower133] 11:32:56,714 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector134#187646130] 11:32:56,714 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server135] 11:32:56,715 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:32:56,715 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:32:56,715 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader136] 11:32:56,715 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:56,715 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:56,715 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector137] 11:32:56,723 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout starting [WARN] [07/02/2025 11:32:56.726] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@653723c5 11:32:56,727 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 11:32:56,727 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node1: started executor 11:32:56,727 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node1: started executor [WARN] [07/02/2025 11:32:56.728] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@27961403 11:32:56,729 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10971453364932976836/node1/TermInfo.properties does not exist 11:32:56,729 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: no eligible files found 11:32:56,729 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 11:32:56,729 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 11:32:56,729 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node2: started executor 11:32:56,729 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 11:32:56,729 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING]] 11:32:56,729 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node2: started executor 11:32:56,729 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 11:32:56,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10971453364932976836/node2/TermInfo.properties does not exist 11:32:56,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: no eligible files found 11:32:56,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 11:32:56,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 11:32:56,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node2: Updated server config: isVoting: false, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 11:32:56,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 1, size: 1 11:32:56,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 1 11:32:56,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 1 11:32:56,732 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node2: Recovery completed in 51.30 μs - Switching actor to Follower - last log index = 1, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 2 11:32:56,732 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 11:32:56,732 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 11:32:56,732 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@64685495 11:32:56,733 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 11:32:56,733 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 11:32:56,733 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 11:32:56,733 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 11:32:56,733 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:32:56,733 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 11:32:56,733 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 11:32:56,734 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 11:32:56,734 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 11:32:56,734 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5b9f2af2 11:32:56,735 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 11:32:56,735 AM [test-pekko.actor.default-dispatcher-11] [INFO] Candidate - node1 (Candidate): Starting new election term 2 11:32:56,736 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 11:32:56,736 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:32:56,736 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. 11:32:56,736 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 11:32:56,736 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. 11:32:56,736 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 11:32:56,738 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=null 11:32:56,738 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 11:32:56,738 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 11:32:56,738 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=false}, my term is 2 11:32:56,738 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=false}, current voteCount: 1 11:32:57,51 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 11:32:57,51 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]] 11:32:57,52 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 11:32:57,52 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: Found server ActorSelection[Anchor(pekko://test/), Path(/user/node2)] to forward to 11:32:57,52 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]], state: Idle 11:32:57,53 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 11:32:57,53 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node2: Sending local ElectionTimeout to start leader election 11:32:57,53 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=VOTING]] 11:32:57,53 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 11:32:57,53 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [node1] 11:32:57,56 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node2 11:32:57,56 AM [test-pekko.actor.default-dispatcher-6] [INFO] Candidate - node2 (Candidate): Starting new election term 3 11:32:57,56 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node2 (Candidate): Sending RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} to peer node1 11:32:57,56 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:32:57,57 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. 11:32:57,57 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): Cluster state: [] 11:32:57,57 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. 11:32:57,57 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 11:32:57,102 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=null 11:32:57,102 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 11:32:57,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node2 11:32:57,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 11:32:57,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node2 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 11:32:57,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node2 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 11:32:57,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 11:32:57,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:32:57,107 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:32:57,107 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node2: New leader node2 elected 11:32:57,107 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 11:32:57,107 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 11:32:57,107 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node2: Persist data index=2 term=3 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 11:32:57,107 AM [test-pekko.actor.default-dispatcher-11] [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 11:32:57.107] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 11:32:57,107 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=f6989be4-2bc5-477e-91df-effdbeda8ced}, logIndex: 2, isSendImmediate: true 11:32:57,107 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:32:57,107 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]] 11:32:57,107 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) [WARN] [07/02/2025 11:32:57.108] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 11:32:57,108 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 11:32:57,108 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 3 11:32:57,108 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:32:57,108 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 11:32:57,108 AM [test-pekko.actor.default-dispatcher-11] [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}]} 11:32:57,109 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 11:32:57,108 AM [test-pekko.actor.default-dispatcher-7] [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}]} 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 2 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node1 (Follower): Append entry to log 2 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=1, term=1, command=2, pending=false} 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [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} 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node1 (Follower): Log size is now 3 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node1 (Follower): Commit index set to 1 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [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} 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=false]]} 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node1: Applying state for log index 1 data 2 11:32:57,109 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - node1: applyState called: 2 11:32:57,109 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 2, nextIndex: 3 11:32:57,109 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:32:57,110 AM [test-pekko.actor.default-dispatcher-14] [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} 11:32:57,110 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 11:32:57,110 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 2 11:32:57,110 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 1 to 2 11:32:57,110 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node2: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 11:32:57,110 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=2 11:32:57,110 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 1 for term 3 11:32:57,110 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActorVotingConfigSupport - node2: VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} has been successfully replicated to a majority of followers 11:32:57,110 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 11:32:57,110 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 3 11:32:57,111 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=1, command=2, pending=false} 11:32:57,111 AM [test-pekko.actor.default-dispatcher-7] [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} 11:32:57,221 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node1 (Follower): Commit index set to 2 11:32:57,221 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 11:32:57,221 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:32:57,221 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 2 11:32:57,221 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 1 to 2 11:32:57,221 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node1: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 11:32:57,221 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=2 11:32:57,221 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 1 for term 3 11:32:57,311 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout ending 11:32:57,311 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower138] 11:32:57,323 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector139#-890845590] 11:32:57,323 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 11:32:57,323 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 11:32:57,323 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 11:32:57,324 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector140#-1433988016] 11:32:57,324 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 11:32:57,324 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 11:32:57,324 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 11:32:57,327 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached starting [WARN] [07/02/2025 11:32:57.329] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server143]: org.opendaylight.controller.cluster.common.actor.Monitor@78bd3af9 11:32:57,330 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 11:32:57,330 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: started executor 11:32:57,330 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: started executor 11:32:57,333 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/new-server/TermInfo.properties does not exist 11:32:57,333 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 11:32:57,333 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 11:32:57,335 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 11:32:57,335 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 11:32:57,336 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3a4ac869 11:32:57,336 AM [test-pekko.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 11:32:57,338 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:57,338 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:32:57,338 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor [WARN] [07/02/2025 11:32:57.338] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader144]: org.opendaylight.controller.cluster.common.actor.Monitor@71db61ca 11:32:57,338 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 11:32:57,339 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/TermInfo.properties does not exist 11:32:57,339 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: no eligible files found 11:32:57,339 AM [test-pekko.actor.default-dispatcher-14] [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 11:32:57,342 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:57,342 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:32:57,342 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6d75e491 11:32:57,342 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 11:32:57,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true], state: Idle 11:32:57,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 11:32:57,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 11:32:57,343 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 11:32:57,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 11:32:57,343 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 11:32:57,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 11:32:57,344 AM [leader-%d608078] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:57,344 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:57,344 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 11:32:57,344 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 11:32:57,344 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:32:57,344 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 11:32:57,344 AM [leader-%d608079] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/snapshot-00000000686518E9-148D1DC6.tmp 11:32:57,344 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 11:32:57,344 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 11:32:57,344 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 11:32:57,345 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server143), Chunk: 1/1 11:32:57,345 AM [test-pekko.actor.default-dispatcher-11] [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 11:32:57,347 AM [leader-%d608079] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/snapshot-00000000686518E9-148D1DC6.v1 11:32:57,347 AM [leader-%d608079] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/snapshot-00000000686518E9-148D1DC6.v1 11:32:57,347 AM [leader-%d608079] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/TermInfo.properties 11:32:57,347 AM [leader-%d608079] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:57.344792518Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/snapshot-00000000686518E9-148D1DC6.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:57,347 AM [leader-%d608079] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:57,347 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:57,347 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T11:32:57.344792518Z 11:32:57,348 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 11:32:57,348 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 11:32:57,348 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 11:32:57,348 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 11:32:57,348 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 11:32:57,348 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:32:57,348 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 11:32:57,348 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 11:32:57,348 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called [WARN] [07/02/2025 11:32:57.348] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/new-server143] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 11:32:57,349 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 11:32:57,349 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 11:32:57,349 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called 11:32:57,349 AM [new-server-%d337395] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/new-server/snapshot-00000000686518E9-14D45621.tmp 11:32:57,351 AM [new-server-%d337395] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/new-server/snapshot-00000000686518E9-14D45621.v1 11:32:57,351 AM [new-server-%d337395] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/new-server/TermInfo.properties 11:32:57,351 AM [new-server-%d337395] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/new-server/snapshot-00000000686518E9-14D45621.v1 11:32:57,351 AM [new-server-%d337395] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:57.349460001Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/new-server/snapshot-00000000686518E9-14D45621.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:57,351 AM [new-server-%d337395] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 11:32:57,351 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 11:32:57,351 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-02T11:32:57.349460001Z 11:32:57,351 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 11:32:57,351 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called 11:32:57,351 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: applySnapshot called 11:32:57,351 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 11:32:57,352 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 11:32:57,352 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 11:32:57,352 AM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 11:32:57,352 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 11:32:57,392 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 11:32:57,393 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:32:57,393 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:32:57,393 AM [test-pekko.actor.default-dispatcher-14] [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} 11:32:57,393 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=5837fb65-70e5-4d62-a36f-8d560f874ea4}, logIndex: 0, isSendImmediate: true 11:32:57,393 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:32:57,393 AM [leader-%d608080] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/snapshot-00000000686518E9-17753EEF.tmp 11:32:57,393 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:32:57,393 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:32:57,394 AM [test-pekko.actor.default-dispatcher-14] [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}]} 11:32:57,394 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 11:32:57,396 AM [leader-%d608080] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/snapshot-00000000686518E9-17753EEF.v1 11:32:57,396 AM [leader-%d608080] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/snapshot-00000000686518E9-17753EEF.v1 11:32:57,396 AM [leader-%d608080] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/snapshot-00000000686518E9-148D1DC6.v1 11:32:57,396 AM [leader-%d608080] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/TermInfo.properties 11:32:57,396 AM [leader-%d608080] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:57.344792518Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/snapshot-00000000686518E9-148D1DC6.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:57,396 AM [leader-%d608080] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:57.393559791Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest43064736146923799/leader/snapshot-00000000686518E9-17753EEF.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:32:57,396 AM [leader-%d608080] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:57,396 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:57,397 AM [test-pekko.actor.default-dispatcher-14] [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} 11:32:57,443 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 11:32:57,443 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 11:32:57,461 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:32:57,581 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:32:57,581 AM [test-pekko.actor.default-dispatcher-14] [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}]} 11:32:57,701 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:32:57,701 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=false}]} 11:32:57,821 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:32:57,821 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=false}]} 11:32:57,941 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:32:57,941 AM [test-pekko.actor.default-dispatcher-14] [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}]} 11:32:58,61 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:32:58,61 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=false}]} 11:32:58,181 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:32:58,181 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=false}]} 11:32:58,302 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:32:58,302 AM [test-pekko.actor.default-dispatcher-14] [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}]} 11:32:59,411 AM [test-pekko.actor.default-dispatcher-11] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured while replicating the new server configuration for new-server 11:32:59,411 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 11:32:59,412 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 11:32:59,413 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 11:32:59,413 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached ending 11:32:59,413 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower141] 11:32:59,415 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector142#-7921666] 11:32:59,415 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server143] 11:32:59,415 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:32:59,415 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:32:59,416 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader144] 11:32:59,417 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:59,418 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:59,419 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector145] 11:32:59,419 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-serverCollector146] 11:32:59,422 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers starting [WARN] [07/02/2025 11:32:59.424] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader148]: org.opendaylight.controller.cluster.common.actor.Monitor@30896336 11:32:59,424 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:59,424 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:32:59,425 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 11:32:59,425 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 11:32:59,427 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18117197788829144093/leader/TermInfo.properties does not exist 11:32:59,428 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: no eligible files found 11:32:59,428 AM [test-pekko.actor.default-dispatcher-14] [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 11:32:59,435 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:59,435 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:32:59,435 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@160f563e 11:32:59,435 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 11:32:59,435 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 11:32:59,436 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers ending 11:32:59,436 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower147] 11:32:59,436 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader148] 11:32:59,436 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:59,437 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:59,438 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete starting 11:32:59,440 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 11:32:59,440 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: started executor 11:32:59,440 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: started executor [WARN] [07/02/2025 11:32:59.440] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server151]: org.opendaylight.controller.cluster.common.actor.Monitor@793c4d4 11:32:59,442 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest817268761743741802/new-server/TermInfo.properties does not exist 11:32:59,442 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: no eligible files found 11:32:59,442 AM [test-pekko.actor.default-dispatcher-14] [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 11:32:59,445 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 11:32:59,445 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 11:32:59,445 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@165afba7 11:32:59,446 AM [test-pekko.actor.default-dispatcher-14] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 11:32:59.447] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader152]: org.opendaylight.controller.cluster.common.actor.Monitor@21f82cbc 11:32:59,449 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:59,449 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:32:59,449 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 11:32:59,449 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 11:32:59,451 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest817268761743741802/leader/TermInfo.properties does not exist 11:32:59,451 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 11:32:59,451 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 11:32:59,454 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:59,454 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:32:59,454 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7210eca4 11:32:59,455 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 11:32:59,455 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 11:32:59,455 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 11:32:59,455 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 11:32:59,455 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 11:32:59,455 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 11:32:59,455 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 11:32:59,456 AM [leader-%d183745] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest817268761743741802/leader/snapshot-00000000686518EB-1B3303D0.tmp 11:32:59,456 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 11:32:59,456 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:32:59,458 AM [leader-%d183745] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest817268761743741802/leader/snapshot-00000000686518EB-1B3303D0.v1 11:32:59,458 AM [leader-%d183745] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest817268761743741802/leader/snapshot-00000000686518EB-1B3303D0.v1 11:32:59,458 AM [leader-%d183745] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest817268761743741802/leader/TermInfo.properties 11:32:59,458 AM [leader-%d183745] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:59.456328144Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest817268761743741802/leader/snapshot-00000000686518EB-1B3303D0.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:32:59,458 AM [leader-%d183745] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:59,459 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:59,464 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true], state: Idle 11:32:59,464 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 11:32:59,464 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: captureToInstall should not be called in state PersistCapture[lastSequenceNumber=-1, request=CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true]] 11:32:59,464 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 11:32:59,568 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:59,568 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:59,568 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T11:32:59.456328144Z 11:32:59,568 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 11:32:59,568 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 11:32:59,568 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: No longer the leader 11:32:59,568 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 11:32:59,568 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 11:32:59,568 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 11:32:59,569 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 11:32:59,569 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete ending 11:32:59,569 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower149] 11:32:59,580 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector150#1336238827] 11:32:59,580 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server151] 11:32:59,581 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:32:59,581 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:32:59,581 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader152] 11:32:59,581 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:59,581 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:32:59,584 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting starting [WARN] [07/02/2025 11:32:59.586] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server155]: org.opendaylight.controller.cluster.common.actor.Monitor@7bc03b4a 11:32:59,588 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 11:32:59,588 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 11:32:59,588 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 11:32:59,590 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/TermInfo.properties does not exist 11:32:59,590 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 11:32:59,591 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 11:32:59,593 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 11:32:59,594 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 11:32:59,594 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6e2053e8 11:32:59,594 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 11:32:59.595] [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@71917db7 11:32:59,596 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:59,596 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:32:59,596 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 11:32:59,596 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 11:32:59,598 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/TermInfo.properties does not exist 11:32:59,598 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 11:32:59,598 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 11:32:59,601 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:32:59,601 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:32:59,601 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1fb4cd06 11:32:59,601 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 11:32:59,601 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false], state: Idle 11:32:59,602 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 11:32:59,602 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 11:32:59,602 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 11:32:59,602 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 11:32:59,602 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 11:32:59,602 AM [leader-%d641809] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/snapshot-00000000686518EB-23EC0813.tmp 11:32:59,603 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=3b9c8f9b-992c-4e6f-b008-f5ab18ea8f24}, logIndex: 0, isSendImmediate: true 11:32:59,603 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 11:32:59,603 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 11:32:59,603 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 11:32:59,603 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:32:59,603 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 11:32:59,603 AM [test-pekko.actor.default-dispatcher-11] [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 11:32:59,604 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 11:32:59,605 AM [leader-%d641809] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/snapshot-00000000686518EB-23EC0813.v1 11:32:59,605 AM [leader-%d641809] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/snapshot-00000000686518EB-23EC0813.v1 11:32:59,605 AM [leader-%d641809] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/TermInfo.properties 11:32:59,605 AM [leader-%d641809] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:59.602671123Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/snapshot-00000000686518EB-23EC0813.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:32:59,605 AM [leader-%d641809] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:32:59,605 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:32:59,606 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 11:32:59,606 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 11:32:59,606 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 11:32:59,606 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 11:32:59,606 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:32:59,606 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server [WARN] [07/02/2025 11:32:59.606] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 11:32:59,606 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 11:32:59,606 AM [test-pekko.actor.default-dispatcher-14] [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}]} 11:32:59,607 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 11:32:59,607 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:32:59,607 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 11:32:59,607 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 11:32:59,607 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/snapshot-00000000686518EB-2432063D.tmp 11:32:59,609 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/snapshot-00000000686518EB-2432063D.v1 11:32:59,609 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/snapshot-00000000686518EB-2432063D.v1 11:32:59,609 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/TermInfo.properties 11:32:59,610 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:59.607258173Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/snapshot-00000000686518EB-2432063D.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:32:59,610 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 11:32:59,610 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 11:32:59,610 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Log size is now 1 11:32:59,610 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): Commit index set to 0 11:32:59,610 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:32:59,610 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:32:59,610 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:32:59,610 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 11:32:59,610 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 11:32:59,610 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 11:32:59,610 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 11:32:59,610 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} [WARN] [07/02/2025 11:32:59.610] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 11:32:59,722 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:32:59,841 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:32:59,962 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:33:00,81 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:33:00,159 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false], state: Idle 11:33:00,159 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 11:33:00,159 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 11:33:00,159 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 11:33:00,159 AM [test-pekko.actor.default-dispatcher-7] [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]]} 11:33:00,160 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 11:33:00,160 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=880846d4-9462-4563-86af-f11172ae4607}, logIndex: 1, isSendImmediate: true 11:33:00,160 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 11:33:00,160 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 11:33:00,160 AM [test-pekko.actor.default-dispatcher-7] [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]]} 11:33:00,160 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:33:00,160 AM [leader-%d641810] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/snapshot-00000000686518EC-098CB3B2.tmp 11:33:00,160 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 11:33:00,160 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=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}]} 11:33:00,160 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:33:00,161 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 11:33:00,161 AM [test-pekko.actor.default-dispatcher-11] [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}]} 11:33:00,161 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 11:33:00,161 AM [test-pekko.actor.default-dispatcher-7] [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 11:33:00,161 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:33:00,161 AM [test-pekko.actor.default-dispatcher-11] [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]]} 11:33:00,161 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:00,161 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 11:33:00,161 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/snapshot-00000000686518EC-09A1A560.tmp 11:33:00,162 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting ending 11:33:00,162 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower153] 11:33:00,162 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 11:33:00,162 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=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}]} [ERROR] [07/02/2025 11:33:00.162] [test-pekko.actor.internal-dispatcher-2] [pekko://test/user/follower153] Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:663) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 11:33:00,163 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:663) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 11:33:00,164 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/snapshot-00000000686518EC-09A1A560.v1 11:33:00,164 AM [leader-%d641810] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/snapshot-00000000686518EC-098CB3B2.v1 11:33:00,164 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/snapshot-00000000686518EB-2432063D.v1 11:33:00,164 AM [leader-%d641810] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/snapshot-00000000686518EB-23EC0813.v1 11:33:00,164 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/snapshot-00000000686518EC-09A1A560.v1 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/TermInfo.properties 11:33:00,165 AM [leader-%d641810] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/snapshot-00000000686518EC-098CB3B2.v1 11:33:00,165 AM [leader-%d641810] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/TermInfo.properties 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:59.607258173Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/snapshot-00000000686518EB-2432063D.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.161588576Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/new-server/snapshot-00000000686518EC-09A1A560.v1, size=100, entryCompress=NONE, stateCompress=NONE} 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [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]] 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Log size is now 2 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Commit index set to 1 11:33:00,165 AM [leader-%d641810] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:32:59.602671123Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/snapshot-00000000686518EB-23EC0813.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:00,165 AM [leader-%d641810] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.160215986Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13363283785576910757/leader/snapshot-00000000686518EC-098CB3B2.v1, size=100, entryCompress=NONE, stateCompress=NONE} 11:33:00,165 AM [leader-%d641810] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 11:33:00,165 AM [test-pekko.actor.default-dispatcher-11] [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]]} 11:33:00,166 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:00,166 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 11:33:00,166 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:33:00,166 AM [test-pekko.actor.default-dispatcher-14] [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} 11:33:00,173 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector154#600648268] 11:33:00,174 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server155] 11:33:00,175 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:33:00,175 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:33:00,175 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader156] 11:33:00,176 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:00,176 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:00,176 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector157] 11:33:00,180 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress starting [WARN] [07/02/2025 11:33:00.181] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server160]: org.opendaylight.controller.cluster.common.actor.Monitor@76b646ad 11:33:00,183 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 11:33:00,183 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: started executor 11:33:00,183 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: started executor 11:33:00,185 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/TermInfo.properties does not exist 11:33:00,185 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: no eligible files found 11:33:00,185 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:00,188 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 11:33:00,188 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 11:33:00,188 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@c46d5fb 11:33:00,189 AM [test-pekko.actor.default-dispatcher-14] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/02/2025 11:33:00.189] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader161]: org.opendaylight.controller.cluster.common.actor.Monitor@33e8006e 11:33:00,190 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:00,190 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:33:00,190 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 11:33:00,190 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 11:33:00,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/TermInfo.properties does not exist 11:33:00,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: no eligible files found 11:33:00,191 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:00,194 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:00,194 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:33:00,194 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@21032bf 11:33:00,195 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 11:33:00,195 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 11:33:00,195 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 11:33:00,195 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 11:33:00,198 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 11:33:00,198 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 11:33:00,198 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 11:33:00,199 AM [leader-%d131309] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-0BDC2F1C.tmp 11:33:00,199 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 11:33:00,199 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:33:00,201 AM [leader-%d131309] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-0BDC2F1C.v1 11:33:00,201 AM [leader-%d131309] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-0BDC2F1C.v1 11:33:00,201 AM [leader-%d131309] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/TermInfo.properties 11:33:00,201 AM [leader-%d131309] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.198979356Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-0BDC2F1C.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:33:00,201 AM [leader-%d131309] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:00,201 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:00,304 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true], state: Idle 11:33:00,304 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:00,304 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 11:33:00,305 AM [test-pekko.actor.default-dispatcher-14] [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]] 11:33:00,305 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 11:33:00,305 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:00,305 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T11:33:00.198979356Z 11:33:00,305 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 11:33:00,305 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 11:33:00,305 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 11:33:00,305 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 11:33:00,305 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 11:33:00,305 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 11:33:00,306 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 11:33:00,306 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 11:33:00,306 AM [leader-%d131310] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:00,307 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:00,307 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 11:33:00,307 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 11:33:00,307 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:33:00,307 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 11:33:00,307 AM [leader-%d131311] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-1252B0DE.tmp 11:33:00,307 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 11:33:00,307 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 11:33:00,307 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 11:33:00,307 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server160), Chunk: 1/1 11:33:00,307 AM [test-pekko.actor.default-dispatcher-14] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 11:33:00,310 AM [leader-%d131311] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-1252B0DE.v1 11:33:00,310 AM [leader-%d131311] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-1252B0DE.v1 11:33:00,310 AM [leader-%d131311] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-0BDC2F1C.v1 11:33:00,310 AM [leader-%d131311] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/TermInfo.properties 11:33:00,310 AM [leader-%d131311] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.198979356Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-0BDC2F1C.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:33:00,311 AM [leader-%d131311] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.307409118Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-1252B0DE.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:33:00,311 AM [leader-%d131311] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:00,311 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:00,311 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T11:33:00.307409118Z 11:33:00,311 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 11:33:00,311 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 11:33:00,311 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 11:33:00,311 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 11:33:00,311 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:33:00,311 AM [test-pekko.actor.default-dispatcher-14] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 11:33:00,311 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 11:33:00,312 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 11:33:00,312 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - new-server: support() called [WARN] [07/02/2025 11:33:00.312] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 11:33:00,313 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 11:33:00,313 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 11:33:00,313 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - new-server: support() called 11:33:00,313 AM [new-server-%d241006] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/snapshot-00000000686518EC-12AC4DDF.tmp 11:33:00,315 AM [new-server-%d241006] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/snapshot-00000000686518EC-12AC4DDF.v1 11:33:00,315 AM [new-server-%d241006] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/snapshot-00000000686518EC-12AC4DDF.v1 11:33:00,316 AM [new-server-%d241006] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/TermInfo.properties 11:33:00,316 AM [new-server-%d241006] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.313282015Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/snapshot-00000000686518EC-12AC4DDF.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:33:00,316 AM [new-server-%d241006] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 11:33:00,316 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 11:33:00,316 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-02T11:33:00.313282015Z 11:33:00,316 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 11:33:00,316 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 11:33:00,316 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: applySnapshot called 11:33:00,317 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 11:33:00,317 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 11:33:00,317 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 11:33:00,317 AM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 11:33:00,317 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 11:33:00,317 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 11:33:00,317 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:33:00,318 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:33:00,318 AM [test-pekko.actor.default-dispatcher-14] [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} 11:33:00,319 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=04f07e44-83d3-4ddf-ba7c-331388d65e65}, logIndex: 0, isSendImmediate: true 11:33:00,319 AM [leader-%d131312] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-1301B3CB.tmp 11:33:00,319 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:33:00,319 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,319 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 11:33:00,319 AM [test-pekko.actor.default-dispatcher-14] [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}]} 11:33:00,319 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 11:33:00,319 AM [test-pekko.actor.default-dispatcher-7] [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}]} 11:33:00,319 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 11:33:00,319 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:33:00,319 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:33:00,319 AM [test-pekko.actor.default-dispatcher-7] [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} 11:33:00,320 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/snapshot-00000000686518EC-13131CEC.tmp 11:33:00,321 AM [leader-%d131312] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-1301B3CB.v1 11:33:00,321 AM [leader-%d131312] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-1301B3CB.v1 11:33:00,322 AM [leader-%d131312] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-1252B0DE.v1 11:33:00,322 AM [leader-%d131312] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/TermInfo.properties 11:33:00,322 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/snapshot-00000000686518EC-13131CEC.v1 11:33:00,322 AM [leader-%d131312] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.307409118Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-1252B0DE.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:33:00,322 AM [leader-%d131312] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.318878667Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/leader/snapshot-00000000686518EC-1301B3CB.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:33:00,322 AM [leader-%d131312] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:00,322 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/snapshot-00000000686518EC-13131CEC.v1 11:33:00,322 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:00,322 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/snapshot-00000000686518EC-12AC4DDF.v1 11:33:00,322 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/TermInfo.properties 11:33:00,322 AM [test-pekko.actor.default-dispatcher-14] [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} 11:33:00,323 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.313282015Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/snapshot-00000000686518EC-12AC4DDF.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:33:00,323 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.320019692Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14485864456431385043/new-server/snapshot-00000000686518EC-13131CEC.v1, size=86, entryCompress=NONE, stateCompress=NONE} 11:33:00,323 AM [test-pekko.actor.default-dispatcher-7] [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} 11:33:00,323 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 11:33:00,323 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): Log size is now 1 11:33:00,323 AM [test-pekko.actor.default-dispatcher-7] [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} 11:33:00,323 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:33:00,323 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 [WARN] [07/02/2025 11:33:00.323] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 11:33:00,323 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:33:00,323 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 11:33:00,323 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 11:33:00,323 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:33:00,323 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,323 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:00,323 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Commit index set to 0 11:33:00,324 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:33:00,324 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:33:00,324 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 11:33:00,324 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 11:33:00,324 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:33:00,370 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress ending 11:33:00,371 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower158] 11:33:00,382 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector159#-447970347] 11:33:00,382 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server160] 11:33:00,382 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:33:00,382 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:33:00,385 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader161] 11:33:00,385 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:00,385 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:00,386 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector162] 11:33:00,391 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode starting [WARN] [07/02/2025 11:33:00.392] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader164]: org.opendaylight.controller.cluster.common.actor.Monitor@5f5bda4e 11:33:00,393 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:00,393 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:33:00,393 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:33:00,393 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:33:00,395 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7883344570476803040/leader/TermInfo.properties does not exist 11:33:00,395 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: no eligible files found 11:33:00,395 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:00,397 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:00,397 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:33:00,397 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@44f4ca76 11:33:00,397 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 11:33:00,404 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 11:33:00,404 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 11:33:00,404 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Returning INVALID_REQUEST for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 11:33:00,404 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode ending 11:33:00,404 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower163] 11:33:00,405 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader164] 11:33:00,405 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:00,405 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:00,407 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting starting [WARN] [07/02/2025 11:33:00.407] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader168]: org.opendaylight.controller.cluster.common.actor.Monitor@4dd3599 11:33:00,408 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:00,408 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:33:00,409 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 11:33:00,409 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 11:33:00,411 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/leader/TermInfo.properties does not exist 11:33:00,411 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 11:33:00,411 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/02/2025 11:33:00.412] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower166]: org.opendaylight.controller.cluster.common.actor.Monitor@737a34db 11:33:00,413 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:00,413 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:33:00,413 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6c2b6aba 11:33:00,413 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 11:33:00,413 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 11:33:00,413 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:33:00,413 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: started executor 11:33:00,413 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:33:00,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: started executor [WARN] [07/02/2025 11:33:00.414] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower2167] received dead letter from TestActor[pekko://test/user/leader168]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} [WARN] [07/02/2025 11:33:00.415] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2167]: org.opendaylight.controller.cluster.common.actor.Monitor@24abae50 11:33:00,415 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/follower/TermInfo.properties does not exist 11:33:00,415 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: no eligible files found 11:33:00,415 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:00,415 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 11:33:00,415 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: started executor 11:33:00,415 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: started executor 11:33:00,417 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/follower2/TermInfo.properties does not exist 11:33:00,417 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: no eligible files found 11:33:00,417 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:33:00,419 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 11:33:00,419 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 11:33:00,419 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7200b87c 11:33:00,420 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 11:33:00,420 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 11:33:00,420 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@67d2a200 11:33:00,420 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:00,422 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 11:33:00,422 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:33:00,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 11:33:00,422 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 11:33:00.422] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 11:33:00,426 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 11:33:00,426 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 11:33:00,426 AM [test-pekko.actor.default-dispatcher-6] [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]] 11:33:00,426 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]] 11:33:00,426 AM [test-pekko.actor.default-dispatcher-6] [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]]} 11:33:00,426 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 11:33:00,426 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=c6229f70-70ca-45ae-86d1-b56714722533}, logIndex: 0, isSendImmediate: true 11:33:00,426 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:33:00,427 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,427 AM [leader-%d239619] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/leader/snapshot-00000000686518EC-1971064A.tmp 11:33:00,427 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,427 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 11:33:00,427 AM [test-pekko.actor.default-dispatcher-15] [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 11:33:00,427 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=true}]} 11:33:00,427 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 11:33:00,427 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 11:33:00,427 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:33:00,427 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:33:00,427 AM [test-pekko.actor.default-dispatcher-14] [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]]} 11:33:00,427 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 11:33:00,427 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/follower/snapshot-00000000686518EC-197B79E5.tmp 11:33:00,429 AM [leader-%d239619] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/leader/snapshot-00000000686518EC-1971064A.v1 11:33:00,429 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 11:33:00,429 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 11:33:00,429 AM [leader-%d239619] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/leader/snapshot-00000000686518EC-1971064A.v1 11:33:00,429 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 11:33:00,429 AM [leader-%d239619] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/leader/TermInfo.properties 11:33:00,429 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,429 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 [WARN] [07/02/2025 11:33:00.429] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 11:33:00,429 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 11:33:00,429 AM [leader-%d239619] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.426837578Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/leader/snapshot-00000000686518EC-1971064A.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:00,429 AM [leader-%d239619] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:00,429 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 11:33:00,429 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:00,429 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 11:33:00,429 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:33:00,429 AM [test-pekko.actor.default-dispatcher-11] [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]]} 11:33:00,429 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:00,429 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} 11:33:00,430 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/follower2/snapshot-00000000686518EC-19A1A605.tmp 11:33:00,430 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/follower/snapshot-00000000686518EC-197B79E5.v1 11:33:00,430 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/follower/snapshot-00000000686518EC-197B79E5.v1 11:33:00,430 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/follower/TermInfo.properties 11:33:00,430 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.427522533Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/follower/snapshot-00000000686518EC-197B79E5.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:00,430 AM [test-pekko.actor.default-dispatcher-14] [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} 11:33:00,430 AM [test-pekko.actor.default-dispatcher-14] [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]] 11:33:00,430 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): Log size is now 1 11:33:00,430 AM [test-pekko.actor.default-dispatcher-14] [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} 11:33:00,430 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:33:00,430 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 11:33:00,430 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:33:00,430 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 11:33:00,430 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 11:33:00,430 AM [test-pekko.actor.default-dispatcher-15] [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]]} [WARN] [07/02/2025 11:33:00.430] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 11:33:00,431 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,431 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Commit index set to 0 11:33:00,431 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:33:00,431 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:33:00,431 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:33:00,431 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 11:33:00,431 AM [test-pekko.actor.default-dispatcher-6] [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]]} 11:33:00,431 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/follower2/snapshot-00000000686518EC-19A1A605.v1 11:33:00,431 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/follower2/snapshot-00000000686518EC-19A1A605.v1 11:33:00,431 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/follower2/TermInfo.properties 11:33:00,431 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:00.430024197Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5202447491804154777/follower2/snapshot-00000000686518EC-19A1A605.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:00,431 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:00,431 AM [test-pekko.actor.default-dispatcher-11] [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]] 11:33:00,431 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): Log size is now 1 11:33:00,431 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} 11:33:00,431 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) [WARN] [07/02/2025 11:33:00.432] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 11:33:00,431 AM [test-pekko.actor.default-dispatcher-15] [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 11:33:00,432 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Leader changed to non-voting - trying leadership transfer 11:33:00,432 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Initiating leader transfer 11:33:00,433 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - follower2: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 11:33:00,433 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - follower: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 11:33:00,435 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorLeadershipTransferCohort - leader: pauseLeader successfully completed - doing transfer 11:33:00,435 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Leader - leader (Leader): Attempting to transfer leadership 11:33:00,435 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,435 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 11:33:00,435 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} 11:33:00,435 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,435 AM [test-pekko.actor.default-dispatcher-14] [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}]} 11:33:00,435 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:33:00,435 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 11:33:00,435 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:00,435 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:33:00,435 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower2 (Follower): Log size is now 1 11:33:00,435 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 11:33:00,435 AM [test-pekko.actor.default-dispatcher-14] [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} 11:33:00,435 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:33:00,435 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:33:00,435 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 11:33:00,435 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 11:33:00,435 AM [test-pekko.actor.default-dispatcher-14] [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]]} 11:33:00,435 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Leader - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: 0, lastIndex: 0, isVoting: true 11:33:00,435 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Leader - leader (Leader): Follower's log matches - sending ElectionTimeout 11:33:00,435 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,435 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 11:33:00,435 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,436 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Leader - leader (Leader): Leader transfer complete 11:33:00,436 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:33:00,436 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader transfer complete - waiting for new leader 11:33:00,436 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:33:00,436 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 11:33:00,436 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [follower2] 11:33:00,436 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 11:33:00,436 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,437 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=2, votedFor=follower 11:33:00,437 AM [test-pekko.actor.default-dispatcher-14] [INFO] Candidate - follower (Candidate): Starting new election term 2 11:33:00,438 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Candidate - follower (Candidate): Sending RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} to peer follower2 11:33:00,438 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:33:00,438 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:33:00,438 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower2 (Follower): Cluster state: [] 11:33:00,438 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower2 (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 11:33:00,438 AM [test-pekko.actor.default-dispatcher-15] [INFO] Follower - follower2 (Follower): Term 2 in "RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1}" message is greater than follower's term 1 - updating term 11:33:00,439 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=null 11:33:00,439 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower2 (Follower): In requestVote: RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 0, lastTerm: 1 11:33:00,441 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=follower 11:33:00,441 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=true} 11:33:00,441 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - follower (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=true}, my term is 2 11:33:00,441 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - follower (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=true}, current voteCount: 1 11:33:00,441 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - follower (Leader): Election: Leader has following peers: [leader, follower2] 11:33:00,441 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower leader: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,441 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,441 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorBehavior - follower (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:33:00,441 AM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractLeader - leader (Leader): Term 2 in "AppendEntries{term=2, leaderId=follower, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than leader's term 1 - switching to Follower 11:33:00,442 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - follower (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 11:33:00,442 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,442 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader follower, need to catch up to -1 11:33:00,442 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader follower and reached 0 (of expected -1) [WARN] [07/02/2025 11:33:00.442] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] [WARN] [07/02/2025 11:33:00.442] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 11:33:00,443 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=2, votedFor=null 11:33:00,443 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActorBehavior - leader (Leader) :- Switching from behavior Leader to Follower, election term: 2 11:33:00,961 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader follower and reached 0 (of expected -1) 11:33:00,961 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - leader: Last sync leader does not match current leader follower, need to catch up to -1 11:33:00,962 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader changed to follower 11:33:00,962 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - follower (Leader): handleAppendEntriesReply - FollowerLogInformation for leader updated: matchIndex: 0, nextIndex: 1 11:33:00,962 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower leader: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:00,962 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorLeadershipTransferCohort - leader: Successfully transferred leadership to follower in 529.1 ms 11:33:00,962 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: leader transfer succeeded after change to non-voting [WARN] [07/02/2025 11:33:00.962] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=false] 11:33:00,963 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - leader: Lagging 0 entries behind leader follower and reached 0 (of expected -1) [WARN] [07/02/2025 11:33:00.963] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=true] 11:33:00,981 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting ending 11:33:00,981 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower165] 11:33:00,992 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader168] 11:33:00,993 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:00,993 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:00,994 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector169] 11:33:00,995 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector170#1959448519] 11:33:00,995 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower166] 11:33:00,995 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 11:33:00,995 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 11:33:00,996 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector171#534019601] 11:33:00,996 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2167] 11:33:00,996 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 11:33:00,996 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 11:33:01,0 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState starting [WARN] [07/02/2025 11:33:01.001] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader173]: org.opendaylight.controller.cluster.common.actor.Monitor@416cd224 11:33:01,2 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:33:01,2 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:33:01,2 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:33:01,3 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState ending 11:33:01,3 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower172] 11:33:01,4 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2665666070943147425/leader/TermInfo.properties does not exist 11:33:01,4 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: no eligible files found 11:33:01,4 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:01,8 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 11:33:01,8 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 11:33:01,8 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@316726b0 11:33:01,14 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader173] 11:33:01,14 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:01,14 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:01,16 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer starting [WARN] [07/02/2025 11:33:01.017] [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@1e4b3acc 11:33:01,18 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:01,18 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:33:01,18 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:33:01,18 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor [WARN] [07/02/2025 11:33:01.020] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower175]: org.opendaylight.controller.cluster.common.actor.Monitor@5357fbe 11:33:01,21 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 11:33:01,21 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: started executor 11:33:01,21 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: started executor 11:33:01,21 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/leader/TermInfo.properties does not exist 11:33:01,21 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: no eligible files found 11:33:01,22 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/follower/TermInfo.properties does not exist 11:33:01,22 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:01,22 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: no eligible files found 11:33:01,22 AM [test-pekko.actor.default-dispatcher-7] [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 11:33:01,26 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 11:33:01,26 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 11:33:01,26 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@119de836 11:33:01,27 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:01,27 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:33:01,27 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@66152e15 11:33:01,27 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower, downNode] 11:33:01,27 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/02/2025 11:33:01.027] [test-pekko.actor.default-dispatcher-15] [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==[]} 11:33:01,27 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:33:01,28 AM [test-pekko.actor.default-dispatcher-15] [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 11:33:01,28 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/02/2025 11:33:01.028] [test-pekko.actor.default-dispatcher-7] [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==[]} 11:33:01,30 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 11:33:01,30 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:33:01,30 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 [WARN] [07/02/2025 11:33:01.030] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower175] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 11:33:01,30 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/02/2025 11:33:01.123] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2176]: org.opendaylight.controller.cluster.common.actor.Monitor@68da4e06 11:33:01,124 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 11:33:01,124 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: started executor 11:33:01,125 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: started executor 11:33:01,127 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/follower2/TermInfo.properties does not exist 11:33:01,127 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: no eligible files found 11:33:01,127 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:01,131 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 11:33:01,131 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 11:33:01,131 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3087e9b1 11:33:01,132 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 11:33:01,132 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:33:01,132 AM [test-pekko.actor.default-dispatcher-15] [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]]} 11:33:01,132 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 11:33:01,133 AM [leader-%d463745] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/leader/snapshot-00000000686518ED-07EDC183.tmp 11:33:01,133 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=35fb11eb-f3ef-4bb1-81ce-1faeeebde874}, logIndex: 0, isSendImmediate: true 11:33:01,133 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:33:01,133 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:01,133 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:01,133 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 11:33:01,133 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='follower'} [WARN] [07/02/2025 11:33:01.133] [test-pekko.actor.default-dispatcher-14] [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==[]} 11:33:01,137 AM [leader-%d463745] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/leader/snapshot-00000000686518ED-07EDC183.v1 11:33:01,137 AM [leader-%d463745] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/leader/snapshot-00000000686518ED-07EDC183.v1 11:33:01,137 AM [leader-%d463745] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/leader/TermInfo.properties 11:33:01,137 AM [leader-%d463745] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.133022083Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/leader/snapshot-00000000686518ED-07EDC183.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:01,137 AM [leader-%d463745] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:01,137 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:01,138 AM [test-pekko.actor.default-dispatcher-14] [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} 11:33:01,138 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 11:33:01,138 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 11:33:01,138 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 11:33:01,138 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:01,138 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 11:33:01,138 AM [test-pekko.actor.default-dispatcher-14] [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}]} [WARN] [07/02/2025 11:33:01.138] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 11:33:01,138 AM [test-pekko.actor.default-dispatcher-11] [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}]} 11:33:01,138 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 11:33:01,138 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:33:01,138 AM [test-pekko.actor.default-dispatcher-11] [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]]} 11:33:01,138 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:01,138 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/follower2/snapshot-00000000686518ED-0847EAE8.tmp 11:33:01,140 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/follower2/snapshot-00000000686518ED-0847EAE8.v1 11:33:01,140 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/follower2/snapshot-00000000686518ED-0847EAE8.v1 11:33:01,140 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/follower2/TermInfo.properties 11:33:01,140 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.138930920Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15215259767055591500/follower2/snapshot-00000000686518ED-0847EAE8.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:01,141 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:01,141 AM [test-pekko.actor.default-dispatcher-11] [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]] 11:33:01,141 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): Log size is now 1 11:33:01,141 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} 11:33:01,141 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:33:01,141 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 11:33:01,141 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:33:01,141 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 11:33:01,141 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 11:33:01,141 AM [test-pekko.actor.default-dispatcher-11] [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]]} 11:33:01,141 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/02/2025 11:33:01.141] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 11:33:01,141 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 11:33:01,141 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:33:01,141 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:33:01,141 AM [test-pekko.actor.default-dispatcher-11] [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 11:33:01,141 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 11:33:01,141 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 11:33:01,141 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - follower2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} [WARN] [07/02/2025 11:33:01.141] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/follower175] unhandled message from TestActor[pekko://test/user/leader177]: ServerRemoved [serverId=follower] [WARN] [07/02/2025 11:33:01.142] [test-pekko.actor.default-dispatcher-7] [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==[]} 11:33:01,184 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer ending 11:33:01,185 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower174] 11:33:01,186 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader177] 11:33:01,186 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:01,186 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:01,187 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector178] 11:33:01,187 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector179#-1823177694] 11:33:01,187 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower175] 11:33:01,187 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 11:33:01,187 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 11:33:01,188 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector180#-1197855656] 11:33:01,188 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2176] 11:33:01,188 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 11:33:01,188 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 11:33:01,191 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader starting [WARN] [07/02/2025 11:33:01.193] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server183]: org.opendaylight.controller.cluster.common.actor.Monitor@2adc27c4 11:33:01,194 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 11:33:01,194 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 11:33:01,195 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 11:33:01,197 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16153671301945315930/new-server/TermInfo.properties does not exist 11:33:01,197 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 11:33:01,197 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 11:33:01,200 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 11:33:01,200 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 11:33:01,201 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6526d6d4 [WARN] [07/02/2025 11:33:01.202] [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@1fed4364 11:33:01,202 AM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 11:33:01,202 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:33:01,202 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 11:33:01,202 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 11:33:01,204 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16153671301945315930/leader/TermInfo.properties does not exist 11:33:01,204 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 11:33:01,204 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 11:33:01,208 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 11:33:01,208 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 11:33:01,208 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4d2b44f8 11:33:01,209 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server183, votingMember=true], state: Idle 11:33:01,209 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 11:33:01,209 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader ending 11:33:01,209 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower181] 11:33:01,210 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector182#-1736328961] 11:33:01,210 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server183] 11:33:01,210 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:33:01,211 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:33:01,211 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader184] 11:33:01,211 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:01,211 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:01,213 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus starting [WARN] [07/02/2025 11:33:01.214] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader188]: org.opendaylight.controller.cluster.common.actor.Monitor@283847 11:33:01,215 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:01,215 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:33:01,215 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 11:33:01,215 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 11:33:01,216 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/TermInfo.properties does not exist 11:33:01,216 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 11:33:01,216 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/02/2025 11:33:01.218] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower186]: org.opendaylight.controller.cluster.common.actor.Monitor@193f076b 11:33:01,219 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 11:33:01,219 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: started executor 11:33:01,219 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: started executor 11:33:01,219 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:01,219 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:33:01,219 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1e7e321c 11:33:01,220 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 11:33:01,220 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:33:01,220 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/02/2025 11:33:01.220] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower2187] received dead letter from TestActor[pekko://test/user/leader188]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:33:01,220 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/TermInfo.properties does not exist 11:33:01,221 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: no eligible files found 11:33:01,221 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/02/2025 11:33:01.221] [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@37f7ca81 11:33:01,222 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 11:33:01,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: started executor 11:33:01,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: started executor 11:33:01,223 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/TermInfo.properties does not exist 11:33:01,223 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: no eligible files found 11:33:01,223 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:33:01,223 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 11:33:01,223 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 11:33:01,223 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@23e00f0a 11:33:01,224 AM [test-pekko.actor.default-dispatcher-15] [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 11:33:01,224 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]], state: Idle 11:33:01,224 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 11:33:01,224 AM [test-pekko.actor.default-dispatcher-14] [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]] 11:33:01,224 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 11:33:01,224 AM [test-pekko.actor.default-dispatcher-14] [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]]} 11:33:01,224 AM [test-pekko.actor.default-dispatcher-14] [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} 11:33:01,225 AM [leader-%d795287] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/snapshot-00000000686518ED-0D67460D.tmp 11:33:01,226 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=68197ed5-a254-405e-8cd3-8fdf38433293}, logIndex: 0, isSendImmediate: true 11:33:01,226 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 11:33:01,226 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 11:33:01,226 AM [test-pekko.actor.default-dispatcher-14] [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]]} 11:33:01,226 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:01,226 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:01,226 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]] 11:33:01,226 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:01,227 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 11:33:01,227 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 11:33:01,227 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4bf5ee30 11:33:01,227 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - follower2 (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 11:33:01,228 AM [leader-%d795287] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/snapshot-00000000686518ED-0D67460D.v1 11:33:01,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 11:33:01,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:33:01,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:33:01,228 AM [leader-%d795287] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/snapshot-00000000686518ED-0D67460D.v1 11:33:01,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 11:33:01,228 AM [leader-%d795287] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/TermInfo.properties 11:33:01,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:01,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 11:33:01,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 11:33:01,228 AM [leader-%d795287] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.224871949Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/snapshot-00000000686518ED-0D67460D.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:01,228 AM [leader-%d795287] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:01,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:01,229 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 11:33:01,229 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} [WARN] [07/02/2025 11:33:01.229] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [WARN] [07/02/2025 11:33:01.229] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 11:33:01,229 AM [test-pekko.actor.default-dispatcher-15] [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=false}]} 11:33:01,229 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:33:01,229 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:33:01,229 AM [test-pekko.actor.default-dispatcher-15] [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]]} 11:33:01,229 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 11:33:01,229 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/snapshot-00000000686518ED-0DAEA47B.tmp 11:33:01,230 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 11:33:01,230 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 11:33:01,230 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 11:33:01,230 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:01,230 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 11:33:01,230 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:01.230] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 11:33:01,230 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}]} 11:33:01,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 11:33:01,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:33:01,230 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]]} 11:33:01,230 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} 11:33:01,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/snapshot-00000000686518ED-0DC25182.tmp 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/snapshot-00000000686518ED-0DAEA47B.v1 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/snapshot-00000000686518ED-0DAEA47B.v1 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/TermInfo.properties 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.229549179Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/snapshot-00000000686518ED-0DAEA47B.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [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} 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [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]] 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Log size is now 1 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Commit index set to 0 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 11:33:01,232 AM [test-pekko.actor.default-dispatcher-15] [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]]} 11:33:01,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/snapshot-00000000686518ED-0DC25182.v1 11:33:01,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/snapshot-00000000686518ED-0DC25182.v1 11:33:01,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/TermInfo.properties 11:33:01,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.230838658Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/snapshot-00000000686518ED-0DC25182.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:01,233 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} 11:33:01,233 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]] 11:33:01,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Log size is now 1 11:33:01,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 11:33:01,233 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} 11:33:01,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 11:33:01,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:33:01,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 11:33:01,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 11:33:01,233 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]]} [WARN] [07/02/2025 11:33:01.233] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 11:33:01,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 11:33:01,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:01,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 11:33:01,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:01,278 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]], state: Idle 11:33:01,278 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 11:33:01,278 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - leader: Updated server config: isVoting: true, peers: [PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=VOTING]] 11:33:01,278 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:33:01,278 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=1 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:33:01,278 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 11:33:01,278 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=f15c735e-2c3d-4cf5-b261-daecfe3590c5}, logIndex: 1, isSendImmediate: true 11:33:01,279 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 11:33:01,279 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 11:33:01,279 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:33:01,279 AM [leader-%d795288] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/snapshot-00000000686518ED-109E1649.tmp 11:33:01,279 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:33:01,279 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower2 11:33:01,279 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 11:33:01,279 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:33:01,279 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower 11:33:01,279 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 11:33:01,279 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 11:33:01,279 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]] 11:33:01,279 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 11:33:01,279 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:33:01,279 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:33:01,279 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 11:33:01,279 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/snapshot-00000000686518ED-10AC04ED.tmp 11:33:01,279 AM [test-pekko.actor.default-dispatcher-11] [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}]} 11:33:01,279 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:33:01,279 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 11:33:01,280 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:33:01,280 AM [test-pekko.actor.default-dispatcher-11] [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]]} 11:33:01,280 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:01,280 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/snapshot-00000000686518ED-10B38AAB.tmp 11:33:01,282 AM [leader-%d795288] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/snapshot-00000000686518ED-109E1649.v1 11:33:01,282 AM [leader-%d795288] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/snapshot-00000000686518ED-0D67460D.v1 11:33:01,283 AM [leader-%d795288] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/snapshot-00000000686518ED-109E1649.v1 11:33:01,283 AM [leader-%d795288] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/TermInfo.properties 11:33:01,283 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/snapshot-00000000686518ED-10AC04ED.v1 11:33:01,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/snapshot-00000000686518ED-10B38AAB.v1 11:33:01,283 AM [leader-%d795288] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.224871949Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/snapshot-00000000686518ED-0D67460D.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:01,283 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/snapshot-00000000686518ED-10AC04ED.v1 11:33:01,283 AM [leader-%d795288] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.278795849Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/leader/snapshot-00000000686518ED-109E1649.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:01,283 AM [leader-%d795288] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:01,283 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/snapshot-00000000686518ED-0DC25182.v1 11:33:01,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/snapshot-00000000686518ED-10B38AAB.v1 11:33:01,283 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/TermInfo.properties 11:33:01,283 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:01,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/snapshot-00000000686518ED-0DAEA47B.v1 11:33:01,283 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 11:33:01,283 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.230838658Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/snapshot-00000000686518ED-0DC25182.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:01,284 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 11:33:01,284 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.279708909Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower2/snapshot-00000000686518ED-10AC04ED.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/TermInfo.properties 11:33:01,284 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower2: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 11:33:01,284 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - follower2: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=VOTING]] 11:33:01,284 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): Log size is now 2 11:33:01,284 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): Commit index set to 1 11:33:01,284 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower2, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:33:01,284 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 11:33:01,284 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:33:01,284 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 1 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.229549179Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/snapshot-00000000686518ED-0DAEA47B.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:01,284 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from 0 to 1 11:33:01,284 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - follower2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:33:01,284 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 1, nextIndex: 2 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.280201899Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15902154453096012645/follower/snapshot-00000000686518ED-10B38AAB.v1, size=96, entryCompress=NONE, stateCompress=NONE} 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:01,284 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [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]] 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): Log size is now 2 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): Commit index set to 1 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 11:33:01,284 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 0 to 1 11:33:01,284 AM [test-pekko.actor.default-dispatcher-11] [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]]} 11:33:01,284 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:33:01,330 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus ending 11:33:01,330 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower185] 11:33:01,342 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader188] 11:33:01,342 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:01,342 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:01,342 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector189] 11:33:01,343 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector190#1617312125] 11:33:01,343 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower186] 11:33:01,344 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 11:33:01,344 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 11:33:01,344 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector191#1593323296] 11:33:01,344 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2187] 11:33:01,345 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 11:33:01,345 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 11:33:01,348 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower starting [WARN] [07/02/2025 11:33:01.350] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server194]: org.opendaylight.controller.cluster.common.actor.Monitor@6a20b131 11:33:01,351 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 11:33:01,351 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 11:33:01,351 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 11:33:01,352 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/TermInfo.properties does not exist 11:33:01,353 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 11:33:01,353 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 11:33:01,355 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 11:33:01,355 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 11:33:01,355 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@12665e0f 11:33:01,356 AM [main] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 2 11:33:01,356 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 11:33:01.356] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader195]: org.opendaylight.controller.cluster.common.actor.Monitor@7eac70e 11:33:01,357 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 11:33:01,357 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:33:01,357 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 11:33:01,357 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 11:33:01,358 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/TermInfo.properties does not exist 11:33:01,358 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 11:33:01,358 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 11:33:01,360 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 11:33:01,360 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=leader} 11:33:01,360 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@517a38f9 11:33:01,361 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 11:33:01,361 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:33:01,361 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:33:01,361 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 11:33:01,361 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 11:33:01,361 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:33:01,361 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 11:33:01,361 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 1 for term 1 11:33:01,419 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 11:33:01,420 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 11:33:01,420 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 11:33:01,420 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 11:33:01,420 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 11:33:01,420 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 11:33:01,421 AM [leader-%d904706] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:01,421 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:01,421 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 11:33:01,421 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 11:33:01,422 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 11:33:01,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 11:33:01,422 AM [leader-%d904707] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/snapshot-00000000686518ED-1927CFB0.tmp 11:33:01,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 11:33:01,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 11:33:01,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 11:33:01,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server194), Chunk: 1/1 11:33:01,422 AM [test-pekko.actor.default-dispatcher-11] [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 11:33:01,426 AM [leader-%d904707] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/snapshot-00000000686518ED-1927CFB0.v1 11:33:01,427 AM [leader-%d904707] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/snapshot-00000000686518ED-1927CFB0.v1 11:33:01,427 AM [leader-%d904707] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/TermInfo.properties 11:33:01,427 AM [leader-%d904707] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.422039472Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/snapshot-00000000686518ED-1927CFB0.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:33:01,427 AM [leader-%d904707] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:01,427 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:01,427 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-02T11:33:01.422039472Z 11:33:01,427 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 11:33:01,427 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 11:33:01,427 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 11:33:01,427 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 2 11:33:01,427 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 11:33:01,427 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:33:01,427 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 11:33:01,428 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 11:33:01,428 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called [WARN] [07/02/2025 11:33:01.428] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 11:33:01,429 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 11:33:01,429 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 11:33:01,429 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called 11:33:01,429 AM [new-server-%d660305] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/snapshot-00000000686518ED-19954E2D.tmp 11:33:01,431 AM [new-server-%d660305] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/snapshot-00000000686518ED-19954E2D.v1 11:33:01,431 AM [new-server-%d660305] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/snapshot-00000000686518ED-19954E2D.v1 11:33:01,431 AM [new-server-%d660305] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/TermInfo.properties 11:33:01,431 AM [new-server-%d660305] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.429215277Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/snapshot-00000000686518ED-19954E2D.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:33:01,431 AM [new-server-%d660305] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 11:33:01,432 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 11:33:01,432 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-02T11:33:01.429215277Z 11:33:01,432 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 11:33:01,432 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called 11:33:01,432 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: applySnapshot called 11:33:01,432 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 11:33:01,432 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 11:33:01,432 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 11:33:01,432 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 2, nextIndex set to 3 11:33:01,432 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 11:33:01,432 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 11:33:01,432 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 11:33:01,432 AM [test-pekko.actor.default-dispatcher-11] [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]]} 11:33:01,432 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:01,433 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=c127a1a1-fbd7-4981-b618-64dbd24bf706}, logIndex: 3, isSendImmediate: true 11:33:01,433 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:33:01,433 AM [leader-%d904708] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/snapshot-00000000686518ED-19CF44D0.tmp 11:33:01,433 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 11:33:01,433 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower follower 11:33:01,433 AM [test-pekko.actor.default-dispatcher-11] [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}]} 11:33:01,433 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 11:33:01,433 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower new-server 11:33:01,433 AM [test-pekko.actor.default-dispatcher-11] [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}]} 11:33:01,433 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 11:33:01,433 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 11:33:01,433 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 11:33:01,433 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 11:33:01,433 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 11:33:01,433 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 11:33:01,433 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/snapshot-00000000686518ED-19D91C3E.tmp 11:33:01,433 AM [test-pekko.actor.default-dispatcher-6] [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}]} 11:33:01,434 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:33:01,434 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 11:33:01,434 AM [test-pekko.actor.default-dispatcher-6] [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]]} 11:33:01,434 AM [test-pekko.actor.default-dispatcher-6] [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} 11:33:01,434 AM [test-pekko.actor.default-dispatcher-6] [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} 11:33:01,434 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=, votingState=VOTING], PeerInfo [id=new-server, address=null, votingState=VOTING]] 11:33:01,434 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Log size is now 2 11:33:01,434 AM [test-pekko.actor.default-dispatcher-6] [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} 11:33:01,434 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 11:33:01,434 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 11:33:01,434 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 11:33:01,436 AM [leader-%d904708] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/snapshot-00000000686518ED-19CF44D0.v1 11:33:01,436 AM [leader-%d904708] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/snapshot-00000000686518ED-1927CFB0.v1 11:33:01,436 AM [leader-%d904708] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/snapshot-00000000686518ED-19CF44D0.v1 11:33:01,436 AM [leader-%d904708] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/TermInfo.properties 11:33:01,436 AM [leader-%d904708] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.422039472Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/snapshot-00000000686518ED-1927CFB0.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:33:01,436 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/snapshot-00000000686518ED-19D91C3E.v1 11:33:01,436 AM [leader-%d904708] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.433013968Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/snapshot-00000000686518ED-19CF44D0.v1, size=97, entryCompress=NONE, stateCompress=NONE} 11:33:01,436 AM [leader-%d904708] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 11:33:01,437 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 11:33:01,437 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/snapshot-00000000686518ED-19954E2D.v1 11:33:01,437 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:01,437 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 11:33:01,437 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/snapshot-00000000686518ED-19D91C3E.v1 11:33:01,437 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 3 11:33:01,437 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 2 to 3 11:33:01,437 AM [test-pekko.actor.default-dispatcher-11] [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]]} 11:33:01,437 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 2 for term 1 11:33:01,437 AM [test-pekko.actor.default-dispatcher-11] [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 11:33:01,437 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/TermInfo.properties 11:33:01,437 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.429215277Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/snapshot-00000000686518ED-19954E2D.v1, size=64, entryCompress=NONE, stateCompress=NONE} 11:33:01,437 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.433658942Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/snapshot-00000000686518ED-19D91C3E.v1, size=97, entryCompress=NONE, stateCompress=NONE} 11:33:01,437 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 11:33:01,437 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=follower, address=null, votingState=VOTING]] 11:33:01,437 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Log size is now 1 11:33:01,437 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=3, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:33:01,437 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 2) 11:33:01,437 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 3, nextIndex: 4 11:33:01,438 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 11:33:01,438 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Commit index set to 3 11:33:01,438 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 11:33:01,438 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 11:33:01,438 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 3 [WARN] [07/02/2025 11:33:01.438] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 11:33:01,438 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 2 to 3 11:33:01,438 AM [test-pekko.actor.default-dispatcher-15] [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]]} 11:33:01,601 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Commit index set to 3 11:33:01,602 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 11:33:01,602 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 11:33:01,602 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 11:33:01,602 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 2 to 3 11:33:01,602 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 11:33:01,602 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 2 for term 1 11:33:01,622 AM [main] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/snapshot-00000000686518ED-19CF44D0.v1 11:33:01,622 AM [main] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/TermInfo.properties 11:33:01,622 AM [main] [DEBUG] RaftStorage - leader: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.433013968Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/leader/snapshot-00000000686518ED-19CF44D0.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 11:33:01,623 AM [main] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/snapshot-00000000686518ED-19D91C3E.v1 11:33:01,623 AM [main] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/TermInfo.properties 11:33:01,623 AM [main] [DEBUG] RaftStorage - new-server: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-02T11:33:01.433658942Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10159371432846238407/new-server/snapshot-00000000686518ED-19D91C3E.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 11:33:01,623 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower ending 11:33:01,623 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower192] 11:33:01,625 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector193#-929478743] 11:33:01,625 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server194] 11:33:01,625 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:33:01,625 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:33:01,626 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader195] 11:33:01,626 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:01,626 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:01,626 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector196] 11:33:01,629 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader starting [WARN] [07/02/2025 11:33:01.630] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server199]: org.opendaylight.controller.cluster.common.actor.Monitor@3edba750 11:33:01,631 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 11:33:01,631 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: started executor 11:33:01,632 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: started executor 11:33:01,633 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16640916425651325145/new-server/TermInfo.properties does not exist 11:33:01,633 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 11:33:01,633 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 11:33:01,636 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 11:33:01,636 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 11:33:01,636 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6efece24 11:33:01,637 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 11:33:01.638] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower201]: org.opendaylight.controller.cluster.common.actor.Monitor@74f0e697 11:33:01,639 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 11:33:01,639 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 11:33:01,639 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 11:33:01,640 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16640916425651325145/follower/TermInfo.properties does not exist 11:33:01,640 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: no eligible files found 11:33:01,640 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 11:33:01,642 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 11:33:01,642 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 11:33:01,642 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@cb884db 11:33:01,643 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:01,645 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 11:33:01,645 AM [test-pekko.actor.default-dispatcher-14] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 11:33:01,645 AM [test-pekko.actor.default-dispatcher-14] [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} 11:33:01,645 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:33:01,645 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - follower: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server199, votingMember=true], state: Idle 11:33:01,645 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader200 11:33:01,645 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader200)] [WARN] [07/02/2025 11:33:01.645] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower201] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 11:33:01,694 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader ending 11:33:01,694 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower197] 11:33:01,695 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector198#-1374884061] 11:33:01,695 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server199] 11:33:01,695 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:33:01,695 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:33:01,696 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader200#1832250331] 11:33:01,696 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower201] 11:33:01,696 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 11:33:01,696 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 11:33:01,698 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader starting [WARN] [07/02/2025 11:33:01.700] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower204]: org.opendaylight.controller.cluster.common.actor.Monitor@50680a30 11:33:01,702 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 11:33:01,702 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 11:33:01,702 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 11:33:01,704 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8958808395999912137/follower/TermInfo.properties does not exist 11:33:01,704 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: no eligible files found 11:33:01,704 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:01,707 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 11:33:01,707 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 11:33:01,707 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5b42f7ca 11:33:01,708 AM [test-pekko.actor.default-dispatcher-14] [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 11:33:01,710 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 11:33:01,710 AM [test-pekko.actor.default-dispatcher-14] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 11:33:01,710 AM [test-pekko.actor.default-dispatcher-14] [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} 11:33:01,710 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:33:01,711 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - follower: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 11:33:01,711 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader203 11:33:01,711 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader203)] [WARN] [07/02/2025 11:33:01.711] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/follower204] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 11:33:01,758 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader ending 11:33:01,758 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower202] 11:33:01,760 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader203] 11:33:01,760 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower204] 11:33:01,760 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 11:33:01,760 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 11:33:01,763 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer starting [WARN] [07/02/2025 11:33:01.764] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader206]: org.opendaylight.controller.cluster.common.actor.Monitor@3887b7fb 11:33:01,765 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:01,765 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:33:01,765 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:33:01,765 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:33:01,767 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15325294729951109621/leader/TermInfo.properties does not exist 11:33:01,767 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 11:33:01,767 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 11:33:01,770 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:01,770 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:33:01,770 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@38018a0c 11:33:01,771 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 11:33:01,771 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:33:01,771 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true], state: Idle 11:33:01,771 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 11:33:01,771 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning ALREADY_EXISTS for operation AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 11:33:01,771 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer ending 11:33:01,771 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower205] 11:33:01,772 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader206] 11:33:01,772 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:01,772 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:01,774 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout starting [WARN] [07/02/2025 11:33:01.775] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@317895fc 11:33:01,776 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 11:33:01,776 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: started executor 11:33:01,776 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: started executor 11:33:01,777 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6263054859384315908/node1/TermInfo.properties does not exist 11:33:01,778 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: no eligible files found 11:33:01,778 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 11:33:01,778 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 11:33:01,778 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 11:33:01,778 AM [test-pekko.actor.default-dispatcher-6] [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 11:33:01.778] [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@38b0857d 11:33:01,779 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 11:33:01,780 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node2: started executor 11:33:01,780 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node2: started executor 11:33:01,781 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 11:33:01,781 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 11:33:01,781 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3b86485f 11:33:01,781 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6263054859384315908/node2/TermInfo.properties does not exist 11:33:01,781 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: no eligible files found 11:33:01,781 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 11:33:01,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 11:33:01,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 11:33:01,782 AM [test-pekko.actor.default-dispatcher-11] [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 11:33:01,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 11:33:01,784 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 11:33:01,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@54d63661 11:33:01,790 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]], state: Idle 11:33:01,791 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 11:33:01,791 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 11:33:01,791 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 11:33:01,791 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:33:01,791 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 11:33:01,791 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 11:33:01,794 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 11:33:01,794 AM [test-pekko.actor.default-dispatcher-14] [INFO] Candidate - node1 (Candidate): Starting new election term 2 11:33:01,794 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 11:33:01,794 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:33:01,911 AM [test-pekko.actor.default-dispatcher-11] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 11:33:01,911 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 11:33:01,911 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 11:33:01,911 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 11:33:01,912 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout ending 11:33:01,912 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower207] 11:33:01,923 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector208#1556923579] 11:33:01,923 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 11:33:01,923 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 11:33:01,923 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 11:33:01,924 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector209#125622566] 11:33:01,924 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 11:33:01,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 11:33:01,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 11:33:01,927 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader starting [WARN] [07/02/2025 11:33:01.929] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@1dfe0151 11:33:01,931 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 11:33:01,931 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: started executor 11:33:01,931 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: started executor [WARN] [07/02/2025 11:33:01.932] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@709d25c0 11:33:01,933 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 11:33:01,933 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: started executor 11:33:01,933 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: started executor 11:33:01,933 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10127887844602588696/node1/TermInfo.properties does not exist 11:33:01,933 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: no eligible files found 11:33:01,933 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 11:33:01,933 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 163 11:33:01,933 AM [test-pekko.actor.default-dispatcher-15] [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]] 11:33:01,934 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - node1: Received apply journal entries for recovery, applying to state: 0 to 0 11:33:01,934 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 11:33:01,934 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - node1: Recovery completed in 55.64 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 11:33:01,934 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10127887844602588696/node2/TermInfo.properties does not exist 11:33:01,935 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node2: no eligible files found 11:33:01,935 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 11:33:01,935 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 163 11:33:01,935 AM [test-pekko.actor.default-dispatcher-14] [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]] 11:33:01,935 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 0 11:33:01,935 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 11:33:01,935 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - node2: Recovery completed in 55.63 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 11:33:01,938 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 11:33:01,938 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode2} 11:33:01,938 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 11:33:01,938 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@378a08d7 11:33:01,938 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode1} 11:33:01,938 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3f90cad7 11:33:02,43 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 11:33:02,44 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 11:33:02,44 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 11:33:02,44 AM [test-pekko.actor.default-dispatcher-11] [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]] 11:33:02,44 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:33:02,44 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 11:33:02,44 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 11:33:02,48 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 11:33:02,48 AM [test-pekko.actor.default-dispatcher-11] [INFO] Candidate - node1 (Candidate): Starting new election term 2 11:33:02,48 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:33:02,561 AM [test-pekko.actor.default-dispatcher-15] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 11:33:02,561 AM [test-pekko.actor.default-dispatcher-15] [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]] 11:33:02,561 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 11:33:02,561 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] [WARN] [07/02/2025 11:33:02.563] [test-pekko.actor.default-dispatcher-15] [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} 11:33:02,563 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader downNode1, need to catch up to 0 [WARN] [07/02/2025 11:33:02.563] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 11:33:03,170 AM [main] [INFO] PeerInfos - node1: Peer address for peer node2 set to pekko://test/user/node2 11:33:03,170 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 11:33:03,171 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 11:33:03,171 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 11:33:03,171 AM [test-pekko.actor.default-dispatcher-14] [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]] 11:33:03,171 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 11:33:03,171 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 11:33:03,176 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node1 11:33:03,176 AM [test-pekko.actor.default-dispatcher-14] [INFO] Candidate - node1 (Candidate): Starting new election term 3 11:33:03,176 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 11:33:03,176 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:33:03,176 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. 11:33:03,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 11:33:03,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 11:33:03,177 AM [test-pekko.actor.default-dispatcher-11] [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 11:33:03,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=null 11:33:03,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 11:33:03,183 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node1 11:33:03,183 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 11:33:03,183 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 11:33:03,183 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 11:33:03,183 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): Election: Leader has following peers: [node2, downNode2, downNode1] 11:33:03,183 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:33:03,183 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:33:03,183 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node1 elected 11:33:03,184 AM [test-pekko.actor.default-dispatcher-15] [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]] 11:33:03,184 AM [test-pekko.actor.default-dispatcher-15] [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]]} 11:33:03,184 AM [test-pekko.actor.default-dispatcher-15] [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} 11:33:03,184 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node2: Last sync leader does not match current leader node1, need to catch up to -1 11:33:03,184 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=fcfb0271-dca8-4452-87c2-f299c31cf70e}, logIndex: 1, isSendImmediate: true 11:33:03,184 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 [WARN] [07/02/2025 11:33:03.184] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=false] 11:33:03,184 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node2: Lagging -1 entries behind leader node1 and reached 0 (of expected -1) 11:33:03,184 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] [WARN] [07/02/2025 11:33:03.184] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=true] 11:33:03,184 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 0, nextIndex: 1 11:33:03,185 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:33:03,185 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 11:33:03,185 AM [test-pekko.actor.default-dispatcher-15] [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}]} 11:33:03,185 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 11:33:03,185 AM [test-pekko.actor.default-dispatcher-11] [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}]} 11:33:03,185 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node2 (Follower): Number of entries to be appended = 1 11:33:03,185 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:33:03,185 AM [test-pekko.actor.default-dispatcher-11] [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]]} 11:33:03,185 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=true} 11:33:03,185 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=false} 11:33:03,185 AM [test-pekko.actor.default-dispatcher-11] [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]] 11:33:03,185 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node2 (Follower): Log size is now 2 11:33:03,185 AM [test-pekko.actor.default-dispatcher-11] [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} 11:33:03,185 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 1, nextIndex: 2 11:33:03,186 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 11:33:03,186 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Leader): Setting last applied to 1 11:33:03,186 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 11:33:03,186 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]]} 11:33:03,186 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 11:33:03,186 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:33:03,186 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 11:33:03,186 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 0 (of expected -1) 11:33:03,187 AM [test-pekko.actor.default-dispatcher-16] [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} 11:33:03,187 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node2 (Follower): Commit index set to 1 11:33:03,187 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 11:33:03,187 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:33:03,187 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node2 (Follower): Setting last applied to 1 11:33:03,187 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 11:33:03,187 AM [test-pekko.actor.default-dispatcher-16] [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]]} 11:33:03,187 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 11:33:03,302 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 11:33:03,387 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader ending 11:33:03,387 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower210] 11:33:03,389 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector211#811963943] 11:33:03,389 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 11:33:03,389 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 11:33:03,389 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 11:33:03,389 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector212#1722001185] 11:33:03,390 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 11:33:03,390 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 11:33:03,390 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 11:33:03,394 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout starting [WARN] [07/02/2025 11:33:03.395] [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@6eb8711f 11:33:03,398 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 11:33:03,398 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 11:33:03,398 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 11:33:03,400 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11313222433858075156/new-server/TermInfo.properties does not exist 11:33:03,400 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 11:33:03,400 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 11:33:03,403 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 11:33:03,403 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 11:33:03,403 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@880bfc5 11:33:03,404 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 11:33:03.405] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader216]: org.opendaylight.controller.cluster.common.actor.Monitor@565490ac 11:33:03,405 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:03,406 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 11:33:03,406 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:33:03,406 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 11:33:03,407 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11313222433858075156/leader/TermInfo.properties does not exist 11:33:03,407 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 11:33:03,407 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 11:33:03,410 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 11:33:03,410 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 11:33:03,410 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4edfc7cc 11:33:03,410 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 11:33:03,411 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 11:33:03,411 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 11:33:03,411 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] 11:33:03,411 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 11:33:03,411 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 11:33:03,411 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 11:33:03,411 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 11:33:03,411 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:33:03,411 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 11:33:03,411 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 11:33:03,412 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]] 11:33:03,412 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 11:33:03,531 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 11:33:03,534 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 11:33:03,534 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 11:33:03,534 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 11:33:03,534 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/02/2025 11:33:03.535] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server215] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 11:33:03,631 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 11:33:03,631 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] 11:33:03,632 AM [test-pekko.actor.default-dispatcher-16] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 11:33:03,632 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout ending 11:33:03,632 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower213] 11:33:03,633 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector214#681126859] 11:33:03,634 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server215] 11:33:03,634 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:33:03,634 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 11:33:03,635 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader216] 11:33:03,635 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 11:33:03,635 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks [INFO] [07/02/2025 11:33:03.637] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:33:03,637 AM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/02/2025 11:33:03.638] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.75:17355) [INFO] [07/02/2025 11:33:03.639] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.75:17355] - Exiting completed 11:33:03,639 AM [test-pekko.actor.default-dispatcher-16] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.75:17355] - Exiting completed [INFO] [07/02/2025 11:33:03.639] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.75:17355] - Shutting down... 11:33:03,639 AM [test-pekko.actor.default-dispatcher-16] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.75:17355] - Shutting down... [INFO] [07/02/2025 11:33:03.639] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.75:17355] - Successfully shut down 11:33:03,639 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.75:17355] - Successfully shut down [INFO] [07/02/2025 11:33:03.641] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.75:17355/system/remoting-terminator] Shutting down remote daemon. 11:33:03,641 AM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 11:33:03,641 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/02/2025 11:33:03.641] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.75:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports.