[DEBUG] [07/01/2025 08:35:24.737] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 08:35:24,738 AM [test-pekko.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/01/2025 08:35:24.738] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/01/2025 08:35:24.738] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/01/2025 08:35:24.752] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.43:17355] with UID [2416926349472443161] [INFO] [07/01/2025 08:35:24.753] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - Starting up, Pekko version [1.0.3] ... 08:35:24,755 AM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.43:17355] with UID [2416926349472443161] 08:35:24,755 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/01/2025 08:35:24.756] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/01/2025 08:35:24.756] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - Started up successfully [INFO] [07/01/2025 08:35:24.756] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/01/2025 08:35:24.756] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:35:24,759 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 08:35:24,759 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - Started up successfully 08:35:24,759 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 08:35:24,759 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:35:24,769 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress starting [WARN] [07/01/2025 08:35:24.772] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server109]: org.opendaylight.controller.cluster.common.actor.Monitor@39c2d4ae [INFO] [pekkoDeadLetter][07/01/2025 08:35:24.772] [test-pekko.actor.default-dispatcher-11] [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'. 08:35:24,772 AM [test-pekko.actor.default-dispatcher-5] [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'. 08:35:24,775 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:35:24,776 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: started executor 08:35:24,776 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: started executor 08:35:24,777 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/TermInfo.properties does not exist 08:35:24,777 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: no eligible files found 08:35:24,778 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:24,780 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:35:24,780 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:35:24,780 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1bcbc42c 08:35:24,781 AM [test-pekko.actor.default-dispatcher-5] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:35:24.783] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader110]: org.opendaylight.controller.cluster.common.actor.Monitor@59a2120e 08:35:24,783 AM [test-pekko.actor.default-dispatcher-5] [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'. [INFO] [pekkoDeadLetter][07/01/2025 08:35:24.783] [test-pekko.actor.default-dispatcher-5] [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'. 08:35:24,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:24,784 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:24,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 08:35:24,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 08:35:24,785 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/TermInfo.properties does not exist 08:35:24,785 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 08:35:24,785 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 08:35:24,787 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:24,787 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:24,787 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3822747d 08:35:24,787 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:35:24,898 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 08:35:24,908 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 08:35:24,909 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:35:24,909 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 08:35:24,909 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:35:24,909 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - leader: support() called 08:35:24,909 AM [leader-%d572749] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:24,909 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:35:24,912 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:24,912 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:35:24,912 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - leader: support() called 08:35:24,912 AM [leader-%d572750] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-3668CC0C.tmp 08:35:24,913 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:35:24,913 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:35:24,913 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:35:24,913 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:35:24,913 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:35:24,913 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server109), Chunk: 1/1 08:35:24,914 AM [leader-%d572750] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-3668CC0C.v1 08:35:24,915 AM [leader-%d572750] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-3668CC0C.v1 08:35:24,915 AM [leader-%d572750] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/TermInfo.properties 08:35:24,915 AM [leader-%d572750] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:24.912837644Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-3668CC0C.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:24,915 AM [leader-%d572750] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:24,915 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:24,915 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:35:24.912837644Z 08:35:24,915 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:35:24,915 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:35:24,959 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false], state: InstallingSnapshot 08:35:24,960 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 08:35:24,960 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 08:35:24,963 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:35:24,963 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]} 08:35:24,963 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 08:35:24,963 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:35:24,963 AM [test-pekko.actor.default-dispatcher-14] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:35:24,963 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} [WARN] [07/01/2025 08:35:24.963] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:35:24,964 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - new-server: support() called 08:35:24,964 AM [test-pekko.actor.default-dispatcher-11] [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'. [INFO] [pekkoDeadLetter][07/01/2025 08:35:24.964] [test-pekko.actor.default-dispatcher-4] [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'. 08:35:24,965 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:35:24,965 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:35:24,965 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - new-server: support() called 08:35:24,965 AM [new-server-%d487916] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-39898A33.tmp 08:35:24,967 AM [new-server-%d487916] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-39898A33.v1 08:35:24,967 AM [new-server-%d487916] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-39898A33.v1 08:35:24,967 AM [new-server-%d487916] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/TermInfo.properties 08:35:24,967 AM [new-server-%d487916] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:24.965315123Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-39898A33.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:24,968 AM [new-server-%d487916] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:35:24,968 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:35:24,968 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:35:24.965315123Z 08:35:24,968 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:35:24,969 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - new-server: support() called 08:35:24,969 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - new-server: applySnapshot called 08:35:24,969 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:35:24,969 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:35:24,969 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:35:24,969 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 08:35:24,970 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:35:24,971 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:35:24,971 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:35:24,971 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]]} 08:35:24,971 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} 08:35:24,972 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=4107fe5e-c560-4001-8ebf-1c731c46cfb5}, logIndex: 0, isSendImmediate: true 08:35:24,972 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:24,972 AM [leader-%d572751] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-39F630C7.tmp 08:35:24,972 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 08:35:24,972 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:35:24,973 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}]} 08:35:24,973 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}]} 08:35:24,973 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:35:24,973 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:35:24,973 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]]} 08:35:24,973 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} 08:35:24,973 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-3A09F5FA.tmp 08:35:24,974 AM [leader-%d572751] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-39F630C7.v1 08:35:24,975 AM [leader-%d572751] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-3668CC0C.v1 08:35:24,975 AM [leader-%d572751] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-39F630C7.v1 08:35:24,975 AM [leader-%d572751] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/TermInfo.properties 08:35:24,975 AM [leader-%d572751] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:24.912837644Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-3668CC0C.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:24,975 AM [leader-%d572751] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:24.972435655Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-39F630C7.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:24,975 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 08:35:24,975 AM [leader-%d572751] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:24,975 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-3A09F5FA.v1 08:35:24,976 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-3A09F5FA.v1 08:35:24,976 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:24,976 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-39898A33.v1 08:35:24,976 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/TermInfo.properties 08:35:24,976 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:24.965315123Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-39898A33.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:24,976 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} 08:35:24,976 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:24.973731322Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-3A09F5FA.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:24,976 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} 08:35:24,976 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:35:24,976 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:35:24,976 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} 08:35:24,976 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 [WARN] [07/01/2025 08:35:24.977] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:35:24,977 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]]} 08:35:24,977 AM [test-pekko.actor.default-dispatcher-4] [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'. [INFO] [pekkoDeadLetter][07/01/2025 08:35:24.977] [test-pekko.actor.default-dispatcher-11] [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'. 08:35:24,977 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 08:35:24,977 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 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [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]]} 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [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} 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=993b9b6e-a354-461e-87ef-2402cf527742}, logIndex: 1, isSendImmediate: true 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 08:35:24,977 AM [leader-%d572752] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-3A483181.tmp 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [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}]} 08:35:24,977 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:24,978 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 08:35:24,978 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 08:35:24,978 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 08:35:24,978 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}, JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:35:24,979 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Commit index set to 0 08:35:24,979 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:24,979 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:35:24,979 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 08:35:24,979 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 08:35:24,979 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]]} 08:35:24,979 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 08:35:24,979 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}]} 08:35:24,979 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:35:24,979 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:35:24,979 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]]} 08:35:24,979 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} 08:35:24,979 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-3A63E7F1.tmp 08:35:24,980 AM [leader-%d572752] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-3A483181.v1 08:35:24,981 AM [leader-%d572752] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-39F630C7.v1 08:35:24,981 AM [test-pekko.actor.default-dispatcher-4] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:626) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 08:35:24,981 AM [leader-%d572752] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/TermInfo.properties 08:35:24,981 AM [leader-%d572752] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-3A483181.v1 08:35:24,981 AM [leader-%d572752] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:24.972435655Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-39F630C7.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:24,981 AM [leader-%d572752] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:24.977809793Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/leader/snapshot-0000000068639DCC-3A483181.v1, size=100, entryCompress=NONE, stateCompress=NONE} 08:35:24,981 AM [leader-%d572752] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:24,981 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:24,981 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:24,984 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-3A63E7F1.v1 08:35:24,984 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-3A09F5FA.v1 08:35:24,984 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-3A63E7F1.v1 08:35:24,984 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/TermInfo.properties 08:35:24,984 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:24.973731322Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-3A09F5FA.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:24,985 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:24.979625969Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7376924264060414474/new-server/snapshot-0000000068639DCC-3A63E7F1.v1, size=100, entryCompress=NONE, stateCompress=NONE} 08:35:24,985 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} 08:35:24,985 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]] 08:35:24,985 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): Log size is now 2 08:35:24,985 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} 08:35:24,985 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [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]]} 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Commit index set to 1 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 08:35:24,985 AM [test-pekko.actor.default-dispatcher-5] [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]]} [ERROR] [07/01/2025 08:35:24.980] [test-pekko.actor.internal-dispatcher-3] [pekko://test/user/follower107] Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:626) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 08:35:25,29 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress ending 08:35:25,29 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower107] 08:35:25,40 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector108#-933289503] 08:35:25,40 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server109] 08:35:25,40 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:25,41 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:25,42 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader110] 08:35:25,42 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:25,42 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:25,43 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector111] 08:35:25,45 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer starting 08:35:25,47 AM [test-pekko.actor.default-dispatcher-5] [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'. [WARN] [07/01/2025 08:35:25.047] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader113]: org.opendaylight.controller.cluster.common.actor.Monitor@7098125c [INFO] [pekkoDeadLetter][07/01/2025 08:35:25.047] [test-pekko.actor.default-dispatcher-5] [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'. 08:35:25,48 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:25,48 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:25,48 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:25,48 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:25,50 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12403920970972143232/leader/TermInfo.properties does not exist 08:35:25,50 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: no eligible files found 08:35:25,50 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 08:35:25,54 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:25,54 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:25,54 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@15170eea 08:35:25,55 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 08:35:25,55 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:35:25,59 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='new-server'}, state: Idle 08:35:25,60 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer ending 08:35:25,60 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower112] 08:35:25,71 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader113] 08:35:25,71 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:25,71 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:25,74 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader starting 08:35:25,75 AM [test-pekko.actor.default-dispatcher-5] [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'. [WARN] [07/01/2025 08:35:25.075] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader115]: org.opendaylight.controller.cluster.common.actor.Monitor@3a15e6a4 [INFO] [pekkoDeadLetter][07/01/2025 08:35:25.075] [test-pekko.actor.default-dispatcher-5] [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'. 08:35:25,75 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:25,75 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:25,75 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:25,77 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9996751157190893750/leader/TermInfo.properties does not exist 08:35:25,77 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 08:35:25,77 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 08:35:25,83 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 08:35:25,83 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 08:35:25,83 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@72f29296 08:35:25,94 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 08:35:25,94 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 08:35:25,94 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader ending 08:35:25,94 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower114] 08:35:25,106 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader115] 08:35:25,106 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:25,106 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:25,108 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader starting [WARN] [07/01/2025 08:35:25.110] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader118]: org.opendaylight.controller.cluster.common.actor.Monitor@693b5971 [INFO] [pekkoDeadLetter][07/01/2025 08:35:25.110] [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'. 08:35:25,110 AM [test-pekko.actor.default-dispatcher-15] [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'. 08:35:25,110 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:25,110 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:25,110 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:35:25,110 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:35:25,112 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6504910810584743651/leader/TermInfo.properties does not exist 08:35:25,112 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:35:25,112 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:25,118 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:25,118 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:25,118 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6882b6d4 08:35:25,118 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 08:35:25,118 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:35:25.120] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower117]: org.opendaylight.controller.cluster.common.actor.Monitor@38ba29aa [INFO] [pekkoDeadLetter][07/01/2025 08:35:25.120] [test-pekko.actor.default-dispatcher-11] [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'. 08:35:25,120 AM [test-pekko.actor.default-dispatcher-5] [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'. 08:35:25,121 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:35:25,122 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: started executor 08:35:25,122 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: started executor 08:35:25,122 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 08:35:25,123 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6504910810584743651/follower/TermInfo.properties does not exist 08:35:25,124 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: no eligible files found 08:35:25,124 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 08:35:25,125 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true]] 08:35:25,125 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 08:35:25,125 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=follower, isVoting=true]]}, pending=true} 08:35:25,125 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=c39f3c30-c0d8-44de-8864-657f32318f26}, logIndex: 0, isSendImmediate: true 08:35:25,125 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:25,125 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:25,125 AM [leader-%d384307] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6504910810584743651/leader/snapshot-0000000068639DCD-07780796.tmp 08:35:25,125 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='leader'} 08:35:25,134 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:35:25,134 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:35:25,134 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1e49beb5 08:35:25,134 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 08:35:25,144 AM [leader-%d384307] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6504910810584743651/leader/snapshot-0000000068639DCD-07780796.v1 08:35:25,144 AM [leader-%d384307] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6504910810584743651/leader/snapshot-0000000068639DCD-07780796.v1 08:35:25,144 AM [leader-%d384307] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6504910810584743651/leader/TermInfo.properties 08:35:25,145 AM [leader-%d384307] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:25.125306774Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6504910810584743651/leader/snapshot-0000000068639DCD-07780796.v1, size=75, entryCompress=NONE, stateCompress=NONE} 08:35:25,145 AM [leader-%d384307] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:25,145 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:25,145 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 08:35:25,145 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:35:25,145 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 08:35:25,145 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:35:25,146 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:35:25,146 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:25,146 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower [WARN] [07/01/2025 08:35:25.146] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [WARN] [07/01/2025 08:35:25.146] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 08:35:25,146 AM [test-pekko.actor.default-dispatcher-14] [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}]} [INFO] [pekkoDeadLetter][07/01/2025 08:35:25.146] [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'. 08:35:25,146 AM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower117] was unhandled. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:35:25,146 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false}]} 08:35:25,146 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:35:25,146 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:35:25,147 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} [INFO] [pekkoDeadLetter][07/01/2025 08:35:25.146] [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. [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'. 08:35:25,147 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 08:35:25,147 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. [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'. 08:35:25,147 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6504910810584743651/follower/snapshot-0000000068639DCD-08C5196B.tmp 08:35:25,147 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:35:25,150 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6504910810584743651/follower/snapshot-0000000068639DCD-08C5196B.v1 08:35:25,150 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6504910810584743651/follower/snapshot-0000000068639DCD-08C5196B.v1 08:35:25,150 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6504910810584743651/follower/TermInfo.properties 08:35:25,150 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:25.147134827Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6504910810584743651/follower/snapshot-0000000068639DCD-08C5196B.v1, size=75, entryCompress=NONE, stateCompress=NONE} 08:35:25,150 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 08:35:25,150 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [] 08:35:25,150 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): Log size is now 1 08:35:25,151 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:35:25,151 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:35:25,151 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:35:25,151 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:35:25,151 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:35:25,151 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:35:25,151 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 08:35:25,151 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:25,151 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:35:25,151 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} has been successfully replicated to a majority of followers 08:35:25,151 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:25,151 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:35:25,151 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:35:25,151 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 08:35:25,151 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/01/2025 08:35:25.152] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/leader118] unhandled message from TestActor[pekko://test/user/leader118]: ServerRemoved [serverId=leader] 08:35:25,176 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader ending 08:35:25,176 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower116] 08:35:25,187 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader118] 08:35:25,188 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:25,188 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:25,188 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector119] 08:35:25,188 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector120#1701250193] 08:35:25,189 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower117] 08:35:25,189 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:35:25,189 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:35:25,192 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot starting [WARN] [07/01/2025 08:35:25.193] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server123]: org.opendaylight.controller.cluster.common.actor.Monitor@62a4b9a1 08:35:25,195 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:35:25,195 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 08:35:25,195 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 08:35:25,199 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17914564702186312808/new-server/TermInfo.properties does not exist 08:35:25,199 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 08:35:25,199 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 08:35:25,202 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:35:25,203 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:35:25,203 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@164bee9d 08:35:25,203 AM [test-pekko.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:35:25.204] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader124]: org.opendaylight.controller.cluster.common.actor.Monitor@7b3bb2d9 08:35:25,205 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:25,205 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:25,205 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 08:35:25,205 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 08:35:25,207 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17914564702186312808/leader/TermInfo.properties does not exist 08:35:25,207 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: no eligible files found 08:35:25,207 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:35:25,210 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:25,211 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:25,211 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6f6f8524 08:35:25,211 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:35:25,216 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true], state: Idle 08:35:25,217 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 08:35:25,217 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:35:25,217 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 08:35:25,217 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:35:25,217 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - leader: support() called 08:35:25,217 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:35:25,217 AM [leader-%d733551] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:25,218 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:25,218 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:35:25,218 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - leader: support() called 08:35:25,218 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:35:25,218 AM [leader-%d733552] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17914564702186312808/leader/snapshot-0000000068639DCD-0D035FDA.tmp 08:35:25,218 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:35:25,218 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:35:25,218 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:35:25,218 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:35:25,218 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server123), Chunk: 1/1 08:35:25,218 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 08:35:25,220 AM [leader-%d733552] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17914564702186312808/leader/snapshot-0000000068639DCD-0D035FDA.v1 08:35:25,221 AM [leader-%d733552] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17914564702186312808/leader/snapshot-0000000068639DCD-0D035FDA.v1 08:35:25,221 AM [leader-%d733552] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17914564702186312808/leader/TermInfo.properties 08:35:25,221 AM [leader-%d733552] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:25.218324954Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17914564702186312808/leader/snapshot-0000000068639DCD-0D035FDA.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:25,221 AM [leader-%d733552] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:25,221 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:25,221 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:35:25.218324954Z 08:35:25,221 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:35:25,221 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:35:25,223 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:35:25,223 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:35:25,223 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:35:25,223 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:35:25,223 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:35:25,223 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:35:25,223 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:35:25.223] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/new-server123] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:35:25,224 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:35:25,224 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:35:25,224 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: support() called 08:35:25,224 AM [new-server-%d987672] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17914564702186312808/new-server/snapshot-0000000068639DCD-0D6286FC.tmp 08:35:25,228 AM [new-server-%d987672] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17914564702186312808/new-server/snapshot-0000000068639DCD-0D6286FC.v1 08:35:25,228 AM [new-server-%d987672] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17914564702186312808/new-server/snapshot-0000000068639DCD-0D6286FC.v1 08:35:25,228 AM [new-server-%d987672] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17914564702186312808/new-server/TermInfo.properties 08:35:25,228 AM [new-server-%d987672] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:25.224560892Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17914564702186312808/new-server/snapshot-0000000068639DCD-0D6286FC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:25,228 AM [new-server-%d987672] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:35:25,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:35:25,228 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:35:25.224560892Z 08:35:25,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:35:25,228 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: support() called 08:35:25,229 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: applySnapshot called 08:35:25,229 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:35:25,229 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:35:25,229 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:35:25,229 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 08:35:25,229 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:35:25,267 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:35:25,267 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server new-server: not leader 08:35:26,831 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:35:26,832 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 08:35:26,832 AM [test-pekko.actor.default-dispatcher-4] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 08:35:26,832 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot ending 08:35:26,832 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower121] 08:35:26,844 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector122#1327349244] 08:35:26,844 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server123] 08:35:26,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:26,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:26,845 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader124] 08:35:26,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:26,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:26,845 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector125] 08:35:26,847 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected starting [WARN] [07/01/2025 08:35:26.849] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@41d2028 08:35:26,850 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 08:35:26,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: started executor 08:35:26,850 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 08:35:26.852] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@3830289 08:35:26,853 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 08:35:26,853 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node2: started executor 08:35:26,853 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node2: started executor 08:35:26,854 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2562537225539372096/node1/TermInfo.properties does not exist 08:35:26,854 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node1: no eligible files found 08:35:26,854 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:35:26,855 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:35:26,855 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:35:26,855 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:26,856 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2562537225539372096/node2/TermInfo.properties does not exist 08:35:26,856 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: no eligible files found 08:35:26,856 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:35:26,856 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:35:26,856 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 08:35:26,856 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 08:35:26,860 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:35:26,861 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:35:26,861 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@67a7c18f 08:35:26,861 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:35:26,861 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:35:26,861 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1899609d 08:35:26,963 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 08:35:26,968 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:35:26,968 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:35:26,968 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:35:26,969 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:26,969 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:35:26,969 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:35:26,972 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 08:35:26,972 AM [test-pekko.actor.default-dispatcher-11] [INFO] Candidate - node1 (Candidate): Starting new election term 2 08:35:26,972 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 08:35:26,972 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:35:27,14 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 08:35:27,14 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [] 08:35:27,17 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=node2 08:35:27,17 AM [test-pekko.actor.default-dispatcher-4] [INFO] Candidate - node2 (Candidate): Starting new election term 2 08:35:27,17 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:35:27,17 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Candidate - node2 (Candidate): Received ElectionTimeout 08:35:27,17 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 08:35:27,17 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:27,18 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:35:27,18 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received AppendEntries{term=2, leaderId=node2, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}, my term is 2 08:35:27,18 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node1 (Candidate): handleAppendEntries: AppendEntries{term=2, leaderId=node2, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 08:35:27,18 AM [test-pekko.actor.default-dispatcher-11] [INFO] Candidate - node1 (Candidate): New Leader node2 sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:35:27,18 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:35:27,131 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 08:35:27,132 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node2 elected 08:35:27,132 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 08:35:27,132 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: Forwarding ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] to new leader 08:35:27,132 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:27,132 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]] 08:35:27,132 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:27,132 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node1: getLeaderAddress leaderId = node2 peerAddress = pekko://test/user/node2 08:35:27,132 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/node2)] 08:35:27,132 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle [WARN] [07/01/2025 08:35:27.132] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 08:35:27,132 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:35:27,132 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=pekko://test/user/node1, votingState=VOTING]] 08:35:27,132 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 08:35:27,133 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node2: Persist data index=1 term=2 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:35:27,133 AM [test-pekko.actor.default-dispatcher-14] [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} 08:35:27,133 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=7375bfd1-39fb-4739-865e-f612b30daf6f}, logIndex: 1, isSendImmediate: true 08:35:27,133 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:27,133 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 08:35:27,133 AM [test-pekko.actor.default-dispatcher-14] [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}]} 08:35:27,133 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 08:35:27,133 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:27,134 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 1 08:35:27,134 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:35:27,134 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:35:27,134 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:27,134 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 08:35:27,134 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - node1 (Follower): Log size is now 2 08:35:27,134 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:27,134 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 08:35:27,134 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 1, nextIndex: 2 08:35:27,135 AM [test-pekko.actor.default-dispatcher-14] [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 08:35:27,135 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:27,136 AM [test-pekko.actor.default-dispatcher-14] [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} 08:35:27,136 AM [test-pekko.actor.default-dispatcher-14] [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 08:35:27,136 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 08:35:27,136 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 0 08:35:27,136 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 08:35:27,136 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 08:35:27,136 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 1 08:35:27,136 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 08:35:27,136 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:35:27,136 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 08:35:27,136 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 2 08:35:27,136 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 08:35:27,136 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} [WARN] [07/01/2025 08:35:27.137] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 08:35:27,251 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): Commit index set to 1 08:35:27,251 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 08:35:27,251 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 08:35:27,251 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 08:35:27,251 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 08:35:27,251 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 08:35:27,252 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 08:35:27,252 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 08:35:27,252 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node1: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:35:27,252 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 08:35:27,252 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 2 08:35:27,371 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 08:35:27,437 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected ending 08:35:27,437 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower126] 08:35:27,448 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector127#1007243872] 08:35:27,448 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 08:35:27,449 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:35:27,449 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:35:27,449 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector128#-1218197133] 08:35:27,449 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 08:35:27,450 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:35:27,450 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:35:27,452 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout starting [WARN] [07/01/2025 08:35:27.454] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server131]: org.opendaylight.controller.cluster.common.actor.Monitor@36ce269a 08:35:27,455 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:35:27,455 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 08:35:27,455 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 08:35:27,456 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14517892383585893025/new-server/TermInfo.properties does not exist 08:35:27,456 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: no eligible files found 08:35:27,456 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:27,460 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:35:27,460 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:35:27,460 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@11e96d9a 08:35:27,460 AM [test-pekko.actor.default-dispatcher-4] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:35:27.461] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader132]: org.opendaylight.controller.cluster.common.actor.Monitor@4a8400f2 08:35:27,461 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:27,461 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:27,461 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 08:35:27,461 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 08:35:27,463 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14517892383585893025/leader/TermInfo.properties does not exist 08:35:27,463 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: no eligible files found 08:35:27,463 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:27,465 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:27,465 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:27,465 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3f9fde82 08:35:27,465 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:35:27,472 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true], state: Idle 08:35:27,472 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 08:35:27,472 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:35:27,472 AM [test-pekko.actor.default-dispatcher-17] [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 08:35:27,472 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:35:27,472 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - leader: support() called 08:35:27,473 AM [leader-%d549399] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:27,473 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:35:27,473 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:27,473 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:35:27,473 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - leader: support() called 08:35:27,473 AM [leader-%d549400] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14517892383585893025/leader/snapshot-0000000068639DCF-1C3B777E.tmp 08:35:27,474 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:35:27,474 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:35:27,474 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:35:27,474 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:35:27,474 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:35:27,474 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server131), Chunk: 1/1 08:35:27,474 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=bogus] 08:35:27,474 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server bogus: server Id doesn't match 08:35:27,476 AM [leader-%d549400] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14517892383585893025/leader/snapshot-0000000068639DCF-1C3B777E.v1 08:35:27,476 AM [leader-%d549400] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14517892383585893025/leader/snapshot-0000000068639DCF-1C3B777E.v1 08:35:27,476 AM [leader-%d549400] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14517892383585893025/leader/TermInfo.properties 08:35:27,476 AM [leader-%d549400] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:27.473659262Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14517892383585893025/leader/snapshot-0000000068639DCF-1C3B777E.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:27,476 AM [leader-%d549400] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:27,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:27,476 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:35:27.473659262Z 08:35:27,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:35:27,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:35:27,592 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:27,595 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:35:27,595 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:35:27,595 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 [WARN] [07/01/2025 08:35:27.595] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server131] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:35:27,691 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:35:27,691 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 08:35:27,691 AM [test-pekko.actor.default-dispatcher-15] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 08:35:27,692 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout ending 08:35:27,692 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower129] 08:35:27,703 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector130#-1196691581] 08:35:27,703 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server131] 08:35:27,704 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:27,704 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:27,704 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader132] 08:35:27,704 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:27,704 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:27,707 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower starting [WARN] [07/01/2025 08:35:27.709] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server135]: org.opendaylight.controller.cluster.common.actor.Monitor@18db6da8 08:35:27,710 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:35:27,710 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: started executor 08:35:27,710 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: started executor 08:35:27,712 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/TermInfo.properties does not exist 08:35:27,712 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: no eligible files found 08:35:27,712 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:27,715 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:35:27,715 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:35:27,715 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@61678866 08:35:27,715 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:35:27,715 AM [test-pekko.actor.default-dispatcher-4] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:35:27.716] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader136]: org.opendaylight.controller.cluster.common.actor.Monitor@6e80627 08:35:27,716 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:27,716 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:27,716 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:27,716 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:27,717 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/TermInfo.properties does not exist 08:35:27,717 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 08:35:27,717 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 08:35:27,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:27,720 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:27,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4ac5764e 08:35:27,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:35:27,727 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true], state: Idle 08:35:27,727 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 08:35:27,728 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:27,728 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:35:27,728 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - leader: support() called 08:35:27,728 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:35:27,729 AM [leader-%d602610] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:27,729 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:27,729 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 08:35:27,729 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - leader: support() called 08:35:27,729 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:35:27,729 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:35:27,730 AM [leader-%d602611] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/snapshot-0000000068639DCF-2B805C48.tmp 08:35:27,730 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:35:27,730 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:35:27,730 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:35:27,730 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server135), Chunk: 1/1 08:35:27,730 AM [test-pekko.actor.default-dispatcher-15] [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 08:35:27,733 AM [leader-%d602611] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/snapshot-0000000068639DCF-2B805C48.v1 08:35:27,733 AM [leader-%d602611] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/snapshot-0000000068639DCF-2B805C48.v1 08:35:27,733 AM [leader-%d602611] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/TermInfo.properties 08:35:27,733 AM [leader-%d602611] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:27.729832520Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/snapshot-0000000068639DCF-2B805C48.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:27,733 AM [leader-%d602611] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:27,734 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:27,734 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:35:27.729832520Z 08:35:27,734 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:35:27,734 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:35:27,734 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:35:27,734 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:35:27,734 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 1 08:35:27,734 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:35:27,734 AM [test-pekko.actor.default-dispatcher-15] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:35:27,734 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:35:27,734 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:35:27.734] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:35:27,735 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:35:27,735 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:35:27,735 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called 08:35:27,735 AM [new-server-%d516699] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/snapshot-0000000068639DCF-2BDB66BC.tmp 08:35:27,738 AM [new-server-%d516699] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/snapshot-0000000068639DCF-2BDB66BC.v1 08:35:27,738 AM [new-server-%d516699] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/snapshot-0000000068639DCF-2BDB66BC.v1 08:35:27,738 AM [new-server-%d516699] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/TermInfo.properties 08:35:27,738 AM [new-server-%d516699] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:27.735798972Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/snapshot-0000000068639DCF-2BDB66BC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:27,738 AM [new-server-%d516699] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:35:27,739 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:35:27,739 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:35:27.735798972Z 08:35:27,739 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:35:27,739 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: support() called 08:35:27,739 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: applySnapshot called 08:35:27,739 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:35:27,740 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:35:27,740 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:35:27,740 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 2 08:35:27,740 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:35:27,740 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 08:35:27,740 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:35:27,740 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:35:27,740 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Persist data index=2 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:35:27,740 AM [test-pekko.actor.default-dispatcher-15] [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} 08:35:27,740 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=9aaf6daf-7c80-481a-a400-e28385cecaad}, logIndex: 2, isSendImmediate: true 08:35:27,740 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:27,740 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 08:35:27,740 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 2 is present for follower new-server 08:35:27,740 AM [leader-%d602612] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/snapshot-0000000068639DCF-2C2366E0.tmp 08:35:27,740 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=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}]} 08:35:27,740 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 08:35:27,741 AM [test-pekko.actor.default-dispatcher-15] [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}]} 08:35:27,741 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:35:27,741 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 08:35:27,741 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:35:27,741 AM [test-pekko.actor.default-dispatcher-15] [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} 08:35:27,741 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/snapshot-0000000068639DCF-2C2D54B9.tmp 08:35:27,743 AM [leader-%d602612] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/snapshot-0000000068639DCF-2C2366E0.v1 08:35:27,743 AM [leader-%d602612] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/snapshot-0000000068639DCF-2B805C48.v1 08:35:27,743 AM [leader-%d602612] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/snapshot-0000000068639DCF-2C2366E0.v1 08:35:27,743 AM [leader-%d602612] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/TermInfo.properties 08:35:27,743 AM [leader-%d602612] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:27.729832520Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/snapshot-0000000068639DCF-2B805C48.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:27,743 AM [leader-%d602612] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:27.740517600Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/leader/snapshot-0000000068639DCF-2C2366E0.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:27,743 AM [leader-%d602612] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:27,743 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:27,743 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:27,744 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/snapshot-0000000068639DCF-2C2D54B9.v1 08:35:27,744 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/snapshot-0000000068639DCF-2C2D54B9.v1 08:35:27,744 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/snapshot-0000000068639DCF-2BDB66BC.v1 08:35:27,744 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/TermInfo.properties 08:35:27,744 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:27.735798972Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/snapshot-0000000068639DCF-2BDB66BC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:27,744 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:27.741168313Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5508014043878734490/new-server/snapshot-0000000068639DCF-2C2D54B9.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:27,744 AM [test-pekko.actor.default-dispatcher-15] [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} 08:35:27,744 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:35:27,744 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:35:27,744 AM [test-pekko.actor.default-dispatcher-15] [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} 08:35:27,744 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected 1) 08:35:27,745 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 2, nextIndex: 3 08:35:27,745 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 08:35:27,745 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 2 08:35:27,745 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 1 to 2 08:35:27,745 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - leader: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:35:27,745 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 [WARN] [07/01/2025 08:35:27.745] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:35:27,745 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 08:35:27,745 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:27,745 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Commit index set to 2 08:35:27,745 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 08:35:27,745 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:35:27,745 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 2 08:35:27,745 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 1 to 2 08:35:27,745 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - new-server: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:35:27,778 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower ending 08:35:27,779 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower133] 08:35:27,790 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector134#597781253] 08:35:27,790 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server135] 08:35:27,790 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:27,790 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:27,791 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader136] 08:35:27,791 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:27,791 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:27,791 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector137] 08:35:27,794 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout starting [WARN] [07/01/2025 08:35:27.796] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@659de3eb 08:35:27,797 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 08:35:27,797 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node1: started executor 08:35:27,797 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 08:35:27.799] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@13cb2d2e 08:35:27,799 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13154233794455915126/node1/TermInfo.properties does not exist 08:35:27,799 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: no eligible files found 08:35:27,799 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:35:27,800 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:35:27,800 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING]] 08:35:27,800 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:35:27,801 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 08:35:27,801 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node2: started executor 08:35:27,801 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node2: started executor 08:35:27,802 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:35:27,802 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:35:27,802 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7a5472cc 08:35:27,803 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13154233794455915126/node2/TermInfo.properties does not exist 08:35:27,803 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node2: no eligible files found 08:35:27,803 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:35:27,803 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:35:27,803 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PeerInfos - node2: Updated server config: isVoting: false, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 08:35:27,803 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 1, size: 1 08:35:27,803 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 1 08:35:27,803 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 1 08:35:27,803 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - node2: Recovery completed in 42.40 μs - Switching actor to Follower - last log index = 1, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 2 08:35:27,805 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:35:27,806 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:35:27,806 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7533b7e9 08:35:27,812 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 08:35:27,812 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:35:27,812 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:35:27,812 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:35:27,812 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:27,812 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:35:27,812 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:35:27,815 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 08:35:27,815 AM [test-pekko.actor.default-dispatcher-14] [INFO] Candidate - node1 (Candidate): Starting new election term 2 08:35:27,815 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 08:35:27,815 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:35:27,815 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:35:27,815 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 08:35:27,815 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 08:35:27,815 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:27,817 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=null 08:35:27,818 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 1, lastTerm: 1 08:35:27,818 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 08:35:27,818 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=false}, my term is 2 08:35:27,818 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=false}, current voteCount: 1 08:35:28,131 AM [test-pekko.actor.default-dispatcher-4] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 08:35:28,131 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=NON_VOTING]] 08:35:28,132 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 08:35:28,132 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - node1: Found server ActorSelection[Anchor(pekko://test/), Path(/user/node2)] to forward to 08:35:28,132 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]], state: Idle 08:35:28,133 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:35:28,133 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - node2: Sending local ElectionTimeout to start leader election 08:35:28,133 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=VOTING]] 08:35:28,133 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 08:35:28,133 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [node1] 08:35:28,136 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node2 08:35:28,136 AM [test-pekko.actor.default-dispatcher-14] [INFO] Candidate - node2 (Candidate): Starting new election term 3 08:35:28,136 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Candidate - node2 (Candidate): Sending RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} to peer node1 08:35:28,137 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 08:35:28,137 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - node1 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:35:28,137 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - node1 (Follower): Cluster state: [] 08:35:28,137 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - node1 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} with higher term appears reachable, updating term. 08:35:28,137 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:28,139 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=null 08:35:28,139 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - node1 (Follower): In requestVote: RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 08:35:28,142 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node2 08:35:28,142 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - node1 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 08:35:28,142 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node2 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 08:35:28,142 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node2 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 08:35:28,142 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 08:35:28,142 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:28,142 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:35:28,142 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: New leader node2 elected 08:35:28,143 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 08:35:28,143 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node2: Persist data index=2 term=3 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:35:28,143 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true} 08:35:28,143 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 08:35:28,143 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=856ee0dc-778e-4055-9012-85c0045b0b35}, logIndex: 2, isSendImmediate: true 08:35:28,143 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:35:28.143] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 08:35:28,143 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]] 08:35:28,143 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) [WARN] [07/01/2025 08:35:28.143] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 08:35:28,144 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 08:35:28,144 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 3 08:35:28,144 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 08:35:28,144 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 08:35:28,144 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Sending AppendEntries to follower node1: AppendEntries{term=3, leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=2, pending=false}, JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true}]} 08:35:28,144 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 08:35:28,144 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:28,144 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 2 08:35:28,144 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:35:28,144 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - node1 (Follower): Append entry to log 2 08:35:28,144 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=1, term=1, command=2, pending=false} 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:28,145 AM [test-pekko.actor.default-dispatcher-17] [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} 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - node1 (Follower): Log size is now 3 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - node1 (Follower): Commit index set to 1 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 08:35:28,145 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 2, nextIndex: 3 08:35:28,145 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=false]]} 08:35:28,145 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 2 08:35:28,145 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 1 to 2 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 08:35:28,145 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - node1: Applying state for log index 1 data 2 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - node1: applyState called: 2 08:35:28,145 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=2 08:35:28,145 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 1 for term 3 08:35:28,145 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 08:35:28,145 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorVotingConfigSupport - node2: VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} has been successfully replicated to a majority of followers 08:35:28,145 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 3 08:35:28,146 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=1, command=2, pending=false} 08:35:28,146 AM [test-pekko.actor.default-dispatcher-17] [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} 08:35:28,146 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): Commit index set to 2 08:35:28,146 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 08:35:28,146 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:35:28,146 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 2 08:35:28,146 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 1 to 2 08:35:28,146 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node1: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:35:28,146 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=2 08:35:28,146 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 1 for term 3 08:35:28,262 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 08:35:28,348 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout ending 08:35:28,348 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower138] 08:35:28,359 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector139#852415223] 08:35:28,359 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 08:35:28,360 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:35:28,360 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:35:28,360 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector140#1523650992] 08:35:28,360 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 08:35:28,360 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:35:28,361 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:35:28,363 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached starting [WARN] [07/01/2025 08:35:28.365] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server143]: org.opendaylight.controller.cluster.common.actor.Monitor@b6ee0e9 08:35:28,366 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:35:28,367 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 08:35:28,367 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 08:35:28,368 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/new-server/TermInfo.properties does not exist 08:35:28,368 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: no eligible files found 08:35:28,368 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:28,372 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:35:28,372 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:35:28,372 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@320eb65f 08:35:28,372 AM [test-pekko.actor.default-dispatcher-4] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:35:28.373] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader144]: org.opendaylight.controller.cluster.common.actor.Monitor@1eb65808 08:35:28,373 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:28,373 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:28,373 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 08:35:28,374 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 08:35:28,375 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/TermInfo.properties does not exist 08:35:28,375 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: no eligible files found 08:35:28,375 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:28,377 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:28,377 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:28,377 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1506722a 08:35:28,378 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:35:28,378 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true], state: Idle 08:35:28,378 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 08:35:28,378 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:35:28,378 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:28,378 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:35:28,378 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - leader: support() called 08:35:28,378 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:35:28,379 AM [leader-%d54500] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:28,379 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:28,379 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:35:28,379 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - leader: support() called 08:35:28,379 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:35:28,379 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:35:28,379 AM [leader-%d54501] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/snapshot-0000000068639DD0-169D765F.tmp 08:35:28,379 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:35:28,379 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:35:28,379 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:35:28,379 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server143), Chunk: 1/1 08:35:28,379 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 08:35:28,381 AM [leader-%d54501] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/snapshot-0000000068639DD0-169D765F.v1 08:35:28,381 AM [leader-%d54501] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/snapshot-0000000068639DD0-169D765F.v1 08:35:28,382 AM [leader-%d54501] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/TermInfo.properties 08:35:28,382 AM [leader-%d54501] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:28.379418207Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/snapshot-0000000068639DD0-169D765F.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:28,382 AM [leader-%d54501] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:28,382 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:28,382 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:35:28.379418207Z 08:35:28,382 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:35:28,382 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:35:28,382 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:35:28,382 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:35:28,382 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:35:28,382 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:35:28,382 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader [WARN] [07/01/2025 08:35:28.382] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/new-server143] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:35:28,383 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:35:28,383 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: support() called 08:35:28,383 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:35:28,383 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:35:28,383 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: support() called 08:35:28,383 AM [new-server-%d452496] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/new-server/snapshot-0000000068639DD0-16E059E7.tmp 08:35:28,385 AM [new-server-%d452496] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/new-server/snapshot-0000000068639DD0-16E059E7.v1 08:35:28,385 AM [new-server-%d452496] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/new-server/snapshot-0000000068639DD0-16E059E7.v1 08:35:28,386 AM [new-server-%d452496] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/new-server/TermInfo.properties 08:35:28,386 AM [new-server-%d452496] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:28.383801831Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/new-server/snapshot-0000000068639DD0-16E059E7.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:28,386 AM [new-server-%d452496] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:35:28,386 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:35:28,386 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:35:28.383801831Z 08:35:28,386 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:35:28,386 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: support() called 08:35:28,386 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - new-server: applySnapshot called 08:35:28,386 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:35:28,386 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:35:28,386 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:35:28,386 AM [test-pekko.actor.default-dispatcher-4] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 08:35:28,386 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:35:28,426 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:35:28,426 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:35:28,426 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:35:28,426 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:28,427 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=37b4665e-0c0c-4f17-b913-d8429ad6a98f}, logIndex: 0, isSendImmediate: true 08:35:28,427 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:28,427 AM [leader-%d54502] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/snapshot-0000000068639DD0-19716912.tmp 08:35:28,427 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:28,427 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:35:28,427 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:28,427 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 08:35:28,430 AM [leader-%d54502] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/snapshot-0000000068639DD0-19716912.v1 08:35:28,430 AM [leader-%d54502] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/snapshot-0000000068639DD0-19716912.v1 08:35:28,431 AM [leader-%d54502] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/snapshot-0000000068639DD0-169D765F.v1 08:35:28,431 AM [leader-%d54502] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/TermInfo.properties 08:35:28,431 AM [leader-%d54502] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:28.379418207Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/snapshot-0000000068639DD0-169D765F.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:28,431 AM [leader-%d54502] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:28.426862866Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12795308066929985380/leader/snapshot-0000000068639DD0-19716912.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:28,431 AM [leader-%d54502] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:28,431 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:28,431 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:28,476 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 08:35:28,476 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 08:35:28,491 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:35:28,611 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:35:28,611 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:28,731 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:35:28,731 AM [test-pekko.actor.default-dispatcher-17] [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}]} 08:35:28,851 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:35:28,851 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:28,971 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:35:28,971 AM [test-pekko.actor.default-dispatcher-17] [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}]} 08:35:29,91 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:35:29,91 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:29,211 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:35:29,211 AM [test-pekko.actor.default-dispatcher-17] [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}]} 08:35:29,331 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:35:29,331 AM [test-pekko.actor.default-dispatcher-17] [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}]} 08:35:30,441 AM [test-pekko.actor.default-dispatcher-4] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured while replicating the new server configuration for new-server 08:35:30,441 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 08:35:30,441 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 08:35:30,441 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 08:35:30,442 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached ending 08:35:30,442 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower141] 08:35:30,453 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector142#-2118460204] 08:35:30,453 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server143] 08:35:30,454 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:30,454 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:30,454 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader144] 08:35:30,454 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:30,454 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:30,455 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector145] 08:35:30,455 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-serverCollector146] 08:35:30,458 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers starting [WARN] [07/01/2025 08:35:30.459] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader148]: org.opendaylight.controller.cluster.common.actor.Monitor@42c478a2 08:35:30,459 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:30,460 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:30,460 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: started executor 08:35:30,460 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: started executor 08:35:30,461 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7779080012990677267/leader/TermInfo.properties does not exist 08:35:30,461 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: no eligible files found 08:35:30,461 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:35:30,489 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:30,489 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:30,489 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@36721df7 08:35:30,490 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:35:30,490 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 08:35:30,490 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers ending 08:35:30,490 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower147] 08:35:30,501 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader148] 08:35:30,501 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:30,501 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:30,504 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete starting [WARN] [07/01/2025 08:35:30.507] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server151]: org.opendaylight.controller.cluster.common.actor.Monitor@67cd2460 08:35:30,508 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:35:30,508 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 08:35:30,508 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 08:35:30,509 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6004167883176147153/new-server/TermInfo.properties does not exist 08:35:30,509 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: no eligible files found 08:35:30,509 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:35:30,513 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:35:30,513 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:35:30,513 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2967e105 08:35:30,513 AM [test-pekko.actor.default-dispatcher-17] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:35:30.514] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader152]: org.opendaylight.controller.cluster.common.actor.Monitor@a929601 08:35:30,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:30,515 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:30,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 08:35:30,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 08:35:30,517 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6004167883176147153/leader/TermInfo.properties does not exist 08:35:30,517 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:35:30,517 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:30,519 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:30,519 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:30,519 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4858f06e 08:35:30,519 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:35:30,519 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 08:35:30,519 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:35:30,519 AM [test-pekko.actor.default-dispatcher-5] [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] 08:35:30,519 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 08:35:30,519 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:35:30,519 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - leader: support() called 08:35:30,520 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 08:35:30,520 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:35:30,520 AM [leader-%d508427] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6004167883176147153/leader/snapshot-0000000068639DD2-1F07C986.tmp 08:35:30,522 AM [leader-%d508427] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6004167883176147153/leader/snapshot-0000000068639DD2-1F07C986.v1 08:35:30,522 AM [leader-%d508427] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6004167883176147153/leader/snapshot-0000000068639DD2-1F07C986.v1 08:35:30,523 AM [leader-%d508427] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6004167883176147153/leader/TermInfo.properties 08:35:30,523 AM [leader-%d508427] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:30.520604038Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6004167883176147153/leader/snapshot-0000000068639DD2-1F07C986.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:30,523 AM [leader-%d508427] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:30,523 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:30,527 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true], state: Idle 08:35:30,527 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 08:35:30,527 AM [test-pekko.actor.default-dispatcher-5] [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]] 08:35:30,527 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 08:35:30,631 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:30,631 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:30,631 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:35:30.520604038Z 08:35:30,631 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:35:30,632 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 08:35:30,632 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: No longer the leader 08:35:30,632 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:35:30,632 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:35:30,632 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 08:35:30,632 AM [test-pekko.actor.default-dispatcher-5] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 08:35:30,632 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete ending 08:35:30,632 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower149] 08:35:30,643 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector150#1858439988] 08:35:30,643 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server151] 08:35:30,643 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:30,643 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:30,643 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader152] 08:35:30,644 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:30,644 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:30,646 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting starting [WARN] [07/01/2025 08:35:30.647] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server155]: org.opendaylight.controller.cluster.common.actor.Monitor@1b7ad5bc 08:35:30,647 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:35:30,648 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:35:30,648 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:35:30,649 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/TermInfo.properties does not exist 08:35:30,649 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: no eligible files found 08:35:30,649 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:30,652 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:35:30,652 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:35:30,652 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7227d739 08:35:30,653 AM [test-pekko.actor.default-dispatcher-4] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:35:30.654] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader156]: org.opendaylight.controller.cluster.common.actor.Monitor@2d487f0d 08:35:30,654 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:30,654 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:30,655 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: started executor 08:35:30,655 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: started executor 08:35:30,656 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/TermInfo.properties does not exist 08:35:30,656 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:35:30,656 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:30,658 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:30,658 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:30,658 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@80dd586 08:35:30,658 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:35:30,666 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false], state: Idle 08:35:30,666 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 08:35:30,666 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 08:35:30,666 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:35:30,666 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:35:30,666 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:30,666 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=ab394f31-fb0f-4839-a7fc-221fcb55720a}, logIndex: 0, isSendImmediate: true 08:35:30,666 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:35:30,666 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:35:30,666 AM [leader-%d271842] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/snapshot-0000000068639DD2-27BB43D3.tmp 08:35:30,666 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:35:30,666 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:30,667 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:30,667 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 08:35:30,667 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:30,669 AM [leader-%d271842] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/snapshot-0000000068639DD2-27BB43D3.v1 08:35:30,669 AM [leader-%d271842] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/snapshot-0000000068639DD2-27BB43D3.v1 08:35:30,669 AM [leader-%d271842] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/TermInfo.properties 08:35:30,669 AM [leader-%d271842] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:30.666584019Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/snapshot-0000000068639DD2-27BB43D3.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:30,669 AM [leader-%d271842] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:30,669 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:30,670 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:30,670 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:35:30,670 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/01/2025 08:35:30.670] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:35:30,671 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 08:35:30,671 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:30,671 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:35:30,671 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:30,671 AM [test-pekko.actor.default-dispatcher-15] [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}]} 08:35:30,671 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:35:30,671 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:35:30,671 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:35:30,671 AM [test-pekko.actor.default-dispatcher-15] [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} 08:35:30,671 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/snapshot-0000000068639DD2-2806BAA7.tmp 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/snapshot-0000000068639DD2-2806BAA7.v1 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/snapshot-0000000068639DD2-2806BAA7.v1 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/TermInfo.properties 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:30.671529639Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/snapshot-0000000068639DD2-2806BAA7.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [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} 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Commit index set to 0 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [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} 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 08:35:30,674 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:35:30,674 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 08:35:30,674 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:35:30.674] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:35:30,781 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:30,902 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:31,22 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:31,141 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:31,222 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false], state: Idle 08:35:31,222 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 08:35:31,222 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 08:35:31,222 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:35:31,222 AM [test-pekko.actor.default-dispatcher-4] [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]]} 08:35:31,222 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:31,222 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=fbf056a0-e539-40bc-bc67-3f1f6fbc1a00}, logIndex: 1, isSendImmediate: true 08:35:31,223 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 08:35:31,223 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 08:35:31,223 AM [leader-%d271843] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/snapshot-0000000068639DD3-0D47E928.tmp 08:35:31,223 AM [test-pekko.actor.default-dispatcher-4] [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]]} 08:35:31,223 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:31,223 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 08:35:31,223 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:31,223 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:31,223 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 08:35:31,223 AM [test-pekko.actor.default-dispatcher-17] [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}]} 08:35:31,223 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:35:31,223 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:35:31,223 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:31,223 AM [test-pekko.actor.default-dispatcher-17] [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]]} 08:35:31,223 AM [test-pekko.actor.default-dispatcher-17] [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} 08:35:31,223 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/snapshot-0000000068639DD3-0D57F760.tmp 08:35:31,223 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 08:35:31,224 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 08:35:31,225 AM [test-pekko.actor.default-dispatcher-5] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:626) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 08:35:31,224 AM [test-pekko.actor.default-dispatcher-4] [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/01/2025 08:35:31.224] [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:626) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 08:35:31,226 AM [leader-%d271843] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/snapshot-0000000068639DD3-0D47E928.v1 08:35:31,226 AM [leader-%d271843] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/snapshot-0000000068639DD2-27BB43D3.v1 08:35:31,227 AM [leader-%d271843] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/TermInfo.properties 08:35:31,227 AM [leader-%d271843] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/snapshot-0000000068639DD3-0D47E928.v1 08:35:31,227 AM [leader-%d271843] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:30.666584019Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/snapshot-0000000068639DD2-27BB43D3.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:31,227 AM [leader-%d271843] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.222816552Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/leader/snapshot-0000000068639DD3-0D47E928.v1, size=100, entryCompress=NONE, stateCompress=NONE} 08:35:31,227 AM [leader-%d271843] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:31,227 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:31,227 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/snapshot-0000000068639DD3-0D57F760.v1 08:35:31,227 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=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:35:31,227 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/snapshot-0000000068639DD2-2806BAA7.v1 08:35:31,227 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/snapshot-0000000068639DD3-0D57F760.v1 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/TermInfo.properties 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:30.671529639Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/snapshot-0000000068639DD2-2806BAA7.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.223868768Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7375041587883466393/new-server/snapshot-0000000068639DD3-0D57F760.v1, size=100, entryCompress=NONE, stateCompress=NONE} 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [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} 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [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]] 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Log size is now 2 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Commit index set to 1 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [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} 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 08:35:31,228 AM [test-pekko.actor.default-dispatcher-17] [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]]} 08:35:31,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 08:35:31,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:31,274 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting ending 08:35:31,274 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower153] 08:35:31,285 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector154#1334177908] 08:35:31,285 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server155] 08:35:31,286 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:31,286 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:31,286 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader156] 08:35:31,286 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:31,286 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:31,286 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector157] 08:35:31,290 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress starting [WARN] [07/01/2025 08:35:31.293] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server160]: org.opendaylight.controller.cluster.common.actor.Monitor@30ac0fff 08:35:31,293 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:35:31,293 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 08:35:31,293 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 08:35:31,295 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/TermInfo.properties does not exist 08:35:31,295 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: no eligible files found 08:35:31,295 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:31,298 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:35:31,298 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:35:31,298 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@622654fb [WARN] [07/01/2025 08:35:31.299] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader161]: org.opendaylight.controller.cluster.common.actor.Monitor@25c3fff6 08:35:31,299 AM [test-pekko.actor.default-dispatcher-4] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:35:31,299 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:31,299 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:31,300 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:31,300 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:31,300 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/TermInfo.properties does not exist 08:35:31,300 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: no eligible files found 08:35:31,301 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:31,303 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:31,303 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:31,303 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@617ef701 08:35:31,303 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:35:31,303 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 08:35:31,303 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:35:31,303 AM [test-pekko.actor.default-dispatcher-4] [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] 08:35:31,303 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 08:35:31,303 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:35:31,303 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - leader: support() called 08:35:31,304 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 08:35:31,304 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:35:31,304 AM [leader-%d133249] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-1220259C.tmp 08:35:31,305 AM [leader-%d133249] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-1220259C.v1 08:35:31,306 AM [leader-%d133249] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-1220259C.v1 08:35:31,306 AM [leader-%d133249] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/TermInfo.properties 08:35:31,306 AM [leader-%d133249] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.304096668Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-1220259C.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:31,306 AM [leader-%d133249] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:31,306 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:31,404 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true], state: Idle 08:35:31,404 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 08:35:31,404 AM [test-pekko.actor.default-dispatcher-4] [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]] 08:35:31,404 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 08:35:31,404 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:31,405 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:31,405 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:35:31.304096668Z 08:35:31,405 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:35:31,405 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 08:35:31,405 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:35:31,405 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:31,405 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:35:31,405 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - leader: support() called 08:35:31,405 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:35:31,405 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:35:31,406 AM [leader-%d133250] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:31,406 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:31,406 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:35:31,406 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - leader: support() called 08:35:31,406 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:35:31,406 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:35:31,406 AM [leader-%d133251] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-183A6B44.tmp 08:35:31,406 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:35:31,406 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:35:31,406 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:35:31,406 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server160), Chunk: 1/1 08:35:31,407 AM [test-pekko.actor.default-dispatcher-15] [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 08:35:31,409 AM [leader-%d133251] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-183A6B44.v1 08:35:31,409 AM [leader-%d133251] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-183A6B44.v1 08:35:31,410 AM [leader-%d133251] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-1220259C.v1 08:35:31,410 AM [leader-%d133251] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/TermInfo.properties 08:35:31,410 AM [leader-%d133251] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.304096668Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-1220259C.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:31,410 AM [leader-%d133251] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.406481732Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-183A6B44.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:31,410 AM [leader-%d133251] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:31,410 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:31,410 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:35:31.406481732Z 08:35:31,410 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:35:31,410 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:35:31,411 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:35:31,411 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:35:31,411 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:35:31,411 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:35:31,411 AM [test-pekko.actor.default-dispatcher-15] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader [WARN] [07/01/2025 08:35:31.411] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:35:31,411 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:35:31,411 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called 08:35:31,411 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:35:31,411 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:35:31,411 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called 08:35:31,412 AM [new-server-%d270318] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/snapshot-0000000068639DD3-189075A4.tmp 08:35:31,414 AM [new-server-%d270318] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/snapshot-0000000068639DD3-189075A4.v1 08:35:31,414 AM [new-server-%d270318] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/snapshot-0000000068639DD3-189075A4.v1 08:35:31,414 AM [new-server-%d270318] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/TermInfo.properties 08:35:31,415 AM [new-server-%d270318] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.412120484Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/snapshot-0000000068639DD3-189075A4.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:31,415 AM [new-server-%d270318] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:35:31,415 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:35:31,415 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:35:31.412120484Z 08:35:31,415 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:35:31,415 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called 08:35:31,415 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: applySnapshot called 08:35:31,415 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:35:31,415 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:35:31,415 AM [test-pekko.actor.default-dispatcher-4] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 08:35:31,415 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:35:31,415 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:35:31,415 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:35:31,415 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:35:31,415 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:31,415 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=664524d2-32b8-482a-95be-526801e61eed}, logIndex: 0, isSendImmediate: true 08:35:31,415 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:31,415 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,415 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:35:31,416 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:31,416 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 08:35:31,416 AM [test-pekko.actor.default-dispatcher-15] [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}]} 08:35:31,416 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:35:31,416 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:35:31,416 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:35:31,416 AM [test-pekko.actor.default-dispatcher-15] [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} 08:35:31,416 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/snapshot-0000000068639DD3-18D2E7CA.tmp 08:35:31,416 AM [leader-%d133252] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-18C930CB.tmp 08:35:31,418 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/snapshot-0000000068639DD3-18D2E7CA.v1 08:35:31,418 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/snapshot-0000000068639DD3-18D2E7CA.v1 08:35:31,418 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/snapshot-0000000068639DD3-189075A4.v1 08:35:31,418 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/TermInfo.properties 08:35:31,418 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.412120484Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/snapshot-0000000068639DD3-189075A4.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:31,418 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.416475082Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/new-server/snapshot-0000000068639DD3-18D2E7CA.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:31,418 AM [test-pekko.actor.default-dispatcher-15] [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} 08:35:31,418 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:35:31,418 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:35:31,418 AM [test-pekko.actor.default-dispatcher-15] [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} 08:35:31,419 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 08:35:31,419 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,419 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:35:31,419 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received [WARN] [07/01/2025 08:35:31.419] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:35:31,419 AM [leader-%d133252] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-18C930CB.v1 08:35:31,419 AM [leader-%d133252] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-18C930CB.v1 08:35:31,419 AM [leader-%d133252] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-183A6B44.v1 08:35:31,419 AM [leader-%d133252] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/TermInfo.properties 08:35:31,419 AM [leader-%d133252] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.406481732Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-183A6B44.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:31,419 AM [leader-%d133252] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.415838411Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14409777613810983067/leader/snapshot-0000000068639DD3-18C930CB.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:35:31,419 AM [leader-%d133252] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:31,419 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:31,420 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} 08:35:31,420 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:35:31,420 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:35:31,420 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:35:31,420 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]]} 08:35:31,420 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 08:35:31,466 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress ending 08:35:31,466 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower158] 08:35:31,468 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector159#-1260361026] 08:35:31,468 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server160] 08:35:31,468 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:31,468 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:31,469 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader161] 08:35:31,469 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:31,469 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:31,469 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector162] 08:35:31,472 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode starting [WARN] [07/01/2025 08:35:31.473] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader164]: org.opendaylight.controller.cluster.common.actor.Monitor@677f61d5 08:35:31,474 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:31,474 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:31,475 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:31,475 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:31,476 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4878746599738228260/leader/TermInfo.properties does not exist 08:35:31,477 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: no eligible files found 08:35:31,477 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:31,480 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:31,480 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:31,480 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2fbff26b 08:35:31,480 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:35:31,480 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 08:35:31,480 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:35:31,480 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Returning INVALID_REQUEST for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 08:35:31,480 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode ending 08:35:31,480 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower163] 08:35:31,481 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader164] 08:35:31,481 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:31,481 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:31,483 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting starting [WARN] [07/01/2025 08:35:31.484] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader168]: org.opendaylight.controller.cluster.common.actor.Monitor@18e25db9 08:35:31,485 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:31,485 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:31,485 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: started executor 08:35:31,485 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: started executor 08:35:31,489 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/leader/TermInfo.properties does not exist 08:35:31,489 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: no eligible files found 08:35:31,489 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:35:31,490 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:35:31,490 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower: started executor 08:35:31,490 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower: started executor [WARN] [07/01/2025 08:35:31.490] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower166]: org.opendaylight.controller.cluster.common.actor.Monitor@4d834a53 08:35:31,491 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/follower/TermInfo.properties does not exist 08:35:31,492 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: no eligible files found 08:35:31,492 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 08:35:31,492 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:31,492 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:31,492 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1983d63f [WARN] [07/01/2025 08:35:31.492] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2167]: org.opendaylight.controller.cluster.common.actor.Monitor@107fa10c 08:35:31,493 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 08:35:31,493 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:35:31,493 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:35:31,493 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 08:35:31,493 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: started executor 08:35:31,493 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: started executor 08:35:31,494 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/follower2/TermInfo.properties does not exist 08:35:31,494 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 08:35:31,494 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: no eligible files found 08:35:31,494 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:35:31,494 AM [test-pekko.actor.default-dispatcher-17] [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 08:35:31,494 AM [test-pekko.actor.default-dispatcher-4] [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]] 08:35:31,494 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]] 08:35:31,494 AM [test-pekko.actor.default-dispatcher-4] [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]]} 08:35:31,494 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:31,495 AM [leader-%d121984] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/leader/snapshot-0000000068639DD3-1D8017FC.tmp 08:35:31,495 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=234ad8fe-2158-4f44-9f08-57f7e9f04ac8}, logIndex: 0, isSendImmediate: true 08:35:31,495 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:31,495 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,495 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,495 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 08:35:31,497 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:35:31,497 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:35:31,497 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@461d6d8b 08:35:31,497 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 08:35:31,498 AM [leader-%d121984] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/leader/snapshot-0000000068639DD3-1D8017FC.v1 08:35:31,498 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 08:35:31,498 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 08:35:31,498 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4095ff73 08:35:31,498 AM [leader-%d121984] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/leader/TermInfo.properties 08:35:31,498 AM [leader-%d121984] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/leader/snapshot-0000000068639DD3-1D8017FC.v1 08:35:31,498 AM [test-pekko.actor.default-dispatcher-17] [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 08:35:31,498 AM [leader-%d121984] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.494934012Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/leader/snapshot-0000000068639DD3-1D8017FC.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:31,498 AM [leader-%d121984] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:31,498 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:31,498 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=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false} 08:35:31,500 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:35:31,500 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 08:35:31,500 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:35:31,500 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:35:31,500 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,500 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:35:31,500 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} [WARN] [07/01/2025 08:35:31.500] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [WARN] [07/01/2025 08:35:31.500] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 08:35:31,500 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} 08:35:31,500 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:35:31,500 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:35:31,500 AM [test-pekko.actor.default-dispatcher-5] [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]]} 08:35:31,500 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false} 08:35:31,500 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:35:31,500 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/follower/snapshot-0000000068639DD3-1DD8C468.tmp 08:35:31,501 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 08:35:31,501 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 08:35:31,501 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 08:35:31,501 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:35:31,501 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,501 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:35:31,501 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} [WARN] [07/01/2025 08:35:31.501] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] [WARN] [07/01/2025 08:35:31.501] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 08:35:31,501 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:35:31,501 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} 08:35:31,501 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:35:31,501 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:35:31,501 AM [test-pekko.actor.default-dispatcher-4] [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]]} 08:35:31,501 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:31,501 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/follower2/snapshot-0000000068639DD3-1DE5F119.tmp 08:35:31,502 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/follower/snapshot-0000000068639DD3-1DD8C468.v1 08:35:31,502 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/follower/snapshot-0000000068639DD3-1DD8C468.v1 08:35:31,502 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/follower/TermInfo.properties 08:35:31,502 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.500745320Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/follower/snapshot-0000000068639DD3-1DD8C468.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:31,502 AM [test-pekko.actor.default-dispatcher-5] [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} 08:35:31,502 AM [test-pekko.actor.default-dispatcher-5] [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]] 08:35:31,502 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): Log size is now 1 08:35:31,502 AM [test-pekko.actor.default-dispatcher-5] [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} 08:35:31,502 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:35:31,502 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:35:31,502 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:35:31,502 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:35:31,502 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:35:31,503 AM [test-pekko.actor.default-dispatcher-14] [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]]} 08:35:31,503 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,503 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/follower2/snapshot-0000000068639DD3-1DE5F119.v1 08:35:31,503 AM [test-pekko.actor.default-dispatcher-14] [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 08:35:31,503 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:35:31,503 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:31,503 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/follower2/TermInfo.properties 08:35:31,503 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:35:31,503 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:35:31,503 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - Leader changed to non-voting - trying leadership transfer 08:35:31,503 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 08:35:31,503 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/follower2/snapshot-0000000068639DD3-1DE5F119.v1 08:35:31,503 AM [test-pekko.actor.default-dispatcher-16] [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]]} 08:35:31,503 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:31.501608729Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2990531624224783094/follower2/snapshot-0000000068639DD3-1DE5F119.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:31,503 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:31,503 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Initiating leader transfer 08:35:31,503 AM [test-pekko.actor.default-dispatcher-4] [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]] 08:35:31,503 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): Log size is now 1 08:35:31,503 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:31,503 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:35:31,504 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - follower2: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 08:35:31,504 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 08:35:31,505 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorLeadershipTransferCohort - leader: pauseLeader successfully completed - doing transfer 08:35:31,505 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Leader - leader (Leader): Attempting to transfer leadership 08:35:31,505 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,505 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:35:31,505 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=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} 08:35:31,505 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,505 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:31,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:31,505 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:35:31,505 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:31,505 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 08:35:31,505 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): Log size is now 1 08:35:31,505 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Leader - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: 0, lastIndex: 0, isVoting: true 08:35:31,505 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 08:35:31,505 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Leader - leader (Leader): Follower's log matches - sending ElectionTimeout 08:35:31,505 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:31,505 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:31,505 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,505 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:35:31,505 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:35:31,505 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 08:35:31,505 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 08:35:31,505 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,505 AM [test-pekko.actor.default-dispatcher-4] [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]]} 08:35:31,505 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Leader - leader (Leader): Leader transfer complete 08:35:31,505 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader transfer complete - waiting for new leader 08:35:31,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:31,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:31,505 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 08:35:31,506 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [follower2] 08:35:31,506 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:35:31,506 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,508 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=2, votedFor=follower 08:35:31,508 AM [test-pekko.actor.default-dispatcher-16] [INFO] Candidate - follower (Candidate): Starting new election term 2 08:35:31,508 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - follower (Candidate): Sending RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} to peer follower2 08:35:31,508 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:35:31,508 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:35:31,508 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower2 (Follower): Cluster state: [] 08:35:31,508 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower2 (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 08:35:31,508 AM [test-pekko.actor.default-dispatcher-17] [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 08:35:31,510 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=null 08:35:31,510 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower2 (Follower): In requestVote: RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 0, lastTerm: 1 08:35:31,512 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=follower 08:35:31,512 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=true} 08:35:31,512 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - follower (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=true}, my term is 2 08:35:31,512 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - follower (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=true}, current voteCount: 1 08:35:31,512 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower (Leader): Election: Leader has following peers: [leader, follower2] 08:35:31,512 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower leader: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,512 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:31,512 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - follower (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:35:31,512 AM [test-pekko.actor.default-dispatcher-17] [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 08:35:31,512 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader follower, need to catch up to -1 08:35:31,513 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - follower (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:35:31,513 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:35:31.513] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 08:35:31,513 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader follower and reached 0 (of expected -1) [WARN] [07/01/2025 08:35:31.513] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 08:35:31,514 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=2, votedFor=null 08:35:31,514 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - leader (Leader) :- Switching from behavior Leader to Follower, election term: 2 08:35:32,32 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader follower and reached 0 (of expected -1) 08:35:32,32 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - leader: Last sync leader does not match current leader follower, need to catch up to -1 08:35:32,32 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader changed to follower 08:35:32,32 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower (Leader): handleAppendEntriesReply - FollowerLogInformation for leader updated: matchIndex: 0, nextIndex: 1 08:35:32,32 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower leader: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:32,32 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActorLeadershipTransferCohort - leader: Successfully transferred leadership to follower in 528.5 ms 08:35:32,32 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - leader: leader transfer succeeded after change to non-voting 08:35:32,32 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - leader: Lagging 0 entries behind leader follower and reached 0 (of expected -1) [WARN] [07/01/2025 08:35:32.032] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=false] [WARN] [07/01/2025 08:35:32.032] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=true] 08:35:32,49 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting ending 08:35:32,49 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower165] 08:35:32,60 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader168] 08:35:32,60 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:32,60 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:32,60 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector169] 08:35:32,61 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector170#-1634353064] 08:35:32,61 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower166] 08:35:32,61 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:35:32,61 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:35:32,61 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector171#-1614919739] 08:35:32,61 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2167] 08:35:32,62 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:35:32,62 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:35:32,64 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState starting 08:35:32,66 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:32,66 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 08:35:32,66 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 08:35:32,66 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState ending 08:35:32,66 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower172] [WARN] [07/01/2025 08:35:32.066] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader173]: org.opendaylight.controller.cluster.common.actor.Monitor@746916e8 08:35:32,67 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7203766453150671112/leader/TermInfo.properties does not exist 08:35:32,67 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:35:32,68 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:32,72 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 08:35:32,72 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 08:35:32,72 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1253f0fa 08:35:32,77 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader173] 08:35:32,77 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:32,77 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:32,78 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer starting [WARN] [07/01/2025 08:35:32.079] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader177]: org.opendaylight.controller.cluster.common.actor.Monitor@421849d1 08:35:32,79 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:32,80 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:32,80 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 08:35:32,80 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 08:35:32,81 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/leader/TermInfo.properties does not exist 08:35:32,81 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: no eligible files found 08:35:32,81 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 [WARN] [07/01/2025 08:35:32.082] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower175]: org.opendaylight.controller.cluster.common.actor.Monitor@32050901 08:35:32,82 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:35:32,83 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: started executor 08:35:32,83 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: started executor 08:35:32,84 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/follower/TermInfo.properties does not exist 08:35:32,84 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:32,84 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:32,84 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6ecbef55 08:35:32,84 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: no eligible files found 08:35:32,84 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:32,84 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower, downNode] 08:35:32,84 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:35:32,84 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:35:32,84 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/01/2025 08:35:32.084] [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==[]} [WARN] [07/01/2025 08:35:32.085] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2176]: org.opendaylight.controller.cluster.common.actor.Monitor@5688a318 08:35:32,85 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 08:35:32,86 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: started executor 08:35:32,86 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: started executor 08:35:32,86 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:35:32,86 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:35:32,86 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@747bb7e0 08:35:32,86 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/follower2/TermInfo.properties does not exist 08:35:32,87 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: no eligible files found 08:35:32,87 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 08:35:32,87 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:32,91 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 08:35:32,91 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 08:35:32,91 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2f20ab47 08:35:32,91 AM [test-pekko.actor.default-dispatcher-14] [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 08:35:32,92 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:35:32,92 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:35:32,92 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:35:32,92 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:35:32.092] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/follower175] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:35:32,93 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 08:35:32,93 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 08:35:32,93 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 08:35:32,93 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:35:32.093] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 08:35:32,102 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 08:35:32,102 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:35:32,102 AM [test-pekko.actor.default-dispatcher-14] [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]]} 08:35:32,102 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=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:35:32,102 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=2fe6e58c-191d-4c30-bca4-958766a9b12c}, logIndex: 0, isSendImmediate: true 08:35:32,102 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:32,102 AM [leader-%d558610] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/leader/snapshot-0000000068639DD4-061C80BF.tmp 08:35:32,102 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:32,102 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:35:32,102 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=true}]} 08:35:32,103 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:35:32,103 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:35:32,103 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:35:32,103 AM [test-pekko.actor.default-dispatcher-4] [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]]} 08:35:32,103 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:35:32,103 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/follower2/snapshot-0000000068639DD4-0625CCF2.tmp 08:35:32,103 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:32,103 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='follower'} [WARN] [07/01/2025 08:35:32.103] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader177]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 08:35:32,105 AM [leader-%d558610] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/leader/snapshot-0000000068639DD4-061C80BF.v1 08:35:32,105 AM [leader-%d558610] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/leader/snapshot-0000000068639DD4-061C80BF.v1 08:35:32,105 AM [leader-%d558610] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/leader/TermInfo.properties 08:35:32,105 AM [leader-%d558610] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.102531263Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/leader/snapshot-0000000068639DD4-061C80BF.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:32,105 AM [leader-%d558610] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:32,106 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/follower2/snapshot-0000000068639DD4-0625CCF2.v1 08:35:32,106 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/follower2/snapshot-0000000068639DD4-0625CCF2.v1 08:35:32,106 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/follower2/TermInfo.properties 08:35:32,106 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.103140594Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2601087856836842438/follower2/snapshot-0000000068639DD4-0625CCF2.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:32,106 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:32,106 AM [test-pekko.actor.default-dispatcher-4] [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]] 08:35:32,106 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower2 (Follower): Log size is now 1 08:35:32,106 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:32,106 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:35:32,106 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) [WARN] [07/01/2025 08:35:32.106] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 08:35:32,106 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:35:32,106 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:35:32,106 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:35:32,106 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:35:32,106 AM [test-pekko.actor.default-dispatcher-14] [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]]} 08:35:32,106 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:32,107 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 08:35:32,107 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:32,107 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:35:32,107 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} 08:35:32,107 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 08:35:32,107 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 08:35:32,107 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:35:32,107 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers [WARN] [07/01/2025 08:35:32.107] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower175] unhandled message from TestActor[pekko://test/user/leader177]: ServerRemoved [serverId=follower] 08:35:32,154 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer ending 08:35:32,154 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower174] 08:35:32,165 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader177] 08:35:32,166 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:32,166 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:32,166 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector178] 08:35:32,166 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector179#-63597717] 08:35:32,167 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower175] 08:35:32,167 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:35:32,167 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:35:32,167 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector180#584787669] 08:35:32,167 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2176] 08:35:32,168 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:35:32,168 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:35:32,171 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader starting [WARN] [07/01/2025 08:35:32.172] [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@5041f74c 08:35:32,173 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:35:32,173 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: started executor 08:35:32,173 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: started executor 08:35:32,174 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9862963075960777489/new-server/TermInfo.properties does not exist 08:35:32,175 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 08:35:32,175 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 08:35:32,178 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:35:32,178 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:35:32,178 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4929da3f 08:35:32,179 AM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:35:32.179] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader184]: org.opendaylight.controller.cluster.common.actor.Monitor@ea9ae60 08:35:32,180 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:32,180 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 08:35:32,180 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: started executor 08:35:32,181 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9862963075960777489/leader/TermInfo.properties does not exist 08:35:32,181 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 08:35:32,181 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 08:35:32,184 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 08:35:32,184 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 08:35:32,184 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@230cb9a4 08:35:32,195 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server183, votingMember=true], state: Idle 08:35:32,195 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 08:35:32,195 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader ending 08:35:32,195 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower181] 08:35:32,206 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector182#1187048371] 08:35:32,206 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server183] 08:35:32,206 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:32,206 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:32,207 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader184] 08:35:32,207 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:32,207 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:32,212 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus starting [WARN] [07/01/2025 08:35:32.213] [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@1936bcf5 08:35:32,214 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:32,214 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:32,214 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 08:35:32,214 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 08:35:32,216 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/TermInfo.properties does not exist 08:35:32,216 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 08:35:32,216 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/01/2025 08:35:32.216] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower186]: org.opendaylight.controller.cluster.common.actor.Monitor@2158f5ec 08:35:32,217 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:35:32,217 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: started executor 08:35:32,217 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: started executor 08:35:32,218 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/TermInfo.properties does not exist 08:35:32,218 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: no eligible files found 08:35:32,218 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:32,219 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:32,219 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:32,219 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5a769430 08:35:32,219 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 08:35:32,219 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:35:32,219 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:35:32.220] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2187]: org.opendaylight.controller.cluster.common.actor.Monitor@4c63c54b 08:35:32,221 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 08:35:32,221 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:35:32,221 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:35:32,221 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6244e401 08:35:32,221 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: started executor 08:35:32,221 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: started executor 08:35:32,221 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:32,223 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/TermInfo.properties does not exist 08:35:32,223 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: no eligible files found 08:35:32,223 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:35:32,223 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:35:32,224 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/01/2025 08:35:32.224] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:35:32,224 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:35:32,224 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:35:32,225 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 08:35:32,225 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 08:35:32,225 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@314ee3ab 08:35:32,226 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - follower2 (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 08:35:32,227 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 08:35:32,228 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 08:35:32,228 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 08:35:32,228 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:35:32.228] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 08:35:32,232 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]], state: Idle 08:35:32,232 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:35:32,232 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]] 08:35:32,232 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]] 08:35:32,232 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]]} 08:35:32,232 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} 08:35:32,232 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=11bdde14-1477-4049-a590-ae6b3cc52732}, logIndex: 0, isSendImmediate: true 08:35:32,232 AM [leader-%d635314] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/snapshot-0000000068639DD4-0DDE0797.tmp 08:35:32,232 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:35:32,232 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:35:32,232 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]]} 08:35:32,233 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:32,233 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:35:32,233 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=true}]} 08:35:32,233 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:32,233 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:35:32,233 AM [test-pekko.actor.default-dispatcher-14] [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}]} 08:35:32,233 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:35:32,233 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:35:32,233 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:35:32,233 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:35:32,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:35:32,233 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:35:32,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:35:32,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:35:32,233 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/snapshot-0000000068639DD4-0DEA6283.tmp 08:35:32,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:35:32,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:35:32,233 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/snapshot-0000000068639DD4-0DEEEA8D.tmp 08:35:32,233 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]] 08:35:32,234 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 08:35:32,235 AM [leader-%d635314] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/snapshot-0000000068639DD4-0DDE0797.v1 08:35:32,235 AM [leader-%d635314] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/snapshot-0000000068639DD4-0DDE0797.v1 08:35:32,235 AM [leader-%d635314] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/TermInfo.properties 08:35:32,236 AM [leader-%d635314] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.232654743Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/snapshot-0000000068639DD4-0DDE0797.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:32,236 AM [leader-%d635314] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:32,236 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:32,236 AM [test-pekko.actor.default-dispatcher-14] [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} 08:35:32,237 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/snapshot-0000000068639DD4-0DEEEA8D.v1 08:35:32,237 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/snapshot-0000000068639DD4-0DEA6283.v1 08:35:32,237 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/TermInfo.properties 08:35:32,237 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/snapshot-0000000068639DD4-0DEA6283.v1 08:35:32,237 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/snapshot-0000000068639DD4-0DEEEA8D.v1 08:35:32,237 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/TermInfo.properties 08:35:32,237 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.233761421Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/snapshot-0000000068639DD4-0DEEEA8D.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:32,237 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.233464451Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/snapshot-0000000068639DD4-0DEA6283.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:32,237 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - follower2: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:35:32,237 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:35:32,237 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING]] 08:35:32,237 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - follower2: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=NON_VOTING]] 08:35:32,238 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Log size is now 1 08:35:32,238 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): Log size is now 1 08:35:32,238 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:35:32,238 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 08:35:32,238 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower2, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:35:32,238 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:35:32,238 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:32,238 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:35:32,238 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:35:32,238 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:35:32,238 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:35:32,238 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 08:35:32,238 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 08:35:32,238 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 08:35:32,238 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:35:32,238 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:35:32,238 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:35:32,238 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:32,238 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:35:32,238 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:35:32.238] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] [WARN] [07/01/2025 08:35:32.238] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 08:35:32,284 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]], state: Idle 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [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]] 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [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]]} 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=eac71b22-f9ee-42ed-ab66-66ee4e2c6b64}, logIndex: 1, isSendImmediate: true 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [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]]} 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower2 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:32,285 AM [leader-%d635315] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/snapshot-0000000068639DD4-11049689.tmp 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower 08:35:32,285 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:32,286 AM [test-pekko.actor.default-dispatcher-14] [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}]} 08:35:32,286 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:35:32,286 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]] 08:35:32,286 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:35:32,286 AM [test-pekko.actor.default-dispatcher-14] [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]]} 08:35:32,286 AM [test-pekko.actor.default-dispatcher-18] [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}]} 08:35:32,286 AM [test-pekko.actor.default-dispatcher-14] [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} 08:35:32,286 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:35:32,286 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/snapshot-0000000068639DD4-11110C36.tmp 08:35:32,286 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:35:32,286 AM [test-pekko.actor.default-dispatcher-18] [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]]} 08:35:32,286 AM [test-pekko.actor.default-dispatcher-18] [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} 08:35:32,286 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:32,286 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/snapshot-0000000068639DD4-11140CAC.tmp 08:35:32,289 AM [leader-%d635315] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/snapshot-0000000068639DD4-11049689.v1 08:35:32,289 AM [leader-%d635315] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/snapshot-0000000068639DD4-11049689.v1 08:35:32,289 AM [leader-%d635315] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/snapshot-0000000068639DD4-0DDE0797.v1 08:35:32,289 AM [leader-%d635315] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/TermInfo.properties 08:35:32,289 AM [leader-%d635315] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.232654743Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/snapshot-0000000068639DD4-0DDE0797.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:32,289 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/snapshot-0000000068639DD4-11110C36.v1 08:35:32,289 AM [leader-%d635315] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.285513353Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/leader/snapshot-0000000068639DD4-11049689.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:32,289 AM [leader-%d635315] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:32,289 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:32,289 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/snapshot-0000000068639DD4-0DEA6283.v1 08:35:32,289 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/snapshot-0000000068639DD4-11140CAC.v1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/TermInfo.properties 08:35:32,290 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/snapshot-0000000068639DD4-11110C36.v1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/TermInfo.properties 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/snapshot-0000000068639DD4-11140CAC.v1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.233464451Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/snapshot-0000000068639DD4-0DEA6283.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.286329910Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower2/snapshot-0000000068639DD4-11110C36.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/snapshot-0000000068639DD4-0DEEEA8D.v1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [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} 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [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]] 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower2 (Follower): Log size is now 2 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower2 (Follower): Commit index set to 1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [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} 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.233761421Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/snapshot-0000000068639DD4-0DEEEA8D.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from 0 to 1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.286526636Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16009027852384677339/follower/snapshot-0000000068639DD4-11140CAC.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:35:32,290 AM [test-pekko.actor.default-dispatcher-14] [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]]} 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [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} 08:35:32,290 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 1, nextIndex: 2 08:35:32,290 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [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]] 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower (Follower): Log size is now 2 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower (Follower): Commit index set to 1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [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} 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 0 to 1 08:35:32,290 AM [test-pekko.actor.default-dispatcher-18] [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]]} 08:35:32,290 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 08:35:32,290 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 08:35:32,337 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus ending 08:35:32,337 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower185] 08:35:32,348 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader188] 08:35:32,348 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:32,348 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:32,348 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector189] 08:35:32,349 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector190#2010833762] 08:35:32,349 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower186] 08:35:32,349 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:35:32,349 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:35:32,349 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector191#1302494012] 08:35:32,349 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2187] 08:35:32,350 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:35:32,350 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:35:32,352 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower starting [WARN] [07/01/2025 08:35:32.354] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server194]: org.opendaylight.controller.cluster.common.actor.Monitor@5143d057 08:35:32,355 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:35:32,355 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: started executor 08:35:32,355 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: started executor 08:35:32,356 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/TermInfo.properties does not exist 08:35:32,356 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: no eligible files found 08:35:32,356 AM [test-pekko.actor.default-dispatcher-18] [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 08:35:32,359 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:35:32,359 AM [test-pekko.actor.default-dispatcher-18] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:35:32,359 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@12a5b737 08:35:32,360 AM [test-pekko.actor.default-dispatcher-18] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:35:32,454 AM [main] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 2 [WARN] [07/01/2025 08:35:32.455] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader195]: org.opendaylight.controller.cluster.common.actor.Monitor@49707c94 08:35:32,456 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 08:35:32,456 AM [test-pekko.actor.default-dispatcher-18] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:32,456 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - leader: started executor 08:35:32,456 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - leader: started executor 08:35:32,458 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/TermInfo.properties does not exist 08:35:32,458 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: no eligible files found 08:35:32,458 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 08:35:32,462 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 08:35:32,462 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=leader} 08:35:32,462 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@719ec2fa 08:35:32,462 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 08:35:32,462 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 08:35:32,463 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:35:32,463 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 08:35:32,463 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 08:35:32,463 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 08:35:32,463 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 08:35:32,463 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 1 for term 1 08:35:32,518 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true], state: Idle 08:35:32,518 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 08:35:32,518 AM [test-pekko.actor.default-dispatcher-14] [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 08:35:32,518 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:35:32,518 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 08:35:32,519 AM [leader-%d397845] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:32,519 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:35:32,519 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:32,519 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 08:35:32,519 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - leader: support() called 08:35:32,520 AM [leader-%d397846] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/snapshot-0000000068639DD4-1EFDDD01.tmp 08:35:32,520 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 08:35:32,520 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:35:32,520 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:35:32,520 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:35:32,520 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:35:32,520 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server194), Chunk: 1/1 08:35:32,520 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:32,522 AM [leader-%d397846] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/snapshot-0000000068639DD4-1EFDDD01.v1 08:35:32,522 AM [leader-%d397846] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/snapshot-0000000068639DD4-1EFDDD01.v1 08:35:32,523 AM [leader-%d397846] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/TermInfo.properties 08:35:32,523 AM [leader-%d397846] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.519953665Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/snapshot-0000000068639DD4-1EFDDD01.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:32,523 AM [leader-%d397846] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:32,523 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:32,523 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:35:32.519953665Z 08:35:32,523 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:35:32,523 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:35:32,523 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:35:32,523 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:35:32,523 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 2 08:35:32,523 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:35:32,523 AM [test-pekko.actor.default-dispatcher-4] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:35:32,524 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:35:32,524 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:35:32.524] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:35:32,524 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:35:32,524 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:35:32,524 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - new-server: support() called 08:35:32,525 AM [new-server-%d685225] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/snapshot-0000000068639DD4-1F4D99A5.tmp 08:35:32,528 AM [new-server-%d685225] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/snapshot-0000000068639DD4-1F4D99A5.v1 08:35:32,529 AM [new-server-%d685225] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/snapshot-0000000068639DD4-1F4D99A5.v1 08:35:32,529 AM [new-server-%d685225] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/TermInfo.properties 08:35:32,529 AM [new-server-%d685225] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.525179301Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/snapshot-0000000068639DD4-1F4D99A5.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:32,529 AM [new-server-%d685225] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:35:32,529 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:35:32,529 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:35:32.525179301Z 08:35:32,529 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:35:32,529 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - new-server: support() called 08:35:32,529 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - new-server: applySnapshot called 08:35:32,529 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:35:32,529 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:35:32,529 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:35:32,530 AM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 2, nextIndex set to 3 08:35:32,530 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:35:32,530 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:35:32,530 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:35:32,530 AM [test-pekko.actor.default-dispatcher-14] [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]]} 08:35:32,530 AM [test-pekko.actor.default-dispatcher-14] [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} 08:35:32,530 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=deea27c4-9012-4a17-b846-35880b71c0b7}, logIndex: 3, isSendImmediate: true 08:35:32,530 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:32,530 AM [leader-%d397847] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/snapshot-0000000068639DD4-1FA09B8A.tmp 08:35:32,530 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:35:32,530 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower follower 08:35:32,530 AM [test-pekko.actor.default-dispatcher-14] [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}]} 08:35:32,530 AM [test-pekko.actor.default-dispatcher-18] [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}]} 08:35:32,531 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:35:32,531 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:35:32,531 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower new-server 08:35:32,531 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 08:35:32,531 AM [test-pekko.actor.default-dispatcher-14] [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}]} 08:35:32,531 AM [test-pekko.actor.default-dispatcher-18] [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]]} 08:35:32,531 AM [test-pekko.actor.default-dispatcher-18] [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} 08:35:32,531 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 08:35:32,531 AM [test-pekko.actor.default-dispatcher-4] [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}]} 08:35:32,531 AM [test-pekko.actor.default-dispatcher-18] [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} 08:35:32,531 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:35:32,531 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 08:35:32,531 AM [test-pekko.actor.default-dispatcher-4] [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]]} 08:35:32,531 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:32,531 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=, votingState=VOTING], PeerInfo [id=new-server, address=null, votingState=VOTING]] 08:35:32,531 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower (Follower): Log size is now 2 08:35:32,531 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/snapshot-0000000068639DD4-1FACB31C.tmp 08:35:32,531 AM [test-pekko.actor.default-dispatcher-18] [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} 08:35:32,531 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 08:35:32,531 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 08:35:32,531 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:35:32,533 AM [leader-%d397847] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/snapshot-0000000068639DD4-1FA09B8A.v1 08:35:32,533 AM [leader-%d397847] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/snapshot-0000000068639DD4-1EFDDD01.v1 08:35:32,533 AM [leader-%d397847] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/TermInfo.properties 08:35:32,533 AM [leader-%d397847] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/snapshot-0000000068639DD4-1FA09B8A.v1 08:35:32,533 AM [leader-%d397847] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.519953665Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/snapshot-0000000068639DD4-1EFDDD01.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:32,533 AM [leader-%d397847] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.530619274Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/snapshot-0000000068639DD4-1FA09B8A.v1, size=97, entryCompress=NONE, stateCompress=NONE} 08:35:32,533 AM [leader-%d397847] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:35:32,533 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:35:32,533 AM [test-pekko.actor.default-dispatcher-14] [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} 08:35:32,533 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 08:35:32,533 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 3 08:35:32,533 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 2 to 3 08:35:32,533 AM [test-pekko.actor.default-dispatcher-14] [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]]} 08:35:32,534 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 2 for term 1 08:35:32,534 AM [test-pekko.actor.default-dispatcher-14] [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 08:35:32,534 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/snapshot-0000000068639DD4-1FACB31C.v1 08:35:32,534 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/snapshot-0000000068639DD4-1FACB31C.v1 08:35:32,534 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/snapshot-0000000068639DD4-1F4D99A5.v1 08:35:32,534 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/TermInfo.properties 08:35:32,534 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.525179301Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/snapshot-0000000068639DD4-1F4D99A5.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:35:32,534 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.531411740Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/snapshot-0000000068639DD4-1FACB31C.v1, size=97, entryCompress=NONE, stateCompress=NONE} 08:35:32,534 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:32,534 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=follower, address=null, votingState=VOTING]] 08:35:32,535 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:35:32,535 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:32,535 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 2) 08:35:32,535 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 3, nextIndex: 4 08:35:32,535 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 [WARN] [07/01/2025 08:35:32.535] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:35:32,535 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Commit index set to 3 08:35:32,535 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 08:35:32,535 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 08:35:32,535 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 3 08:35:32,535 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 2 to 3 08:35:32,535 AM [test-pekko.actor.default-dispatcher-5] [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]]} 08:35:32,701 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower (Follower): Commit index set to 3 08:35:32,701 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 08:35:32,701 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 08:35:32,701 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 08:35:32,701 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 08:35:32,701 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 2 to 3 08:35:32,701 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 2 for term 1 08:35:32,720 AM [main] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/TermInfo.properties 08:35:32,721 AM [main] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/snapshot-0000000068639DD4-1FA09B8A.v1 08:35:32,721 AM [main] [DEBUG] RaftStorage - leader: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.530619274Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/leader/snapshot-0000000068639DD4-1FA09B8A.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 08:35:32,721 AM [main] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/snapshot-0000000068639DD4-1FACB31C.v1 08:35:32,721 AM [main] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/TermInfo.properties 08:35:32,721 AM [main] [DEBUG] RaftStorage - new-server: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:35:32.531411740Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1019951024009072401/new-server/snapshot-0000000068639DD4-1FACB31C.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 08:35:32,721 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower ending 08:35:32,721 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower192] 08:35:32,733 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector193#528176668] 08:35:32,733 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server194] 08:35:32,734 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:32,734 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:32,734 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader195] 08:35:32,734 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:32,734 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:32,734 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector196] 08:35:32,738 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader starting [WARN] [07/01/2025 08:35:32.740] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server199]: org.opendaylight.controller.cluster.common.actor.Monitor@313b8878 08:35:32,741 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:35:32,741 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: started executor 08:35:32,741 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: started executor 08:35:32,742 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7793404976381314942/new-server/TermInfo.properties does not exist 08:35:32,743 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: no eligible files found 08:35:32,743 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:32,746 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:35:32,746 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:35:32,746 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@60c89a15 08:35:32,746 AM [test-pekko.actor.default-dispatcher-4] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:35:32.748] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower201]: org.opendaylight.controller.cluster.common.actor.Monitor@3d907b8f 08:35:32,748 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:35:32,748 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower: started executor 08:35:32,749 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower: started executor 08:35:32,750 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7793404976381314942/follower/TermInfo.properties does not exist 08:35:32,750 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower: no eligible files found 08:35:32,750 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:32,752 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:35:32,752 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:35:32,752 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@9198baf 08:35:32,753 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:32,755 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:35:32,755 AM [test-pekko.actor.default-dispatcher-4] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 08:35:32,755 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:32,755 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/01/2025 08:35:32.755] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/follower201] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:35:32,763 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - follower: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server199, votingMember=true], state: Idle 08:35:32,763 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader200 08:35:32,763 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader200)] 08:35:32,813 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader ending 08:35:32,813 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower197] 08:35:32,824 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector198#38160705] 08:35:32,825 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server199] 08:35:32,825 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:32,825 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:32,825 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader200#-712962531] 08:35:32,825 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower201] 08:35:32,826 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:35:32,826 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:35:32,928 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader starting [WARN] [07/01/2025 08:35:32.930] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower204]: org.opendaylight.controller.cluster.common.actor.Monitor@73796a27 08:35:32,931 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:35:32,932 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower: started executor 08:35:32,932 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower: started executor 08:35:32,933 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13074740603537894566/follower/TermInfo.properties does not exist 08:35:32,933 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - follower: no eligible files found 08:35:32,934 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:32,936 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:35:32,937 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:35:32,937 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@573cddb3 08:35:32,937 AM [test-pekko.actor.default-dispatcher-4] [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 08:35:32,939 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:35:32,939 AM [test-pekko.actor.default-dispatcher-4] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 08:35:32,939 AM [test-pekko.actor.default-dispatcher-4] [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} 08:35:32,939 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/01/2025 08:35:32.939] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/follower204] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:35:32,947 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - follower: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 08:35:32,948 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader203 08:35:32,948 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader203)] 08:35:32,998 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader ending 08:35:32,998 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower202] 08:35:33,8 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader203] 08:35:33,9 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower204] 08:35:33,9 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:35:33,9 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:35:33,11 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer starting [WARN] [07/01/2025 08:35:33.013] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader206]: org.opendaylight.controller.cluster.common.actor.Monitor@7b707621 08:35:33,13 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:33,14 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:33,14 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:33,14 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:33,16 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1709856859412645764/leader/TermInfo.properties does not exist 08:35:33,16 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:35:33,16 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:33,19 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:33,19 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:33,19 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@325cfeac 08:35:33,19 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 08:35:33,19 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:35:33,25 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true], state: Idle 08:35:33,25 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 08:35:33,25 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - leader: Returning ALREADY_EXISTS for operation AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 08:35:33,25 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer ending 08:35:33,25 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower205] 08:35:33,36 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader206] 08:35:33,36 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:33,36 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:33,38 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout starting [WARN] [07/01/2025 08:35:33.040] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@4268b099 08:35:33,41 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 08:35:33,41 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node1: started executor 08:35:33,42 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 08:35:33.043] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@18a9c68a 08:35:33,43 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7614759963283233993/node1/TermInfo.properties does not exist 08:35:33,44 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: no eligible files found 08:35:33,44 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:35:33,44 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:35:33,44 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:35:33,44 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:35:33,44 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 08:35:33,44 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node2: started executor 08:35:33,44 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node2: started executor 08:35:33,45 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7614759963283233993/node2/TermInfo.properties does not exist 08:35:33,45 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node2: no eligible files found 08:35:33,45 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:35:33,46 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:35:33,46 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 08:35:33,46 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:33,47 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:35:33,48 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:35:33,48 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2904f47b 08:35:33,48 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:35:33,48 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:35:33,48 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@57aff14 08:35:33,55 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]], state: Idle 08:35:33,55 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:35:33,55 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:35:33,55 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:35:33,55 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:33,55 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:35:33,55 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:35:33,57 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 08:35:33,57 AM [test-pekko.actor.default-dispatcher-5] [INFO] Candidate - node1 (Candidate): Starting new election term 2 08:35:33,57 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 08:35:33,58 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:35:33,171 AM [test-pekko.actor.default-dispatcher-4] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 08:35:33,171 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 08:35:33,171 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 08:35:33,171 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 08:35:33,172 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout ending 08:35:33,172 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower207] 08:35:33,173 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector208#509949311] 08:35:33,173 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 08:35:33,173 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:35:33,173 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:35:33,174 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector209#517888914] 08:35:33,174 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 08:35:33,174 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:35:33,174 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:35:33,179 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader starting [WARN] [07/01/2025 08:35:33.182] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@742e39e3 08:35:33,183 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 08:35:33,183 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node1: started executor 08:35:33,183 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 08:35:33.184] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@55ef79fa 08:35:33,185 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 08:35:33,185 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node2: started executor 08:35:33,185 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node2: started executor 08:35:33,185 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest156683936460119593/node1/TermInfo.properties does not exist 08:35:33,185 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - node1: no eligible files found 08:35:33,185 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 08:35:33,185 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 163 08:35:33,185 AM [test-pekko.actor.default-dispatcher-18] [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]] 08:35:33,186 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PekkoRecovery - node1: Received apply journal entries for recovery, applying to state: 0 to 0 08:35:33,186 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 08:35:33,186 AM [test-pekko.actor.default-dispatcher-18] [INFO] PekkoRecovery - node1: Recovery completed in 60.68 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:35:33,187 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest156683936460119593/node2/TermInfo.properties does not exist 08:35:33,187 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - node2: no eligible files found 08:35:33,187 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 08:35:33,187 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 163 08:35:33,187 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]] 08:35:33,187 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 0 08:35:33,187 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 08:35:33,187 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - node2: Recovery completed in 36.63 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:35:33,190 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 08:35:33,190 AM [test-pekko.actor.default-dispatcher-18] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode1} 08:35:33,190 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@49e26bd3 08:35:33,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 08:35:33,191 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode2} 08:35:33,191 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1bb41e76 08:35:33,202 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 08:35:33,202 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:35:33,202 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:35:33,202 AM [test-pekko.actor.default-dispatcher-15] [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]] 08:35:33,202 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:35:33,202 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:35:33,202 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:35:33,206 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 08:35:33,207 AM [test-pekko.actor.default-dispatcher-15] [INFO] Candidate - node1 (Candidate): Starting new election term 2 08:35:33,207 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:35:33,721 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=[]] 08:35:33,721 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]] 08:35:33,721 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 08:35:33,721 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=[]] 08:35:33,722 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader downNode1, need to catch up to 0 [WARN] [07/01/2025 08:35:33.723] [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} [WARN] [07/01/2025 08:35:33.723] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 08:35:34,329 AM [main] [INFO] PeerInfos - node1: Peer address for peer node2 set to pekko://test/user/node2 08:35:34,330 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 08:35:34,330 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:35:34,330 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:35:34,330 AM [test-pekko.actor.default-dispatcher-15] [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]] 08:35:34,330 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:35:34,330 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:35:34,334 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node1 08:35:34,334 AM [test-pekko.actor.default-dispatcher-15] [INFO] Candidate - node1 (Candidate): Starting new election term 3 08:35:34,334 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 08:35:34,334 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 08:35:34,334 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:35:34,334 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 08:35:34,334 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 08:35:34,334 AM [test-pekko.actor.default-dispatcher-14] [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 08:35:34,338 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=null 08:35:34,338 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 08:35:34,340 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node1 08:35:34,340 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 08:35:34,341 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 08:35:34,341 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 08:35:34,341 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): Election: Leader has following peers: [node2, downNode2, downNode1] 08:35:34,341 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:35:34,341 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - node2: Last sync leader does not match current leader node1, need to catch up to -1 [WARN] [07/01/2025 08:35:34.341] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=false] 08:35:34,341 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:35:34,341 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node1 elected 08:35:34,341 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]] 08:35:34,341 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]]} 08:35:34,342 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} 08:35:34,342 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=30c6fd28-e518-48d1-a66a-33d526be79e2}, logIndex: 1, isSendImmediate: true 08:35:34,342 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:34,342 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=[]] 08:35:34,342 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - node2: Lagging -1 entries behind leader node1 and reached 0 (of expected -1) [WARN] [07/01/2025 08:35:34.342] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=true] 08:35:34,342 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 0, nextIndex: 1 08:35:34,342 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:34,342 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 08:35:34,342 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}]} 08:35:34,342 AM [test-pekko.actor.default-dispatcher-18] [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}]} 08:35:34,342 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - node2 (Follower): Number of entries to be appended = 1 08:35:34,342 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - node2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:35:34,342 AM [test-pekko.actor.default-dispatcher-18] [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]]} 08:35:34,342 AM [test-pekko.actor.default-dispatcher-18] [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} 08:35:34,343 AM [test-pekko.actor.default-dispatcher-18] [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]] 08:35:34,343 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - node2 (Follower): Log size is now 2 08:35:34,343 AM [test-pekko.actor.default-dispatcher-18] [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} 08:35:34,343 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 0 (of expected -1) 08:35:34,343 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 08:35:34,343 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 1, nextIndex: 2 08:35:34,343 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:35:34,343 AM [test-pekko.actor.default-dispatcher-15] [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} 08:35:34,343 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node1 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 08:35:34,343 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - node1 (Leader): Setting last applied to 1 08:35:34,343 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 08:35:34,343 AM [test-pekko.actor.default-dispatcher-5] [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} 08:35:34,343 AM [test-pekko.actor.default-dispatcher-15] [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]]} 08:35:34,343 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 08:35:34,343 AM [test-pekko.actor.default-dispatcher-15] [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 08:35:34,461 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - node2 (Follower): Commit index set to 1 08:35:34,461 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 08:35:34,461 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - node2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:35:34,461 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - node2 (Follower): Setting last applied to 1 08:35:34,461 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 08:35:34,461 AM [test-pekko.actor.default-dispatcher-14] [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]]} 08:35:34,461 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 08:35:34,545 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader ending 08:35:34,545 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower210] 08:35:34,556 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector211#134433150] 08:35:34,556 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 08:35:34,556 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:35:34,556 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:35:34,556 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector212#811990938] 08:35:34,557 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 08:35:34,557 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:35:34,557 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:35:34,559 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout starting 08:35:34,562 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:35:34,562 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 08:35:34,562 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor [WARN] [07/01/2025 08:35:34.562] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server215]: org.opendaylight.controller.cluster.common.actor.Monitor@53ae9377 08:35:34,564 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3313798098326104434/new-server/TermInfo.properties does not exist 08:35:34,564 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: no eligible files found 08:35:34,564 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:34,566 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:35:34,566 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:35:34,566 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4c06e63b 08:35:34,567 AM [test-pekko.actor.default-dispatcher-5] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:35:34.662] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader216]: org.opendaylight.controller.cluster.common.actor.Monitor@38144481 08:35:34,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:34,663 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:35:34,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:34,663 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:35:34,665 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3313798098326104434/leader/TermInfo.properties does not exist 08:35:34,665 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:35:34,665 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:34,668 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:35:34,668 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:35:34,668 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@74aabfab 08:35:34,668 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:35:34,669 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 08:35:34,669 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:35:34,669 AM [test-pekko.actor.default-dispatcher-5] [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] 08:35:34,669 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 08:35:34,669 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:35:34,669 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - leader: support() called 08:35:34,669 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 08:35:34,669 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:35:34,675 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true], state: Idle 08:35:34,675 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 08:35:34,675 AM [test-pekko.actor.default-dispatcher-5] [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]] 08:35:34,675 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 08:35:34,791 AM [test-pekko.actor.default-dispatcher-5] [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 08:35:34,795 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:35:34,795 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/01/2025 08:35:34.795] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/new-server215] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:35:34,795 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 08:35:34,795 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:35:34,891 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:35:34,891 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 08:35:34,892 AM [test-pekko.actor.default-dispatcher-14] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 08:35:34,892 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout ending 08:35:34,892 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower213] 08:35:34,903 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector214#774364153] 08:35:34,903 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server215] 08:35:34,904 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:34,904 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:35:34,904 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader216] 08:35:34,904 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:35:34,904 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks [INFO] [07/01/2025 08:35:34.906] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:35:34,906 AM [test-pekko.actor.default-dispatcher-15] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/01/2025 08:35:34.907] [test-pekko.actor.default-dispatcher-15] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.43:17355) [INFO] [07/01/2025 08:35:34.908] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - Exiting completed [INFO] [07/01/2025 08:35:34.908] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - Shutting down... [INFO] [07/01/2025 08:35:34.908] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - Successfully shut down 08:35:34,909 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - Exiting completed 08:35:34,909 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - Shutting down... 08:35:34,909 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - Successfully shut down [INFO] [07/01/2025 08:35:34.910] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.171.43:17355/system/remoting-terminator] Shutting down remote daemon. 08:35:34,910 AM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/01/2025 08:35:34.910] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.171.43:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 08:35:34,910 AM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/01/2025 08:35:34.912] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.171.43:17355/system/remoting-terminator] Remoting shut down. 08:35:34,912 AM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/01/2025 08:35:34.912] [test-pekko.actor.internal-dispatcher-10] [EventStream] shutting down: StandardOutLogger