[DEBUG] [07/01/2025 08:16:14.943] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 08:16:14,943 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/01/2025 08:16:14.944] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/01/2025 08:16:14.944] [main] [EventStream(pekko://test)] Default Loggers started 08:16:14,962 AM [test-pekko.actor.default-dispatcher-8] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.13:17355] with UID [3412511484241058488] [INFO] [07/01/2025 08:16:14.961] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.13:17355] with UID [3412511484241058488] [INFO] [07/01/2025 08:16:14.962] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - Starting up, Pekko version [1.0.3] ... 08:16:14,962 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/01/2025 08:16:14.965] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 08:16:14,965 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/01/2025 08:16:14.965] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - Started up successfully 08:16:14,965 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - Started up successfully [INFO] [07/01/2025 08:16:14.966] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13: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:16:14.966] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:16:14,966 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 08:16:14,966 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:16:14,980 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress starting [WARN] [07/01/2025 08:16:14.984] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server109]: org.opendaylight.controller.cluster.common.actor.Monitor@3fa7a80e [INFO] [pekkoDeadLetter][07/01/2025 08:16:14.984] [test-pekko.actor.default-dispatcher-8] [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:16:14,985 AM [test-pekko.actor.default-dispatcher-8] [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:16:14,988 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:14,988 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:16:14,988 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:16:14,994 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/TermInfo.properties does not exist 08:16:14,994 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:14,994 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:15,0 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:15,0 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:15,0 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@516f6144 08:16:15,1 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:16:15,85 AM [test-pekko.actor.default-dispatcher-8] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader110] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [07/01/2025 08:16:15.085] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader110]: org.opendaylight.controller.cluster.common.actor.Monitor@31556ee [INFO] [pekkoDeadLetter][07/01/2025 08:16:15.085] [test-pekko.actor.default-dispatcher-8] [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:16:15,85 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:15,85 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:15,86 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:15,86 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:15,87 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/TermInfo.properties does not exist 08:16:15,87 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 08:16:15,87 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:15,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:15,91 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:15,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@61ebd691 08:16:15,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:15,200 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true], state: Idle 08:16:15,208 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 08:16:15,208 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:15,208 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 08:16:15,208 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:15,208 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 08:16:15,209 AM [leader-%d22607] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:15,209 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:15,212 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:15,212 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:15,212 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 08:16:15,212 AM [leader-%d22608] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-0CA89246.tmp 08:16:15,212 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:15,212 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:15,213 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:15,213 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:15,213 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:15,213 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server109), Chunk: 1/1 08:16:15,216 AM [leader-%d22608] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-0CA89246.v1 08:16:15,216 AM [leader-%d22608] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-0CA89246.v1 08:16:15,217 AM [leader-%d22608] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/TermInfo.properties 08:16:15,217 AM [leader-%d22608] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.212374086Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-0CA89246.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:15,217 AM [leader-%d22608] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:15,217 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:15,217 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:15.212374086Z 08:16:15,217 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:15,217 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:15,260 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false], state: InstallingSnapshot 08:16:15,260 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 08:16:15,261 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 08:16:15,263 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:15,264 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:16:15,264 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:16:15,264 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:16:15,264 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:16:15,264 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:16:15,264 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:16:15.264] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 08:16:15.264] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server109] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [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:16:15,265 AM [test-pekko.actor.default-dispatcher-8] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [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:16:15,265 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:16:15,265 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:16:15,265 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 08:16:15,265 AM [new-server-%d324516] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-0FD5F7BE.tmp 08:16:15,268 AM [new-server-%d324516] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-0FD5F7BE.v1 08:16:15,268 AM [new-server-%d324516] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-0FD5F7BE.v1 08:16:15,268 AM [new-server-%d324516] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/TermInfo.properties 08:16:15,268 AM [new-server-%d324516] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.265680830Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-0FD5F7BE.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:15,268 AM [new-server-%d324516] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:16:15,268 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:16:15,268 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:16:15.265680830Z 08:16:15,268 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:16:15,269 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 08:16:15,269 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: applySnapshot called 08:16:15,269 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:15,270 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:15,270 AM [test-pekko.actor.default-dispatcher-8] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 08:16:15,270 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:16:15,270 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:16:15,270 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:16:15,270 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:15,271 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:15,271 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:15,271 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=a124cc9d-0008-4de2-bf64-602dd27b16f6}, logIndex: 0, isSendImmediate: true 08:16:15,271 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:15,271 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:15,271 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:15,271 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:15,272 AM [test-pekko.actor.default-dispatcher-6] [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:16:15,272 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:15,272 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:15,272 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:15,272 AM [test-pekko.actor.default-dispatcher-6] [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:16:15,272 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-103CD7F3.tmp 08:16:15,272 AM [leader-%d22609] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-10303255.tmp 08:16:15,273 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 08:16:15,274 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-103CD7F3.v1 08:16:15,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-0FD5F7BE.v1 08:16:15,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-103CD7F3.v1 08:16:15,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/TermInfo.properties 08:16:15,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.265680830Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-0FD5F7BE.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:15,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.272422899Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-103CD7F3.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:15,275 AM [test-pekko.actor.default-dispatcher-6] [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:16:15,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:16:15,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:16:15,275 AM [test-pekko.actor.default-dispatcher-6] [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:16:15,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:15,275 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 08:16:15,275 AM [leader-%d22609] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-10303255.v1 08:16:15,275 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:15,275 AM [leader-%d22609] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-0CA89246.v1 08:16:15,276 AM [leader-%d22609] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-10303255.v1 08:16:15,276 AM [leader-%d22609] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/TermInfo.properties 08:16:15,276 AM [leader-%d22609] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.212374086Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-0CA89246.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:15,276 AM [leader-%d22609] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.271594069Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-10303255.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:15,276 AM [leader-%d22609] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:15,276 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) [WARN] [07/01/2025 08:16:15.276] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [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:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [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:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [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:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=451f0b7a-f56c-417e-92fb-6c57935a4bea}, logIndex: 1, isSendImmediate: true 08:16:15,277 AM [leader-%d22610] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-108B4A91.tmp 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [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:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:15,277 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 08:16:15,278 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 [INFO] [pekkoDeadLetter][07/01/2025 08:16:15.278] [test-pekko.actor.default-dispatcher-8] [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:16:15,278 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 08:16:15,278 AM [test-pekko.actor.default-dispatcher-15] [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'. 08:16:15,278 AM [test-pekko.actor.default-dispatcher-12] [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:16:15,278 AM [test-pekko.actor.default-dispatcher-6] [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:16:15,278 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:15,278 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:15,278 AM [test-pekko.actor.default-dispatcher-6] [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:16:15,278 AM [test-pekko.actor.default-dispatcher-6] [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:16:15,279 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-10A1244D.tmp 08:16:15,286 AM [leader-%d22610] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-108B4A91.v1 08:16:15,286 AM [leader-%d22610] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-108B4A91.v1 08:16:15,286 AM [leader-%d22610] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-10303255.v1 08:16:15,286 AM [leader-%d22610] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/TermInfo.properties 08:16:15,286 AM [leader-%d22610] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.271594069Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-10303255.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:15,286 AM [leader-%d22610] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.277564049Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/leader/snapshot-000000006863994F-108B4A91.v1, size=100, entryCompress=NONE, stateCompress=NONE} 08:16:15,286 AM [leader-%d22610] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:15,286 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-10A1244D.v1 08:16:15,287 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-10A1244D.v1 08:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-103CD7F3.v1 08:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/TermInfo.properties 08:16:15,287 AM [test-pekko.actor.default-dispatcher-5] [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:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.272422899Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-103CD7F3.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.278996045Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6724124818296925139/new-server/snapshot-000000006863994F-10A1244D.v1, size=100, entryCompress=NONE, stateCompress=NONE} 08:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [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:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=new-server2, address=null, votingState=NON_VOTING]] 08:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Log size is now 2 08:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Commit index set to 0 08:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [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:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 08:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 08:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 08:16:15,287 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 08:16:15,287 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:15,287 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 08:16:15,287 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 08:16:15,287 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 08:16:15,287 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:16:15,288 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:16:15,288 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:16:15,288 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Commit index set to 1 08:16:15,288 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:16:15,288 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:16:15,288 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 08:16:15,288 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 08:16:15,288 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]]} 08:16:15,289 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) [ERROR] [07/01/2025 08:16:15.288] [test-pekko.actor.internal-dispatcher-11] [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:16:15,330 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress ending 08:16:15,330 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower107] 08:16:15,341 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector108#100270804] 08:16:15,342 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server109] 08:16:15,342 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:15,342 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:15,342 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader110] 08:16:15,343 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:15,343 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:15,343 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector111] 08:16:15,346 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer starting [WARN] [07/01/2025 08:16:15.347] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader113]: org.opendaylight.controller.cluster.common.actor.Monitor@4d2c61f 08:16:15,347 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader113] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][07/01/2025 08:16:15.347] [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:16:15,347 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:15,347 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:15,347 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:15,348 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:15,349 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14222061443809513123/leader/TermInfo.properties does not exist 08:16:15,349 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:16:15,349 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:16:15,353 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:15,353 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:15,353 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@48070e9e 08:16:15,353 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 08:16:15,353 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:16:15,458 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='new-server'}, state: Idle 08:16:15,460 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer ending 08:16:15,460 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower112] 08:16:15,471 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader113] 08:16:15,471 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:15,471 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:15,474 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader starting [WARN] [07/01/2025 08:16:15.475] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader115]: org.opendaylight.controller.cluster.common.actor.Monitor@77d71fe3 [INFO] [pekkoDeadLetter][07/01/2025 08:16:15.475] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader115] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:15,475 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader115] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:15,476 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:15,476 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:15,476 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:15,478 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14052585582923728601/leader/TermInfo.properties does not exist 08:16:15,478 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 08:16:15,478 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:16:15,483 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 08:16:15,483 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 08:16:15,483 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5169fc99 08:16:15,494 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 08:16:15,494 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 08:16:15,495 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader ending 08:16:15,495 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower114] 08:16:15,506 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader115] 08:16:15,506 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:15,506 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:15,509 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader starting [WARN] [07/01/2025 08:16:15.510] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader118]: org.opendaylight.controller.cluster.common.actor.Monitor@7444879f [INFO] [pekkoDeadLetter][07/01/2025 08:16:15.511] [test-pekko.actor.default-dispatcher-16] [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:16:15,511 AM [test-pekko.actor.default-dispatcher-16] [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:16:15,512 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:15,512 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:15,512 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:15,512 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:15,514 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10918383436291273961/leader/TermInfo.properties does not exist 08:16:15,515 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:16:15,515 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 [WARN] [07/01/2025 08:16:15.518] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower117]: org.opendaylight.controller.cluster.common.actor.Monitor@57363b89 08:16:15,518 AM [test-pekko.actor.default-dispatcher-12] [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'. [INFO] [pekkoDeadLetter][07/01/2025 08:16:15.518] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower117] to Actor[pekko://test/user/termination-monitor] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:15,518 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:16:15,519 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: started executor 08:16:15,519 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: started executor 08:16:15,520 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:15,520 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:15,520 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4214c090 08:16:15,520 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10918383436291273961/follower/TermInfo.properties does not exist 08:16:15,520 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: no eligible files found 08:16:15,520 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:15,521 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 08:16:15,521 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:16:15,523 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:16:15,523 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:16:15,523 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@33071a9a 08:16:15,523 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 08:16:15,526 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:16:15,526 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:16:15,526 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:16:15,526 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:16:15.526] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 08:16:15.526] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower117] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower117] was unhandled. [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:16:15,526 AM [test-pekko.actor.default-dispatcher-5] [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:16:15,529 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 08:16:15,532 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true]] 08:16:15,532 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 08:16:15,532 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true} 08:16:15,533 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=c0703269-c88c-4fae-aa00-fe35d5624099}, logIndex: 0, isSendImmediate: true 08:16:15,533 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:15,533 AM [leader-%d396791] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10918383436291273961/leader/snapshot-000000006863994F-1FC6AEAE.tmp 08:16:15,533 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:15,533 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:16:15,533 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true}]} 08:16:15,533 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='leader'} 08:16:15,533 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true}]} 08:16:15,533 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:16:15,533 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:15,533 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 08:16:15,533 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true} 08:16:15,534 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10918383436291273961/follower/snapshot-000000006863994F-1FD47232.tmp 08:16:15,536 AM [leader-%d396791] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10918383436291273961/leader/snapshot-000000006863994F-1FC6AEAE.v1 08:16:15,536 AM [leader-%d396791] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10918383436291273961/leader/snapshot-000000006863994F-1FC6AEAE.v1 08:16:15,537 AM [leader-%d396791] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10918383436291273961/leader/TermInfo.properties 08:16:15,537 AM [leader-%d396791] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.533114542Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10918383436291273961/leader/snapshot-000000006863994F-1FC6AEAE.v1, size=75, entryCompress=NONE, stateCompress=NONE} 08:16:15,537 AM [leader-%d396791] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:15,537 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:15,537 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 08:16:15,537 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10918383436291273961/follower/snapshot-000000006863994F-1FD47232.v1 08:16:15,537 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10918383436291273961/follower/TermInfo.properties 08:16:15,537 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10918383436291273961/follower/snapshot-000000006863994F-1FD47232.v1 08:16:15,537 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.534016562Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10918383436291273961/follower/snapshot-000000006863994F-1FD47232.v1, size=75, entryCompress=NONE, stateCompress=NONE} 08:16:15,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 08:16:15,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [] 08:16:15,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Log size is now 1 08:16:15,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:15,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) [WARN] [07/01/2025 08:16:15.538] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 08:16:15,538 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:16:15,538 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:16:15,538 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:15,538 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 [INFO] [pekkoDeadLetter][07/01/2025 08:16:15.538] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower117] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower117] was unhandled. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:15,538 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 08:16:15,538 AM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower117] was unhandled. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:15,538 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:15,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:16:15,538 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:15,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:15,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:15,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:16:15,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 08:16:15,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} [WARN] [07/01/2025 08:16:15.539] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/leader118] unhandled message from TestActor[pekko://test/user/leader118]: ServerRemoved [serverId=leader] 08:16:15,584 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader ending 08:16:15,584 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower116] 08:16:15,595 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader118] 08:16:15,596 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:15,596 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:15,596 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector119] 08:16:15,597 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector120#1699788231] 08:16:15,597 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower117] 08:16:15,597 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:15,597 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:15,600 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot starting [WARN] [07/01/2025 08:16:15.602] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server123]: org.opendaylight.controller.cluster.common.actor.Monitor@3cfb63bd 08:16:15,603 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:15,603 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 08:16:15,603 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 08:16:15,604 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12195358320721089327/new-server/TermInfo.properties does not exist 08:16:15,605 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:15,605 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:16:15,608 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:15,608 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:15,608 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@27c7a83e 08:16:15,608 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:16:15.609] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader124]: org.opendaylight.controller.cluster.common.actor.Monitor@6a6f4a28 08:16:15,610 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:15,610 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:15,610 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:15,610 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:15,611 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12195358320721089327/leader/TermInfo.properties does not exist 08:16:15,611 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 08:16:15,611 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:15,614 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:15,614 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:15,614 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5c941376 08:16:15,614 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:15,621 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true], state: Idle 08:16:15,622 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 08:16:15,622 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:15,622 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 08:16:15,622 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:15,622 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 08:16:15,622 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:15,623 AM [leader-%d433827] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:15,623 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:15,623 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:15,623 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 08:16:15,623 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:15,623 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:15,624 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:15,624 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:15,624 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:15,624 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server123), Chunk: 1/1 08:16:15,624 AM [leader-%d433828] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12195358320721089327/leader/snapshot-000000006863994F-252EF485.tmp 08:16:15,624 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 08:16:15,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:15,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:16:15,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:16:15,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:16:15,628 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:16:15,628 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:16:15,629 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:16:15.629] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server123] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:15,629 AM [leader-%d433828] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12195358320721089327/leader/snapshot-000000006863994F-252EF485.v1 08:16:15,629 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:16:15,629 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:16:15,629 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 08:16:15,629 AM [leader-%d433828] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12195358320721089327/leader/snapshot-000000006863994F-252EF485.v1 08:16:15,630 AM [leader-%d433828] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12195358320721089327/leader/TermInfo.properties 08:16:15,630 AM [leader-%d433828] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.623834245Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12195358320721089327/leader/snapshot-000000006863994F-252EF485.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:15,630 AM [new-server-%d472298] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12195358320721089327/new-server/snapshot-000000006863994F-258B369D.tmp 08:16:15,630 AM [leader-%d433828] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:15,630 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:15,630 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:15.623834245Z 08:16:15,630 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:15,630 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:15,632 AM [new-server-%d472298] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12195358320721089327/new-server/snapshot-000000006863994F-258B369D.v1 08:16:15,633 AM [new-server-%d472298] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12195358320721089327/new-server/TermInfo.properties 08:16:15,633 AM [new-server-%d472298] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12195358320721089327/new-server/snapshot-000000006863994F-258B369D.v1 08:16:15,633 AM [new-server-%d472298] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:15.629880477Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12195358320721089327/new-server/snapshot-000000006863994F-258B369D.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:15,633 AM [new-server-%d472298] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:16:15,633 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:16:15,633 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:16:15.629880477Z 08:16:15,633 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:16:15,633 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: support() called 08:16:15,633 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: applySnapshot called 08:16:15,634 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:15,634 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:16:15,634 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:15,634 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 08:16:15,634 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:16:15,672 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:16:15,672 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server new-server: not leader 08:16:17,238 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:16:17,238 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 08:16:17,239 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 08:16:17,239 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot ending 08:16:17,239 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower121] 08:16:17,250 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector122#-432248221] 08:16:17,251 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server123] 08:16:17,251 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:17,251 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:17,251 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader124] 08:16:17,251 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:17,252 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:17,252 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector125] 08:16:17,255 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected starting [WARN] [07/01/2025 08:16:17.257] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@1a78c3bb 08:16:17,259 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 08:16:17,259 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: started executor 08:16:17,259 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 08:16:17.261] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@44605677 08:16:17,261 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest898760801011605653/node1/TermInfo.properties does not exist 08:16:17,262 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: no eligible files found 08:16:17,262 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:16:17,262 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:16:17,262 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:16:17,262 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:16:17,268 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 08:16:17,268 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: started executor 08:16:17,269 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: started executor 08:16:17,270 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:16:17,270 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:16:17,270 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@214511f 08:16:17,270 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest898760801011605653/node2/TermInfo.properties does not exist 08:16:17,271 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node2: no eligible files found 08:16:17,271 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:16:17,271 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:16:17,271 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:16:17,271 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:16:17,274 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:16:17,274 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:16:17,274 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@36fd9fe1 08:16:17,372 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 08:16:17,377 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:17,377 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:16:17,377 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:16:17,378 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:17,378 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:16:17,378 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:16:17,382 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 08:16:17,382 AM [test-pekko.actor.default-dispatcher-12] [INFO] Candidate - node1 (Candidate): Starting new election term 2 08:16:17,382 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 08:16:17,382 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:16:17,423 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 08:16:17,423 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [] 08:16:17,426 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=node2 08:16:17,426 AM [test-pekko.actor.default-dispatcher-16] [INFO] Candidate - node2 (Candidate): Starting new election term 2 08:16:17,426 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:16:17,427 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node2 (Candidate): Received ElectionTimeout 08:16:17,427 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 08:16:17,427 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:17,427 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:16:17,427 AM [test-pekko.actor.default-dispatcher-12] [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:16:17,427 AM [test-pekko.actor.default-dispatcher-12] [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:16:17,427 AM [test-pekko.actor.default-dispatcher-12] [INFO] Candidate - node1 (Candidate): New Leader node2 sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:16:17,428 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:16:17,539 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 08:16:17,539 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node2 elected 08:16:17,539 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - node1: Forwarding ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] to new leader 08:16:17,539 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 08:16:17,539 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 08:16:17,539 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 08:16:17,539 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - node1: getLeaderAddress leaderId = node2 peerAddress = pekko://test/user/node2 08:16:17,539 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:17,539 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - node1: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/node2)] 08:16:17,539 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 08:16:17,540 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:17,540 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=pekko://test/user/node1, votingState=VOTING]] [WARN] [07/01/2025 08:16:17.540] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 08:16:17,540 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 08:16:17,540 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node2: Persist data index=1 term=2 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:17,540 AM [test-pekko.actor.default-dispatcher-12] [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:16:17,540 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=7e59ae98-bd3e-4590-ab7f-0c466af65a23}, logIndex: 1, isSendImmediate: true 08:16:17,541 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:17,541 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 08:16:17,541 AM [test-pekko.actor.default-dispatcher-12] [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:16:17,541 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 08:16:17,541 AM [test-pekko.actor.default-dispatcher-16] [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:16:17,541 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 1 08:16:17,541 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:17,541 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:17,541 AM [test-pekko.actor.default-dispatcher-16] [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:16:17,541 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 08:16:17,541 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Log size is now 2 08:16:17,541 AM [test-pekko.actor.default-dispatcher-16] [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:16:17,542 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 08:16:17,542 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 1, nextIndex: 2 08:16:17,542 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 08:16:17,542 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:17,543 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - node2: persist complete JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 08:16:17,543 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 08:16:17,543 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 08:16:17,543 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 0 08:16:17,543 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 08:16:17,543 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 08:16:17,543 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 1 08:16:17,543 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 08:16:17,543 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:17,543 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 08:16:17,543 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 2 08:16:17,543 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorVotingConfigSupport - node2: VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:17,544 AM [test-pekko.actor.default-dispatcher-16] [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:16:17.544] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 08:16:17,658 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): Commit index set to 1 08:16:17,658 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 08:16:17,658 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 08:16:17,658 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 08:16:17,658 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 08:16:17,658 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:16:17,658 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 08:16:17,658 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 08:16:17,659 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:16:17,659 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 08:16:17,659 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 2 08:16:17,779 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 08:16:17,846 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected ending 08:16:17,846 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower126] 08:16:17,847 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector127#1173811488] 08:16:17,848 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 08:16:17,848 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:17,848 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:17,848 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector128#-1799962155] 08:16:17,849 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 08:16:17,849 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:17,849 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:17,852 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout starting [WARN] [07/01/2025 08:16:17.854] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server131]: org.opendaylight.controller.cluster.common.actor.Monitor@6c75f7cd 08:16:17,855 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:17,855 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 08:16:17,855 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 08:16:17,858 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18095251758034038250/new-server/TermInfo.properties does not exist 08:16:17,858 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:17,858 AM [test-pekko.actor.default-dispatcher-12] [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:16:17,862 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:17,862 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:17,862 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2d2de41e 08:16:17,863 AM [test-pekko.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:17.864] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader132]: org.opendaylight.controller.cluster.common.actor.Monitor@79f7f379 08:16:17,864 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:17,864 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:17,864 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:17,864 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:17,866 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18095251758034038250/leader/TermInfo.properties does not exist 08:16:17,866 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 08:16:17,866 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:17,869 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:17,869 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:17,869 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@60129c0d 08:16:17,869 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:17,869 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true], state: Idle 08:16:17,869 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 08:16:17,869 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:17,869 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 08:16:17,869 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:17,869 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 08:16:17,870 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:17,870 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=bogus] 08:16:17,870 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server bogus: server Id doesn't match 08:16:17,870 AM [leader-%d913368] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:17,870 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:17,870 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:17,870 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 08:16:17,870 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:17,870 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:17,871 AM [leader-%d913369] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18095251758034038250/leader/snapshot-0000000068639951-33E8EC4E.tmp 08:16:17,871 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:17,871 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:17,871 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:17,871 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server131), Chunk: 1/1 08:16:17,873 AM [leader-%d913369] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18095251758034038250/leader/snapshot-0000000068639951-33E8EC4E.v1 08:16:17,873 AM [leader-%d913369] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18095251758034038250/leader/snapshot-0000000068639951-33E8EC4E.v1 08:16:17,874 AM [leader-%d913369] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18095251758034038250/leader/TermInfo.properties 08:16:17,874 AM [leader-%d913369] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:17.870902862Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18095251758034038250/leader/snapshot-0000000068639951-33E8EC4E.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:17,874 AM [leader-%d913369] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:17,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:17,874 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:17.870902862Z 08:16:17,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:17,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:17,988 AM [test-pekko.actor.default-dispatcher-12] [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:16:17,992 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:17,992 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:16:17,992 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 [WARN] [07/01/2025 08:16:17.992] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server131] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:18,88 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:16:18,88 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 08:16:18,88 AM [test-pekko.actor.default-dispatcher-12] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 08:16:18,88 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout ending 08:16:18,88 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower129] 08:16:18,100 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector130#2025631423] 08:16:18,100 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server131] 08:16:18,100 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:18,100 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:18,101 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader132] 08:16:18,101 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:18,101 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:18,104 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower starting [WARN] [07/01/2025 08:16:18.105] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server135]: org.opendaylight.controller.cluster.common.actor.Monitor@3b178902 08:16:18,106 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:18,106 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 08:16:18,106 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 08:16:18,108 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/TermInfo.properties does not exist 08:16:18,108 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:18,108 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:16:18,112 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:18,112 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:18,112 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@20a9eb61 08:16:18,112 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:16:18,112 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:16:18.113] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader136]: org.opendaylight.controller.cluster.common.actor.Monitor@125216a1 08:16:18,113 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:18,113 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:18,114 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:18,114 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:18,115 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/TermInfo.properties does not exist 08:16:18,115 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 08:16:18,115 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:18,117 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:18,117 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:18,118 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3ef49075 08:16:18,118 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:18,118 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true], state: Idle 08:16:18,118 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 08:16:18,118 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 08:16:18,118 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:18,118 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 08:16:18,118 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:18,119 AM [leader-%d348156] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:18,119 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:18,119 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 08:16:18,119 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 08:16:18,119 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:18,119 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:18,119 AM [leader-%d348157] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/snapshot-0000000068639952-072087AD.tmp 08:16:18,119 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:18,119 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:18,119 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:18,119 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server135), Chunk: 1/1 08:16:18,119 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 08:16:18,122 AM [leader-%d348157] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/snapshot-0000000068639952-072087AD.v1 08:16:18,122 AM [leader-%d348157] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/snapshot-0000000068639952-072087AD.v1 08:16:18,123 AM [leader-%d348157] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/TermInfo.properties 08:16:18,123 AM [leader-%d348157] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:18.119572397Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/snapshot-0000000068639952-072087AD.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:18,123 AM [leader-%d348157] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:18,123 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:18,123 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:18.119572397Z 08:16:18,123 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:18,123 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:18,123 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:18,123 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:16:18,123 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 1 08:16:18,123 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:16:18,123 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:16:18,124 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:16:18,124 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:16:18.124] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:18,124 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:16:18,124 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:16:18,124 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - new-server: support() called 08:16:18,125 AM [new-server-%d479104] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/snapshot-0000000068639952-077287B7.tmp 08:16:18,127 AM [new-server-%d479104] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/snapshot-0000000068639952-077287B7.v1 08:16:18,127 AM [new-server-%d479104] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/snapshot-0000000068639952-077287B7.v1 08:16:18,127 AM [new-server-%d479104] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/TermInfo.properties 08:16:18,128 AM [new-server-%d479104] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:18.124946359Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/snapshot-0000000068639952-077287B7.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:18,128 AM [new-server-%d479104] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:16:18,128 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:16:18,128 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:16:18.124946359Z 08:16:18,128 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:16:18,128 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: support() called 08:16:18,128 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: applySnapshot called 08:16:18,128 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:18,128 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:16:18,128 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:18,128 AM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 1, nextIndex set to 2 08:16:18,128 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:16:18,128 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 08:16:18,128 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:16:18,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:18,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Persist data index=2 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:18,129 AM [test-pekko.actor.default-dispatcher-12] [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:16:18,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=896adb47-6c3b-4a0c-93b4-bb71dc7a783b}, logIndex: 2, isSendImmediate: true 08:16:18,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:18,129 AM [leader-%d348158] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/snapshot-0000000068639952-07B42901.tmp 08:16:18,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 08:16:18,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 2 is present for follower new-server 08:16:18,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=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:16:18,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 08:16:18,129 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:18,129 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:18,129 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 08:16:18,129 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:18,130 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:18,130 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/snapshot-0000000068639952-07C0FB26.tmp 08:16:18,132 AM [leader-%d348158] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/snapshot-0000000068639952-07B42901.v1 08:16:18,132 AM [leader-%d348158] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/snapshot-0000000068639952-072087AD.v1 08:16:18,132 AM [leader-%d348158] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/snapshot-0000000068639952-07B42901.v1 08:16:18,132 AM [leader-%d348158] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/TermInfo.properties 08:16:18,133 AM [leader-%d348158] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:18.119572397Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/snapshot-0000000068639952-072087AD.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:18,133 AM [leader-%d348158] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:18.129247489Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/leader/snapshot-0000000068639952-07B42901.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:18,133 AM [leader-%d348158] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:18,133 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:18,133 AM [test-pekko.actor.default-dispatcher-12] [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:16:18,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/snapshot-0000000068639952-07C0FB26.v1 08:16:18,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/snapshot-0000000068639952-07C0FB26.v1 08:16:18,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/snapshot-0000000068639952-077287B7.v1 08:16:18,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/TermInfo.properties 08:16:18,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:18.124946359Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/snapshot-0000000068639952-077287B7.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:18,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:18.130087718Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2472211806253813749/new-server/snapshot-0000000068639952-07C0FB26.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:18,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:18,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:16:18,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:16:18,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:18,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected 1) 08:16:18,134 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 2, nextIndex: 3 08:16:18,134 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 08:16:18,134 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 2 08:16:18,134 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 1 to 2 08:16:18,134 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:18,134 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 [WARN] [07/01/2025 08:16:18.134] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:16:18,134 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 08:16:18,134 AM [test-pekko.actor.default-dispatcher-12] [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:16:18,134 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Commit index set to 2 08:16:18,134 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 08:16:18,134 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:16:18,134 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 2 08:16:18,134 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 1 to 2 08:16:18,134 AM [test-pekko.actor.default-dispatcher-5] [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:16:18,166 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower ending 08:16:18,166 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower133] 08:16:18,168 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector134#-653384385] 08:16:18,168 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server135] 08:16:18,168 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:18,168 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:18,169 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader136] 08:16:18,169 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:18,169 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:18,169 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector137] 08:16:18,173 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout starting [WARN] [07/01/2025 08:16:18.175] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@11f76d7c 08:16:18,176 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 08:16:18,176 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: started executor 08:16:18,176 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 08:16:18.178] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@6a59c77f 08:16:18,179 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 08:16:18,179 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: started executor 08:16:18,179 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2996785241153431380/node1/TermInfo.properties does not exist 08:16:18,179 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: started executor 08:16:18,179 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: no eligible files found 08:16:18,179 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:16:18,179 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:16:18,179 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING]] 08:16:18,179 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:16:18,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2996785241153431380/node2/TermInfo.properties does not exist 08:16:18,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: no eligible files found 08:16:18,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:16:18,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:16:18,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - node2: Updated server config: isVoting: false, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 08:16:18,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 1, size: 1 08:16:18,182 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:16:18,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 1 08:16:18,182 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:16:18,182 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5e03d78d 08:16:18,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 1 08:16:18,182 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - node2: Recovery completed in 147.6 μs - Switching actor to Follower - last log index = 1, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 2 08:16:18,185 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:16:18,185 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:16:18,185 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@29d2c3c8 08:16:18,190 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 08:16:18,190 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:18,190 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:16:18,190 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:16:18,190 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:18,190 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:16:18,190 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:16:18,193 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 08:16:18,193 AM [test-pekko.actor.default-dispatcher-12] [INFO] Candidate - node1 (Candidate): Starting new election term 2 08:16:18,193 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 08:16:18,193 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:16:18,193 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:16:18,193 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 08:16:18,193 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 08:16:18,193 AM [test-pekko.actor.default-dispatcher-17] [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:16:18,196 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=null 08:16:18,196 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 1, lastTerm: 1 08:16:18,196 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 08:16:18,196 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=false}, my term is 2 08:16:18,197 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=false}, current voteCount: 1 08:16:18,508 AM [test-pekko.actor.default-dispatcher-16] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 08:16:18,508 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=NON_VOTING]] 08:16:18,508 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 08:16:18,508 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: Found server ActorSelection[Anchor(pekko://test/), Path(/user/node2)] to forward to 08:16:18,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]], state: Idle 08:16:18,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:18,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node2: Sending local ElectionTimeout to start leader election 08:16:18,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=VOTING]] 08:16:18,510 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 08:16:18,510 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [node1] 08:16:18,514 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node2 08:16:18,514 AM [test-pekko.actor.default-dispatcher-12] [INFO] Candidate - node2 (Candidate): Starting new election term 3 08:16:18,514 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node2 (Candidate): Sending RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} to peer node1 08:16:18,514 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 08:16:18,514 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:16:18,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): Cluster state: [] 08:16:18,515 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} with higher term appears reachable, updating term. 08:16:18,515 AM [test-pekko.actor.default-dispatcher-17] [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:16:18,518 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=null 08:16:18,518 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): In requestVote: RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 08:16:18,520 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node2 08:16:18,520 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 08:16:18,521 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node2 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 08:16:18,521 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node2 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 08:16:18,521 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 08:16:18,521 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:18,521 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:16:18,521 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node2: New leader node2 elected 08:16:18,521 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 08:16:18,521 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 08:16:18,521 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node2: Persist data index=2 term=3 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:18,521 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true} [WARN] [07/01/2025 08:16:18.522] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 08:16:18,522 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=29901408-fd20-476b-8726-aed807756b34}, logIndex: 2, isSendImmediate: true 08:16:18,522 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 08:16:18,522 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]] 08:16:18,522 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) [WARN] [07/01/2025 08:16:18.522] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 08:16:18,523 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 08:16:18,523 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 3 08:16:18,523 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 08:16:18,523 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 08:16:18,523 AM [test-pekko.actor.default-dispatcher-16] [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:16:18,523 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 08:16:18,523 AM [test-pekko.actor.default-dispatcher-5] [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:16:18,523 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 2 08:16:18,523 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:18,523 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - node1 (Follower): Append entry to log 2 08:16:18,523 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=1, term=1, command=2, pending=false} 08:16:18,523 AM [test-pekko.actor.default-dispatcher-12] [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:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - node1 (Follower): Log size is now 3 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - node1 (Follower): Commit index set to 1 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [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:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=false]]} 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - node1: Applying state for log index 1 data 2 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - node1: applyState called: 2 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 3 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 2, nextIndex: 3 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 08:16:18,524 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 2 08:16:18,525 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 1 to 2 08:16:18,525 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - node2: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:18,525 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=2 08:16:18,525 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 1 for term 3 08:16:18,525 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 08:16:18,525 AM [test-pekko.actor.default-dispatcher-5] [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:16:18,525 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=1, command=2, pending=false} 08:16:18,525 AM [test-pekko.actor.default-dispatcher-12] [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:16:18,526 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Commit index set to 2 08:16:18,526 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 08:16:18,526 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:16:18,526 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 2 08:16:18,526 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 1 to 2 08:16:18,526 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:18,526 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=2 08:16:18,526 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 1 for term 3 08:16:18,639 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 08:16:18,725 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout ending 08:16:18,725 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower138] 08:16:18,737 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector139#1586631559] 08:16:18,737 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 08:16:18,738 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:18,738 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:18,738 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector140#-2070115902] 08:16:18,738 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 08:16:18,738 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:18,738 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:18,741 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached starting [WARN] [07/01/2025 08:16:18.742] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server143]: org.opendaylight.controller.cluster.common.actor.Monitor@85a1dfa 08:16:18,743 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:18,743 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:16:18,743 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:16:18,744 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/new-server/TermInfo.properties does not exist 08:16:18,745 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:18,745 AM [test-pekko.actor.default-dispatcher-12] [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:16:18,747 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:18,747 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:18,747 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@26fcf76e 08:16:18,748 AM [test-pekko.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:18.748] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader144]: org.opendaylight.controller.cluster.common.actor.Monitor@750f921b 08:16:18,749 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:18,749 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:18,749 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:18,749 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:18,750 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/TermInfo.properties does not exist 08:16:18,751 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:16:18,751 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:16:18,753 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:18,753 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:18,753 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@49252de 08:16:18,753 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:18,862 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true], state: Idle 08:16:18,862 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 08:16:18,863 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:18,863 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 08:16:18,863 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:18,863 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 08:16:18,863 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:18,864 AM [leader-%d131331] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:18,864 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:18,864 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:18,864 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 08:16:18,865 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:18,865 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:18,865 AM [leader-%d131332] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/snapshot-0000000068639952-338F2ABA.tmp 08:16:18,865 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:18,865 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:18,865 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:18,865 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server143), Chunk: 1/1 08:16:18,865 AM [test-pekko.actor.default-dispatcher-5] [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:16:18,868 AM [leader-%d131332] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/snapshot-0000000068639952-338F2ABA.v1 08:16:18,869 AM [leader-%d131332] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/snapshot-0000000068639952-338F2ABA.v1 08:16:18,869 AM [leader-%d131332] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/TermInfo.properties 08:16:18,869 AM [leader-%d131332] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:18.865020602Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/snapshot-0000000068639952-338F2ABA.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:18,869 AM [leader-%d131332] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:18,869 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:18,869 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:18.865020602Z 08:16:18,869 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:18,869 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:18,870 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:18,870 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:16:18,870 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 08:16:18,870 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:16:18,870 AM [test-pekko.actor.default-dispatcher-5] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:16:18,870 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:16:18,870 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:16:18.870] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server143] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:18,871 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:16:18,871 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:16:18,871 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: support() called 08:16:18,872 AM [new-server-%d87183] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/new-server/snapshot-0000000068639952-33F7AD7E.tmp 08:16:18,874 AM [new-server-%d87183] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/new-server/snapshot-0000000068639952-33F7AD7E.v1 08:16:18,874 AM [new-server-%d87183] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/new-server/snapshot-0000000068639952-33F7AD7E.v1 08:16:18,875 AM [new-server-%d87183] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/new-server/TermInfo.properties 08:16:18,875 AM [new-server-%d87183] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:18.871869822Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/new-server/snapshot-0000000068639952-33F7AD7E.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:18,875 AM [new-server-%d87183] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:16:18,875 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:16:18,875 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:16:18.871869822Z 08:16:18,875 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:16:18,875 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: support() called 08:16:18,875 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: applySnapshot called 08:16:18,875 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:18,875 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:16:18,875 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:18,875 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 08:16:18,875 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:16:18,912 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:16:18,913 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:18,913 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:18,913 AM [test-pekko.actor.default-dispatcher-5] [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:16:18,913 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=f6c8db38-988f-4184-b4d8-f8c8d7159e3b}, logIndex: 0, isSendImmediate: true 08:16:18,913 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:18,913 AM [leader-%d131333] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/snapshot-0000000068639952-36708DA6.tmp 08:16:18,913 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:18,913 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:18,913 AM [test-pekko.actor.default-dispatcher-5] [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:16:18,913 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 08:16:18,916 AM [leader-%d131333] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/snapshot-0000000068639952-36708DA6.v1 08:16:18,916 AM [leader-%d131333] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/snapshot-0000000068639952-338F2ABA.v1 08:16:18,917 AM [leader-%d131333] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/snapshot-0000000068639952-36708DA6.v1 08:16:18,917 AM [leader-%d131333] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/TermInfo.properties 08:16:18,917 AM [leader-%d131333] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:18.865020602Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/snapshot-0000000068639952-338F2ABA.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:18,917 AM [leader-%d131333] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:18.913345958Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3911224327729249394/leader/snapshot-0000000068639952-36708DA6.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:18,917 AM [leader-%d131333] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:18,917 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:18,917 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:18,964 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 08:16:18,965 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 08:16:18,978 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:19,99 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:19,99 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:19,218 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:19,218 AM [test-pekko.actor.default-dispatcher-5] [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:16:19,338 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:19,338 AM [test-pekko.actor.default-dispatcher-5] [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:16:19,458 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:19,458 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:19,578 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:19,578 AM [test-pekko.actor.default-dispatcher-5] [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:16:19,698 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:19,698 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:19,818 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:19,818 AM [test-pekko.actor.default-dispatcher-5] [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:16:20,928 AM [test-pekko.actor.default-dispatcher-5] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured while replicating the new server configuration for new-server 08:16:20,928 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 08:16:20,928 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 08:16:20,928 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 08:16:20,928 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached ending 08:16:20,928 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower141] 08:16:20,940 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector142#72102753] 08:16:20,940 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server143] 08:16:20,940 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:20,940 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:20,940 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader144] 08:16:20,941 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:20,941 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:20,941 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector145] 08:16:20,941 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-serverCollector146] 08:16:20,945 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers starting [WARN] [07/01/2025 08:16:20.946] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader148]: org.opendaylight.controller.cluster.common.actor.Monitor@273522d8 08:16:20,947 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:20,947 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:20,947 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:20,947 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:20,949 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest432729084551664943/leader/TermInfo.properties does not exist 08:16:20,949 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 08:16:20,950 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:20,956 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:20,956 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:20,956 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7701c357 08:16:20,956 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:20,958 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 08:16:20,959 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers ending 08:16:20,959 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower147] 08:16:20,971 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader148] 08:16:20,971 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:20,971 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:20,974 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete starting [WARN] [07/01/2025 08:16:20.975] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server151]: org.opendaylight.controller.cluster.common.actor.Monitor@3b8c67c4 08:16:20,976 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:20,976 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:16:20,976 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:16:20,980 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13386644233548683212/new-server/TermInfo.properties does not exist 08:16:20,980 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:20,980 AM [test-pekko.actor.default-dispatcher-12] [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:16:20,984 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:20,984 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:20,984 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5127668c 08:16:20,985 AM [test-pekko.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:20.986] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader152]: org.opendaylight.controller.cluster.common.actor.Monitor@4df9825f 08:16:20,986 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:20,986 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:20,986 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:20,986 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:20,987 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13386644233548683212/leader/TermInfo.properties does not exist 08:16:20,988 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:16:20,988 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:16:20,991 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:20,991 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:20,991 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@13f1e70a 08:16:20,991 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:20,991 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 08:16:20,991 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:16:20,991 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:16:20,991 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 08:16:20,991 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:20,991 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - leader: support() called 08:16:20,992 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:16:20,992 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:20,992 AM [leader-%d877882] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13386644233548683212/leader/snapshot-0000000068639954-3B268699.tmp 08:16:20,994 AM [leader-%d877882] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13386644233548683212/leader/snapshot-0000000068639954-3B268699.v1 08:16:20,995 AM [leader-%d877882] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13386644233548683212/leader/snapshot-0000000068639954-3B268699.v1 08:16:20,995 AM [leader-%d877882] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13386644233548683212/leader/TermInfo.properties 08:16:20,995 AM [leader-%d877882] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:20.992380569Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13386644233548683212/leader/snapshot-0000000068639954-3B268699.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:20,995 AM [leader-%d877882] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:20,995 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:20,998 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:16:20,998 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 08:16:20,998 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:16:20,998 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 08:16:21,102 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:21,102 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:21,102 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:20.992380569Z 08:16:21,102 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:21,102 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 08:16:21,102 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: No longer the leader 08:16:21,102 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:21,102 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:16:21,102 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:16:21,103 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:16:21,103 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete ending 08:16:21,103 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower149] 08:16:21,104 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector150#234776182] 08:16:21,105 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server151] 08:16:21,105 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:21,105 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:21,105 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader152] 08:16:21,105 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:21,105 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:21,108 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting starting [WARN] [07/01/2025 08:16:21.110] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server155]: org.opendaylight.controller.cluster.common.actor.Monitor@7853c0e7 08:16:21,110 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:21,111 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:16:21,111 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:16:21,112 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/TermInfo.properties does not exist 08:16:21,113 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:21,113 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:21,116 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:21,116 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:21,116 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@245042c3 08:16:21,117 AM [test-pekko.actor.default-dispatcher-8] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:21.118] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader156]: org.opendaylight.controller.cluster.common.actor.Monitor@3b587fe3 08:16:21,119 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:21,119 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:21,119 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:21,119 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:21,120 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/TermInfo.properties does not exist 08:16:21,120 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: no eligible files found 08:16:21,121 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:21,123 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:21,123 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:21,123 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1d3cdac6 08:16:21,123 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:21,123 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false], state: Idle 08:16:21,124 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 08:16:21,124 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 08:16:21,124 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:16:21,124 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:21,124 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:21,124 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=8998a089-a69f-4593-ac30-476d7e64eb6a}, logIndex: 0, isSendImmediate: true 08:16:21,124 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:21,124 AM [leader-%d993480] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/snapshot-0000000068639955-07684184.tmp 08:16:21,124 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:21,124 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:21,124 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,124 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 08:16:21,124 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:16:21,124 AM [test-pekko.actor.default-dispatcher-8] [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:16:21,127 AM [leader-%d993480] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/snapshot-0000000068639955-07684184.v1 08:16:21,127 AM [leader-%d993480] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/snapshot-0000000068639955-07684184.v1 08:16:21,127 AM [leader-%d993480] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/TermInfo.properties 08:16:21,127 AM [leader-%d993480] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.124273028Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/snapshot-0000000068639955-07684184.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:21,127 AM [leader-%d993480] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:21,127 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:21,127 AM [test-pekko.actor.default-dispatcher-8] [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:16:21,128 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:21,128 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 08:16:21,128 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 [WARN] [07/01/2025 08:16:21.128] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:21,128 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,128 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:21,128 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=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:16:21,128 AM [test-pekko.actor.default-dispatcher-12] [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:16:21,128 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:21,128 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:21,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:21,129 AM [test-pekko.actor.default-dispatcher-12] [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:16:21,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/snapshot-0000000068639955-07B1B91D.tmp 08:16:21,131 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/snapshot-0000000068639955-07B1B91D.v1 08:16:21,131 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/snapshot-0000000068639955-07B1B91D.v1 08:16:21,131 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/TermInfo.properties 08:16:21,131 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.129087773Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/snapshot-0000000068639955-07B1B91D.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:21,131 AM [test-pekko.actor.default-dispatcher-12] [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:16:21,131 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:16:21,131 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:16:21,131 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Commit index set to 0 08:16:21,131 AM [test-pekko.actor.default-dispatcher-12] [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:16:21,131 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:21,131 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:21,132 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 08:16:21,132 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 08:16:21,132 AM [test-pekko.actor.default-dispatcher-12] [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:16:21,132 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 08:16:21,132 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:16:21.132] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:16:21,238 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:21,358 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:21,479 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:21,598 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:21,679 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false], state: Idle 08:16:21,679 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 08:16:21,679 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 08:16:21,679 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:16:21,679 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,679 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,680 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=a21e12f8-bd70-4fee-8bb8-7c6b793e0f0e}, logIndex: 1, isSendImmediate: true 08:16:21,680 AM [leader-%d993481] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/snapshot-0000000068639955-288892B2.tmp 08:16:21,680 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 08:16:21,680 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 08:16:21,680 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,680 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:21,680 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 08:16:21,680 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,680 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:21,680 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 08:16:21,680 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 08:16:21,681 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,681 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 08:16:21,681 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:21,681 AM [test-pekko.actor.default-dispatcher-5] [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}]} 08:16:21,681 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:21,681 AM [test-pekko.actor.default-dispatcher-17] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:626) [ERROR] [07/01/2025 08:16:21.681] [test-pekko.actor.internal-dispatcher-3] [pekko://test/user/follower153] Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:626) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 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:16:21,681 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:21,682 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:21,682 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:21,682 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/snapshot-0000000068639955-28A85E7A.tmp 08:16:21,685 AM [leader-%d993481] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/snapshot-0000000068639955-288892B2.v1 08:16:21,686 AM [leader-%d993481] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/snapshot-0000000068639955-288892B2.v1 08:16:21,686 AM [leader-%d993481] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/snapshot-0000000068639955-07684184.v1 08:16:21,686 AM [leader-%d993481] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/TermInfo.properties 08:16:21,686 AM [leader-%d993481] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.124273028Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/snapshot-0000000068639955-07684184.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:21,686 AM [leader-%d993481] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.680039090Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/leader/snapshot-0000000068639955-288892B2.v1, size=100, entryCompress=NONE, stateCompress=NONE} 08:16:21,686 AM [leader-%d993481] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:21,686 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:21,686 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/snapshot-0000000068639955-28A85E7A.v1 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/snapshot-0000000068639955-28A85E7A.v1 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/snapshot-0000000068639955-07B1B91D.v1 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/TermInfo.properties 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.129087773Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/snapshot-0000000068639955-07B1B91D.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.682122874Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4093407870931306092/new-server/snapshot-0000000068639955-28A85E7A.v1, size=100, entryCompress=NONE, stateCompress=NONE} 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=new-server2, address=null, votingState=NON_VOTING]] 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Log size is now 2 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): Commit index set to 1 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 08:16:21,687 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - new-server: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:21,687 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 08:16:21,687 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:16:21,731 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting ending 08:16:21,731 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower153] 08:16:21,733 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector154#-1879838687] 08:16:21,733 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server155] 08:16:21,733 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:21,733 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:21,734 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader156] 08:16:21,734 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:21,734 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:21,734 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector157] 08:16:21,737 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress starting [WARN] [07/01/2025 08:16:21.739] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server160]: org.opendaylight.controller.cluster.common.actor.Monitor@e935ce3 08:16:21,740 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:21,740 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:16:21,740 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:16:21,741 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/TermInfo.properties does not exist 08:16:21,741 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:21,741 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:21,744 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:21,744 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:21,744 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@a96c0f7 08:16:21,745 AM [test-pekko.actor.default-dispatcher-8] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:21.746] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader161]: org.opendaylight.controller.cluster.common.actor.Monitor@7f98cb97 08:16:21,747 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:21,747 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:21,747 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 08:16:21,747 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 08:16:21,749 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/TermInfo.properties does not exist 08:16:21,749 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:16:21,749 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:16:21,752 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:21,752 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:21,752 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7183ffeb 08:16:21,752 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:21,753 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 08:16:21,753 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:16:21,753 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:16:21,753 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 08:16:21,753 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:21,753 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - leader: support() called 08:16:21,753 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:16:21,753 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:21,753 AM [leader-%d649897] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-2CEBC3BC.tmp 08:16:21,756 AM [leader-%d649897] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-2CEBC3BC.v1 08:16:21,757 AM [leader-%d649897] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-2CEBC3BC.v1 08:16:21,757 AM [leader-%d649897] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/TermInfo.properties 08:16:21,757 AM [leader-%d649897] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.753648572Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-2CEBC3BC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:21,757 AM [leader-%d649897] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:21,757 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:21,861 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true], state: Idle 08:16:21,861 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 08:16:21,861 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:16:21,861 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 08:16:21,861 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:21,861 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:21,861 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:21.753648572Z 08:16:21,861 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:21,861 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 08:16:21,862 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:16:21,862 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=false] to install on new-server 08:16:21,862 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:21,862 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - leader: support() called 08:16:21,862 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:21,862 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:21,862 AM [leader-%d649898] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:21,863 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:21,863 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:21,863 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - leader: support() called 08:16:21,863 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:21,863 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:21,863 AM [leader-%d649899] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-3376D8F1.tmp 08:16:21,863 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:21,863 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:21,863 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:21,863 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server160), Chunk: 1/1 08:16:21,864 AM [test-pekko.actor.default-dispatcher-8] [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:16:21,867 AM [leader-%d649899] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-3376D8F1.v1 08:16:21,867 AM [leader-%d649899] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-3376D8F1.v1 08:16:21,867 AM [leader-%d649899] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-2CEBC3BC.v1 08:16:21,867 AM [leader-%d649899] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/TermInfo.properties 08:16:21,867 AM [leader-%d649899] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.753648572Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-2CEBC3BC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:21,867 AM [leader-%d649899] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.863426801Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-3376D8F1.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:21,867 AM [leader-%d649899] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:21,868 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:21,868 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:21.863426801Z 08:16:21,868 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:21,868 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:21,868 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:21,868 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:16:21,868 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:16:21,868 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:16:21,868 AM [test-pekko.actor.default-dispatcher-8] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:16:21,868 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:16:21,868 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:16:21.868] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:21,869 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:16:21,869 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:16:21,869 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - new-server: support() called 08:16:21,869 AM [new-server-%d868333] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/snapshot-0000000068639955-33D29EA5.tmp 08:16:21,872 AM [new-server-%d868333] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/snapshot-0000000068639955-33D29EA5.v1 08:16:21,872 AM [new-server-%d868333] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/snapshot-0000000068639955-33D29EA5.v1 08:16:21,872 AM [new-server-%d868333] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/TermInfo.properties 08:16:21,872 AM [new-server-%d868333] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.869441189Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/snapshot-0000000068639955-33D29EA5.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:21,872 AM [new-server-%d868333] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:16:21,872 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:16:21,872 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:16:21.869441189Z 08:16:21,872 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:16:21,872 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: support() called 08:16:21,872 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: applySnapshot called 08:16:21,872 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:21,873 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:16:21,873 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:21,873 AM [test-pekko.actor.default-dispatcher-8] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 08:16:21,873 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:16:21,873 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:16:21,873 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:21,873 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:21,873 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:21,873 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=f6481203-a2bb-461d-874e-85a18c6e0775}, logIndex: 0, isSendImmediate: true 08:16:21,873 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:21,873 AM [leader-%d649900] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-3412C409.tmp 08:16:21,873 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,873 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:21,873 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:21,874 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 08:16:21,874 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:21,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:21,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:21,874 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/snapshot-0000000068639955-341D414E.tmp 08:16:21,876 AM [leader-%d649900] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-3412C409.v1 08:16:21,876 AM [leader-%d649900] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-3376D8F1.v1 08:16:21,876 AM [leader-%d649900] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-3412C409.v1 08:16:21,877 AM [leader-%d649900] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/TermInfo.properties 08:16:21,877 AM [leader-%d649900] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.863426801Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-3376D8F1.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:21,877 AM [leader-%d649900] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.873645065Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/leader/snapshot-0000000068639955-3412C409.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:21,877 AM [leader-%d649900] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:21,877 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:21,877 AM [test-pekko.actor.default-dispatcher-8] [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:16:21,878 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/snapshot-0000000068639955-341D414E.v1 08:16:21,878 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/snapshot-0000000068639955-33D29EA5.v1 08:16:21,878 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/snapshot-0000000068639955-341D414E.v1 08:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/TermInfo.properties 08:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.869441189Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/snapshot-0000000068639955-33D29EA5.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.874332494Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8853534777944370236/new-server/snapshot-0000000068639955-341D414E.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:21,879 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 08:16:21,879 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:16:21,879 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:21,879 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:21,879 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:21,879 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:16:21.879] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:16:21,879 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Commit index set to 0 08:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 08:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 08:16:21,879 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,924 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress ending 08:16:21,924 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower158] 08:16:21,936 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector159#-990838965] 08:16:21,936 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server160] 08:16:21,936 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:21,937 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:21,937 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader161] 08:16:21,937 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:21,937 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:21,937 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector162] 08:16:21,940 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode starting [WARN] [07/01/2025 08:16:21.942] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader164]: org.opendaylight.controller.cluster.common.actor.Monitor@3a9d155d 08:16:21,942 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:21,943 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:21,943 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:21,943 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:21,944 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3956987823925122276/leader/TermInfo.properties does not exist 08:16:21,944 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 08:16:21,944 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:21,948 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:21,948 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:21,948 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3c9453f7 08:16:21,948 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:21,954 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 08:16:21,954 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:21,954 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Returning INVALID_REQUEST for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 08:16:21,954 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode ending 08:16:21,954 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower163] 08:16:21,965 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader164] 08:16:21,966 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:21,966 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:21,969 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting starting [WARN] [07/01/2025 08:16:21.971] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader168]: org.opendaylight.controller.cluster.common.actor.Monitor@60634db9 08:16:21,972 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:21,972 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:21,972 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:21,972 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:21,977 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/leader/TermInfo.properties does not exist 08:16:21,977 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: no eligible files found 08:16:21,977 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/01/2025 08:16:21.978] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower166]: org.opendaylight.controller.cluster.common.actor.Monitor@515cc2cb 08:16:21,979 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:16:21,979 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: started executor 08:16:21,979 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: started executor 08:16:21,980 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:21,980 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:21,980 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@e2a58ed 08:16:21,980 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/follower/TermInfo.properties does not exist 08:16:21,980 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 08:16:21,980 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:21,980 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: no eligible files found 08:16:21,981 AM [test-pekko.actor.default-dispatcher-12] [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:16:21,981 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:16:21.981] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/follower2167] received dead letter from TestActor[pekko://test/user/leader168]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} [WARN] [07/01/2025 08:16:21.981] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2167]: org.opendaylight.controller.cluster.common.actor.Monitor@7fa2df0f 08:16:21,982 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 08:16:21,982 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: started executor 08:16:21,982 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: started executor 08:16:21,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 08:16:21,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:21,983 AM [test-pekko.actor.default-dispatcher-16] [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:16:21,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]] 08:16:21,983 AM [test-pekko.actor.default-dispatcher-16] [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:16:21,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 08:16:21,983 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:16:21,983 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:16:21,983 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1f8e583 08:16:21,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=19ea9d65-a8af-4311-ae83-68b320c7cf4b}, logIndex: 0, isSendImmediate: true 08:16:21,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:21,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,983 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 08:16:21,984 AM [test-pekko.actor.default-dispatcher-12] [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:16:21,984 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/follower2/TermInfo.properties does not exist 08:16:21,984 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: no eligible files found 08:16:21,984 AM [leader-%d749166] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/leader/snapshot-0000000068639955-3AA0A640.tmp 08:16:21,984 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:16:21,987 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:16:21,987 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:16:21,987 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:16:21,987 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) [WARN] [07/01/2025 08:16:21.987] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [WARN] [07/01/2025 08:16:21.987] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 08:16:21,987 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,987 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:16:21,987 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 08:16:21,987 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 08:16:21,987 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:16:21,987 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:21,987 AM [test-pekko.actor.default-dispatcher-8] [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:16:21,987 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 08:16:21,987 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/follower/snapshot-0000000068639955-3AE078E8.tmp 08:16:21,987 AM [leader-%d749166] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/leader/snapshot-0000000068639955-3AA0A640.v1 08:16:21,987 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 08:16:21,988 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 08:16:21,988 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3733d5dc 08:16:21,988 AM [leader-%d749166] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/leader/snapshot-0000000068639955-3AA0A640.v1 08:16:21,988 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:16:21,988 AM [leader-%d749166] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/leader/TermInfo.properties 08:16:21,988 AM [leader-%d749166] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.983606848Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/leader/snapshot-0000000068639955-3AA0A640.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:21,988 AM [leader-%d749166] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:21,988 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:21,988 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,988 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:16:21,990 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/follower/snapshot-0000000068639955-3AE078E8.v1 08:16:21,990 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/follower/snapshot-0000000068639955-3AE078E8.v1 08:16:21,990 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/follower/TermInfo.properties 08:16:21,990 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.987789544Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/follower/snapshot-0000000068639955-3AE078E8.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:21,990 AM [test-pekko.actor.default-dispatcher-8] [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:16:21,990 AM [test-pekko.actor.default-dispatcher-8] [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:16:21,990 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - follower (Follower): Log size is now 1 08:16:21,990 AM [test-pekko.actor.default-dispatcher-8] [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:16:21,990 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:21,991 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:16:21,991 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:16:21,991 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:21,991 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:21,991 AM [test-pekko.actor.default-dispatcher-16] [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:16:21,991 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,991 AM [test-pekko.actor.default-dispatcher-16] [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:16:21,991 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:16:21,991 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:21,991 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:21,991 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:16:21,991 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - Leader changed to non-voting - trying leadership transfer 08:16:21,991 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 08:16:21,991 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 08:16:21,991 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,991 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:16:21,991 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Initiating leader transfer [WARN] [07/01/2025 08:16:21.991] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 08:16:21,992 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - follower2: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 08:16:21,992 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 08:16:21,993 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorLeadershipTransferCohort - leader: pauseLeader successfully completed - doing transfer 08:16:21,993 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Leader - leader (Leader): Attempting to transfer leadership 08:16:21,993 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,993 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,993 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) [WARN] [07/01/2025 08:16:21.993] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 08:16:21,993 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Leader - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: 0, lastIndex: 0, isVoting: true 08:16:21,993 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:21,993 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Leader - leader (Leader): Follower's log matches - sending ElectionTimeout 08:16:21,993 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,993 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,993 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:21,993 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Leader - leader (Leader): Leader transfer complete 08:16:21,993 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader transfer complete - waiting for new leader 08:16:21,994 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:21,994 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 08:16:21,994 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [follower2] 08:16:21,994 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 08:16:21,994 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,994 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:16:21,994 AM [test-pekko.actor.default-dispatcher-16] [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:16:21,994 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:16:21,994 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:21,994 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:16:21,994 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,995 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:16:21,995 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:21,995 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,995 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,995 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/follower2/snapshot-0000000068639955-3B50811E.tmp 08:16:21,997 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=2, votedFor=follower 08:16:21,997 AM [test-pekko.actor.default-dispatcher-8] [INFO] Candidate - follower (Candidate): Starting new election term 2 08:16:21,997 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - follower (Candidate): Sending RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} to peer follower2 08:16:21,997 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:16:21,998 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/follower2/snapshot-0000000068639955-3B50811E.v1 08:16:21,998 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/follower2/snapshot-0000000068639955-3B50811E.v1 08:16:21,998 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/follower2/TermInfo.properties 08:16:21,998 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:21.995131678Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13739703858168836668/follower2/snapshot-0000000068639955-3B50811E.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:21,998 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,998 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,998 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): Log size is now 1 08:16:21,998 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 08:16:21,998 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,999 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:16:21,999 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:21,999 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:21,999 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:21,999 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 08:16:21,999 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 08:16:21,999 AM [test-pekko.actor.default-dispatcher-5] [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:16:21,999 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - follower2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:16:21,999 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - follower2 (Follower): Cluster state: [] 08:16:21,999 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - follower2 (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 08:16:21,999 AM [test-pekko.actor.default-dispatcher-5] [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:16:22,2 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=null 08:16:22,2 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - follower2 (Follower): In requestVote: RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 0, lastTerm: 1 08:16:22,4 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=follower 08:16:22,4 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - follower2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=true} 08:16:22,4 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - follower (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=true}, my term is 2 08:16:22,4 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Candidate - follower (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=true}, current voteCount: 1 08:16:22,4 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - follower (Leader): Election: Leader has following peers: [leader, follower2] 08:16:22,4 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower leader: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,4 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,4 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActorBehavior - follower (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:16:22,4 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractLeader - leader (Leader): Term 2 in "AppendEntries{term=2, leaderId=follower, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than leader's term 1 - switching to Follower 08:16:22,5 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - follower (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:16:22,5 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,5 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader follower, need to catch up to -1 08:16:22,5 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader follower and reached 0 (of expected -1) [WARN] [07/01/2025 08:16:22.005] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] [WARN] [07/01/2025 08:16:22.005] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 08:16:22,7 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=2, votedFor=null 08:16:22,7 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - leader (Leader) :- Switching from behavior Leader to Follower, election term: 2 08:16:22,518 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader follower and reached 0 (of expected -1) 08:16:22,518 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - leader: Last sync leader does not match current leader follower, need to catch up to -1 08:16:22,519 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - follower (Leader): handleAppendEntriesReply - FollowerLogInformation for leader updated: matchIndex: 0, nextIndex: 1 08:16:22,519 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader changed to follower 08:16:22,519 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower leader: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,519 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorLeadershipTransferCohort - leader: Successfully transferred leadership to follower in 527.3 ms 08:16:22,519 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: leader transfer succeeded after change to non-voting 08:16:22,519 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - leader: Lagging 0 entries behind leader follower and reached 0 (of expected -1) [WARN] [07/01/2025 08:16:22.519] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=false] [WARN] [07/01/2025 08:16:22.519] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=true] 08:16:22,537 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting ending 08:16:22,537 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower165] 08:16:22,548 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader168] 08:16:22,548 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:22,548 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:22,549 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector169] 08:16:22,549 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector170#1716869427] 08:16:22,549 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower166] 08:16:22,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:22,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:22,550 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector171#-686124933] 08:16:22,550 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2167] 08:16:22,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:16:22,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:16:22,554 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState starting 08:16:22,555 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:22,556 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 08:16:22,556 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor [WARN] [07/01/2025 08:16:22.556] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader173]: org.opendaylight.controller.cluster.common.actor.Monitor@3d8213b5 08:16:22,556 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState ending 08:16:22,558 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4927740617552415148/leader/TermInfo.properties does not exist 08:16:22,558 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 08:16:22,558 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:22,557 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower172] 08:16:22,560 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader173] 08:16:22,562 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 08:16:22,562 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 08:16:22,562 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1b1dde54 08:16:22,562 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:22,562 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:22,563 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer starting [WARN] [07/01/2025 08:16:22.564] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader177]: org.opendaylight.controller.cluster.common.actor.Monitor@5b502d8b 08:16:22,565 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:22,565 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:22,565 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 08:16:22,565 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 08:16:22,566 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/leader/TermInfo.properties does not exist 08:16:22,566 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 08:16:22,566 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:16:22.567] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower175]: org.opendaylight.controller.cluster.common.actor.Monitor@72e8a487 08:16:22,567 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:16:22,567 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 08:16:22,567 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 08:16:22,568 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/follower/TermInfo.properties does not exist 08:16:22,568 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: no eligible files found 08:16:22,568 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/01/2025 08:16:22.569] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2176]: org.opendaylight.controller.cluster.common.actor.Monitor@28614db6 08:16:22,570 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:22,570 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:22,570 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1395f9e8 08:16:22,570 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower, downNode] 08:16:22,570 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:16:22,570 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:22,570 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:16:22.571] [test-pekko.actor.default-dispatcher-8] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader177]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 08:16:22,571 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 08:16:22,571 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:16:22,571 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:16:22,571 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@261be178 08:16:22,571 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: started executor 08:16:22,571 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: started executor 08:16:22,571 AM [test-pekko.actor.default-dispatcher-12] [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:16:22,573 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/follower2/TermInfo.properties does not exist 08:16:22,573 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower2: no eligible files found 08:16:22,573 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:22,576 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:16:22,576 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:16:22,576 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:16:22,576 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:16:22.576] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower175] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:16:22,576 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 08:16:22,576 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 08:16:22,576 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@a57a40 08:16:22,577 AM [test-pekko.actor.default-dispatcher-8] [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:16:22,577 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 08:16:22,577 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:22,577 AM [test-pekko.actor.default-dispatcher-17] [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:16:22,577 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:22,578 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=87137523-a8e3-4271-8882-f51a509144dd}, logIndex: 0, isSendImmediate: true 08:16:22,578 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:22,578 AM [leader-%d184204] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/leader/snapshot-0000000068639956-22743C01.tmp 08:16:22,578 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,578 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,578 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='follower'} [WARN] [07/01/2025 08:16:22.578] [test-pekko.actor.default-dispatcher-5] [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:16:22,579 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 08:16:22,579 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 08:16:22,580 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 08:16:22,580 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,580 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:16:22,580 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:22,580 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} [WARN] [07/01/2025 08:16:22.580] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 08:16:22,580 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 [WARN] [07/01/2025 08:16:22.580] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 08:16:22,580 AM [test-pekko.actor.default-dispatcher-8] [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:16:22,580 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:16:22,580 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:22,580 AM [test-pekko.actor.default-dispatcher-8] [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:16:22,580 AM [test-pekko.actor.default-dispatcher-8] [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:16:22,580 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/follower2/snapshot-0000000068639956-22989508.tmp 08:16:22,580 AM [leader-%d184204] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/leader/snapshot-0000000068639956-22743C01.v1 08:16:22,580 AM [leader-%d184204] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/leader/snapshot-0000000068639956-22743C01.v1 08:16:22,580 AM [leader-%d184204] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/leader/TermInfo.properties 08:16:22,580 AM [leader-%d184204] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.578042881Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/leader/snapshot-0000000068639956-22743C01.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:22,580 AM [leader-%d184204] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:22,580 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:22,581 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:22,582 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/follower2/snapshot-0000000068639956-22989508.v1 08:16:22,582 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/follower2/snapshot-0000000068639956-22989508.v1 08:16:22,582 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/follower2/TermInfo.properties 08:16:22,582 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.580424968Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7863982500946642047/follower2/snapshot-0000000068639956-22989508.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:22,582 AM [test-pekko.actor.default-dispatcher-8] [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:16:22,582 AM [test-pekko.actor.default-dispatcher-8] [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:16:22,582 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - follower2 (Follower): Log size is now 1 08:16:22,582 AM [test-pekko.actor.default-dispatcher-8] [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:16:22,582 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:22,582 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:16:22,582 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:16:22,582 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:22,582 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:22,582 AM [test-pekko.actor.default-dispatcher-17] [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:16:22,583 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,583 AM [test-pekko.actor.default-dispatcher-17] [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 08:16:22,583 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 08:16:22,583 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:22,583 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:22,583 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 08:16:22,583 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 08:16:22,583 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - follower2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} [WARN] [07/01/2025 08:16:22.583] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/follower175] unhandled message from TestActor[pekko://test/user/leader177]: ServerRemoved [serverId=follower] 08:16:22,629 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer ending 08:16:22,629 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower174] 08:16:22,630 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader177] 08:16:22,630 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:22,631 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:22,631 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector178] 08:16:22,631 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector179#-206014137] 08:16:22,632 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower175] 08:16:22,632 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:22,632 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:22,632 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector180#1845709171] 08:16:22,632 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2176] 08:16:22,633 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:16:22,633 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:16:22,635 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader starting [WARN] [07/01/2025 08:16:22.637] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server183]: org.opendaylight.controller.cluster.common.actor.Monitor@11f9614d 08:16:22,637 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:22,637 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 08:16:22,637 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 08:16:22,639 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7559058029213972117/new-server/TermInfo.properties does not exist 08:16:22,639 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:22,639 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:22,642 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:22,642 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:22,642 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1ad1c274 08:16:22,643 AM [test-pekko.actor.default-dispatcher-8] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:22.643] [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@17b8dfa5 08:16:22,644 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:22,644 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 08:16:22,644 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 08:16:22,645 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7559058029213972117/leader/TermInfo.properties does not exist 08:16:22,645 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 08:16:22,645 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:16:22,648 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 08:16:22,648 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 08:16:22,648 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@69858ccd 08:16:22,649 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server183, votingMember=true], state: Idle 08:16:22,649 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 08:16:22,649 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader ending 08:16:22,649 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower181] 08:16:22,650 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector182#-746839708] 08:16:22,650 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server183] 08:16:22,650 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:22,650 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:22,650 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader184] 08:16:22,651 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:22,651 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:22,653 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus starting [WARN] [07/01/2025 08:16:22.653] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader188]: org.opendaylight.controller.cluster.common.actor.Monitor@368d3a21 08:16:22,654 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:22,654 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:22,654 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 08:16:22,654 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 08:16:22,656 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/TermInfo.properties does not exist 08:16:22,656 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 08:16:22,656 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:16:22.656] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower186]: org.opendaylight.controller.cluster.common.actor.Monitor@54532623 08:16:22,656 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:16:22,657 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: started executor 08:16:22,657 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: started executor 08:16:22,658 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/TermInfo.properties does not exist 08:16:22,658 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:22,658 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: no eligible files found 08:16:22,658 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:22,658 AM [test-pekko.actor.default-dispatcher-12] [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:16:22,658 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4136f2e4 [WARN] [07/01/2025 08:16:22.658] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2187]: org.opendaylight.controller.cluster.common.actor.Monitor@e1687a0 08:16:22,659 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 08:16:22,659 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:16:22,659 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:22,660 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 08:16:22,660 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower2: started executor 08:16:22,660 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - follower2: started executor 08:16:22,661 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]], state: Idle 08:16:22,661 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:22,661 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - leader: Updated server config: isVoting: true, peers: [PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=NON_VOTING]] 08:16:22,661 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:16:22,661 AM [test-pekko.actor.default-dispatcher-17] [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:16:22,661 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:22,661 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:16:22,661 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:16:22,661 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@ca87126 08:16:22,661 AM [test-pekko.actor.default-dispatcher-12] [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:16:22,661 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/TermInfo.properties does not exist 08:16:22,662 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: no eligible files found 08:16:22,662 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:16:22,662 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=faa562e4-e383-483d-87f1-e546cb542f02}, logIndex: 0, isSendImmediate: true 08:16:22,662 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:22,662 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:22,662 AM [test-pekko.actor.default-dispatcher-17] [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:16:22,662 AM [leader-%d264335] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/snapshot-0000000068639956-2778C208.tmp 08:16:22,662 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,662 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,662 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]] 08:16:22,662 AM [test-pekko.actor.default-dispatcher-17] [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:16:22,664 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:16:22,664 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:16:22,665 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:22,665 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:16:22,665 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,665 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:16:22,665 AM [test-pekko.actor.default-dispatcher-12] [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:16:22,665 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower [WARN] [07/01/2025 08:16:22.665] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:16:22,665 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} [WARN] [07/01/2025 08:16:22.665] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 08:16:22,665 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:16:22,665 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:22,665 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:22,665 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:22,665 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/snapshot-0000000068639956-27AC1B92.tmp 08:16:22,665 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 08:16:22,665 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 08:16:22,665 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@47ec9bc3 08:16:22,666 AM [leader-%d264335] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/snapshot-0000000068639956-2778C208.v1 08:16:22,666 AM [leader-%d264335] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/snapshot-0000000068639956-2778C208.v1 08:16:22,666 AM [leader-%d264335] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/TermInfo.properties 08:16:22,666 AM [leader-%d264335] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.662225416Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/snapshot-0000000068639956-2778C208.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:22,666 AM [leader-%d264335] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:22,666 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:16:22,666 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:22,666 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:22,668 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/snapshot-0000000068639956-27AC1B92.v1 08:16:22,668 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/snapshot-0000000068639956-27AC1B92.v1 08:16:22,668 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/TermInfo.properties 08:16:22,668 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.665590674Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/snapshot-0000000068639956-27AC1B92.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:22,668 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:22,668 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING]] 08:16:22,668 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Log size is now 1 08:16:22,668 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:16:22,668 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:22,668 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:22,668 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:22,668 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:16:22,669 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 08:16:22,669 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:22,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:16:22,669 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:16:22,669 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 08:16:22,669 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:16:22,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 08:16:22,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:16:22,669 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:22,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:22,669 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:22,669 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:16:22,669 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:22,669 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:22,669 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:16:22,669 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} [WARN] [07/01/2025 08:16:22.669] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 08:16:22,669 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/snapshot-0000000068639956-27ECE2CE.tmp [WARN] [07/01/2025 08:16:22.669] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 08:16:22,671 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/snapshot-0000000068639956-27ECE2CE.v1 08:16:22,671 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/snapshot-0000000068639956-27ECE2CE.v1 08:16:22,671 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/TermInfo.properties 08:16:22,671 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.669835982Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/snapshot-0000000068639956-27ECE2CE.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:22,672 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower2: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:22,672 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - follower2: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=NON_VOTING]] 08:16:22,672 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Log size is now 1 08:16:22,672 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 08:16:22,672 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower2, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:22,672 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:22,672 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:22,672 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 08:16:22,672 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 08:16:22,672 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:22,672 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:16:22,672 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:22,713 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]], state: Idle 08:16:22,713 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:22,713 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - leader: Updated server config: isVoting: true, peers: [PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=VOTING]] 08:16:22,713 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:22,713 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,713 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:22,714 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=d3c4dad9-7e96-46f2-bd70-6d0acf581df7}, logIndex: 1, isSendImmediate: true 08:16:22,714 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 08:16:22,714 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 08:16:22,714 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,714 AM [leader-%d264336] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/snapshot-0000000068639956-2A8CB77D.tmp 08:16:22,714 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:22,714 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower2 08:16:22,714 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,714 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:22,714 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower 08:16:22,714 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:22,714 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,714 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:16:22,714 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:22,714 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:22,714 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:22,714 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/snapshot-0000000068639956-2A9B28AF.tmp 08:16:22,714 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]] 08:16:22,715 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,715 AM [test-pekko.actor.default-dispatcher-17] [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:16:22,715 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:16:22,715 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:22,715 AM [test-pekko.actor.default-dispatcher-17] [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:16:22,715 AM [test-pekko.actor.default-dispatcher-17] [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:16:22,715 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/snapshot-0000000068639956-2AA312B8.tmp 08:16:22,718 AM [leader-%d264336] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/snapshot-0000000068639956-2A8CB77D.v1 08:16:22,719 AM [leader-%d264336] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/snapshot-0000000068639956-2778C208.v1 08:16:22,719 AM [leader-%d264336] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/snapshot-0000000068639956-2A8CB77D.v1 08:16:22,719 AM [leader-%d264336] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/TermInfo.properties 08:16:22,719 AM [leader-%d264336] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.662225416Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/snapshot-0000000068639956-2778C208.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:22,719 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/snapshot-0000000068639956-2AA312B8.v1 08:16:22,719 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/snapshot-0000000068639956-2A9B28AF.v1 08:16:22,719 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/snapshot-0000000068639956-2AA312B8.v1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/snapshot-0000000068639956-27AC1B92.v1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/snapshot-0000000068639956-2A9B28AF.v1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/TermInfo.properties 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/snapshot-0000000068639956-27ECE2CE.v1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.665590674Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/snapshot-0000000068639956-27AC1B92.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/TermInfo.properties 08:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.715330232Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower/snapshot-0000000068639956-2AA312B8.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [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:16:22,719 AM [leader-%d264336] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.713865085Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/leader/snapshot-0000000068639956-2A8CB77D.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:22,720 AM [leader-%d264336] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.669835982Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/snapshot-0000000068639956-27ECE2CE.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.714811567Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4928687844520373552/follower2/snapshot-0000000068639956-2A9B28AF.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower2: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:22,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [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:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Log size is now 2 08:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Commit index set to 1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - follower2: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=VOTING]] 08:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [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:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Log size is now 2 08:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Commit index set to 1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower2, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 0 to 1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:16:22,720 AM [test-pekko.actor.default-dispatcher-17] [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:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from 0 to 1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 08:16:22,720 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:22,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 08:16:22,720 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 08:16:22,721 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 1, nextIndex: 2 08:16:22,721 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 08:16:22,765 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus ending 08:16:22,765 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower185] 08:16:22,766 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader188] 08:16:22,767 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:22,767 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:22,767 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector189] 08:16:22,767 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector190#-940924522] 08:16:22,767 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower186] 08:16:22,768 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:22,768 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:22,768 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector191#-173885855] 08:16:22,768 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2187] 08:16:22,768 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:16:22,768 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:16:22,771 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower starting [WARN] [07/01/2025 08:16:22.772] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server194]: org.opendaylight.controller.cluster.common.actor.Monitor@69eff737 08:16:22,773 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:22,773 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 08:16:22,773 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 08:16:22,775 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/TermInfo.properties does not exist 08:16:22,775 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:22,775 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:22,778 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:22,778 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:22,778 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@69896532 08:16:22,778 AM [main] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 2 08:16:22,778 AM [test-pekko.actor.default-dispatcher-8] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:22.779] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader195]: org.opendaylight.controller.cluster.common.actor.Monitor@988451c 08:16:22,780 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 08:16:22,780 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:22,780 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 08:16:22,780 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - leader: started executor 08:16:22,781 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/TermInfo.properties does not exist 08:16:22,781 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 08:16:22,781 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:16:22,784 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 08:16:22,784 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=leader} 08:16:22,784 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@78d2ab5c 08:16:22,784 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 08:16:22,784 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 08:16:22,784 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:16:22,784 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 08:16:22,784 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 08:16:22,785 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 08:16:22,785 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 08:16:22,785 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 1 for term 1 08:16:22,831 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true], state: Idle 08:16:22,832 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 08:16:22,832 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 08:16:22,832 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:22,832 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:22,832 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:22,832 AM [leader-%d615017] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:22,832 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:22,832 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 08:16:22,832 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:22,833 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 08:16:22,833 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:22,833 AM [leader-%d615018] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/snapshot-0000000068639956-31A7F4F4.tmp 08:16:22,833 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:22,833 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:22,833 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:22,833 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server194), Chunk: 1/1 08:16:22,833 AM [test-pekko.actor.default-dispatcher-8] [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:16:22,835 AM [leader-%d615018] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/snapshot-0000000068639956-31A7F4F4.v1 08:16:22,836 AM [leader-%d615018] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/snapshot-0000000068639956-31A7F4F4.v1 08:16:22,836 AM [leader-%d615018] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/TermInfo.properties 08:16:22,836 AM [leader-%d615018] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.833090804Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/snapshot-0000000068639956-31A7F4F4.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:22,836 AM [leader-%d615018] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:22,836 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:22,836 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:22.833090804Z 08:16:22,836 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:22,836 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:22,836 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:16:22,836 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 2 08:16:22,836 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:22,836 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:16:22,836 AM [test-pekko.actor.default-dispatcher-8] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:16:22,837 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:16:22,837 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:16:22.837] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:22,837 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:16:22,837 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:16:22,837 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - new-server: support() called 08:16:22,838 AM [new-server-%d627176] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/snapshot-0000000068639956-31F0FE78.tmp 08:16:22,840 AM [new-server-%d627176] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/snapshot-0000000068639956-31F0FE78.v1 08:16:22,840 AM [new-server-%d627176] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/snapshot-0000000068639956-31F0FE78.v1 08:16:22,840 AM [new-server-%d627176] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/TermInfo.properties 08:16:22,840 AM [new-server-%d627176] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.837877368Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/snapshot-0000000068639956-31F0FE78.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:22,840 AM [new-server-%d627176] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:16:22,841 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:16:22,841 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:16:22.837877368Z 08:16:22,841 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:16:22,841 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called 08:16:22,841 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: applySnapshot called 08:16:22,841 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:16:22,841 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:16:22,841 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:22,841 AM [test-pekko.actor.default-dispatcher-8] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 2, nextIndex set to 3 08:16:22,841 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:16:22,841 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:16:22,841 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:22,841 AM [test-pekko.actor.default-dispatcher-8] [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:16:22,841 AM [test-pekko.actor.default-dispatcher-8] [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:16:22,842 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=e7451ffc-d7f2-4683-8394-c72411d7f7e0}, logIndex: 3, isSendImmediate: true 08:16:22,842 AM [leader-%d615019] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/snapshot-0000000068639956-322F7618.tmp 08:16:22,842 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:22,842 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:16:22,842 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower follower 08:16:22,842 AM [test-pekko.actor.default-dispatcher-8] [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:16:22,842 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:16:22,842 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower new-server 08:16:22,842 AM [test-pekko.actor.default-dispatcher-8] [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:16:22,842 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,842 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:16:22,842 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 08:16:22,842 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 08:16:22,842 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,842 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,842 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,842 AM [test-pekko.actor.default-dispatcher-16] [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:16:22,842 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=, votingState=VOTING], PeerInfo [id=new-server, address=null, votingState=VOTING]] 08:16:22,842 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Log size is now 2 08:16:22,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:22,842 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 08:16:22,842 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 08:16:22,842 AM [test-pekko.actor.default-dispatcher-16] [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:16:22,842 AM [test-pekko.actor.default-dispatcher-16] [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:16:22,842 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 08:16:22,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/snapshot-0000000068639956-323D1B9C.tmp 08:16:22,842 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:16:22,843 AM [leader-%d615019] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/snapshot-0000000068639956-322F7618.v1 08:16:22,844 AM [leader-%d615019] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/snapshot-0000000068639956-31A7F4F4.v1 08:16:22,844 AM [leader-%d615019] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/snapshot-0000000068639956-322F7618.v1 08:16:22,844 AM [leader-%d615019] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/TermInfo.properties 08:16:22,844 AM [leader-%d615019] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.833090804Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/snapshot-0000000068639956-31A7F4F4.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:22,844 AM [leader-%d615019] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.841971224Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/snapshot-0000000068639956-322F7618.v1, size=97, entryCompress=NONE, stateCompress=NONE} 08:16:22,844 AM [leader-%d615019] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:22,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:22,844 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 08:16:22,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 3 08:16:22,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 2 to 3 08:16:22,844 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 2 for term 1 08:16:22,844 AM [test-pekko.actor.default-dispatcher-15] [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:16:22,845 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/snapshot-0000000068639956-323D1B9C.v1 08:16:22,845 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/snapshot-0000000068639956-323D1B9C.v1 08:16:22,845 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/snapshot-0000000068639956-31F0FE78.v1 08:16:22,845 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/TermInfo.properties 08:16:22,845 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.837877368Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/snapshot-0000000068639956-31F0FE78.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:22,845 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.842865564Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/snapshot-0000000068639956-323D1B9C.v1, size=97, entryCompress=NONE, stateCompress=NONE} 08:16:22,845 AM [test-pekko.actor.default-dispatcher-16] [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:16:22,845 AM [test-pekko.actor.default-dispatcher-16] [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:16:22,845 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:16:22,846 AM [test-pekko.actor.default-dispatcher-16] [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:16:22,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 2) 08:16:22,846 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 3, nextIndex: 4 08:16:22,846 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 08:16:22,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Commit index set to 3 [WARN] [07/01/2025 08:16:22.846] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:16:22,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 08:16:22,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 08:16:22,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 3 08:16:22,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 2 to 3 08:16:22,846 AM [test-pekko.actor.default-dispatcher-16] [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:16:23,19 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Commit index set to 3 08:16:23,19 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 08:16:23,19 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 08:16:23,19 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 08:16:23,19 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 2 to 3 08:16:23,19 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 08:16:23,19 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 2 for term 1 08:16:23,33 AM [main] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/snapshot-0000000068639956-322F7618.v1 08:16:23,34 AM [main] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/TermInfo.properties 08:16:23,34 AM [main] [DEBUG] RaftStorage - leader: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.841971224Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/leader/snapshot-0000000068639956-322F7618.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 08:16:23,34 AM [main] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/snapshot-0000000068639956-323D1B9C.v1 08:16:23,34 AM [main] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/TermInfo.properties 08:16:23,34 AM [main] [DEBUG] RaftStorage - new-server: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:22.842865564Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5424147318915395803/new-server/snapshot-0000000068639956-323D1B9C.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 08:16:23,34 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower ending 08:16:23,34 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower192] 08:16:23,36 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector193#-223067226] 08:16:23,36 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server194] 08:16:23,36 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:23,36 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:23,36 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader195] 08:16:23,37 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:23,37 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:23,37 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector196] 08:16:23,40 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader starting [WARN] [07/01/2025 08:16:23.041] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server199]: org.opendaylight.controller.cluster.common.actor.Monitor@3763b1f4 08:16:23,42 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:23,42 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 08:16:23,42 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 08:16:23,44 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13090992498665155301/new-server/TermInfo.properties does not exist 08:16:23,44 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:23,44 AM [test-pekko.actor.default-dispatcher-12] [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:16:23,47 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:23,47 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:23,47 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5a1f4603 08:16:23,48 AM [test-pekko.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:23.049] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower201]: org.opendaylight.controller.cluster.common.actor.Monitor@86ced80 08:16:23,49 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:16:23,49 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 08:16:23,49 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 08:16:23,50 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13090992498665155301/follower/TermInfo.properties does not exist 08:16:23,50 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: no eligible files found 08:16:23,50 AM [test-pekko.actor.default-dispatcher-12] [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:16:23,54 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:16:23,54 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:16:23,54 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@66add0b8 08:16:23,55 AM [test-pekko.actor.default-dispatcher-12] [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:16:23,57 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:16:23,57 AM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 08:16:23,57 AM [test-pekko.actor.default-dispatcher-12] [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:16:23,57 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/01/2025 08:16:23.057] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/follower201] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:16:23,65 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - follower: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server199, votingMember=true], state: Idle 08:16:23,65 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader200 08:16:23,65 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader200)] 08:16:23,115 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader ending 08:16:23,116 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower197] 08:16:23,127 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector198#855284152] 08:16:23,127 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server199] 08:16:23,127 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:23,127 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:23,128 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader200#506297386] 08:16:23,128 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower201] 08:16:23,128 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:23,128 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:23,131 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader starting [WARN] [07/01/2025 08:16:23.133] [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@2d8de6ef 08:16:23,133 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:16:23,134 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 08:16:23,134 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 08:16:23,136 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9455552247868680896/follower/TermInfo.properties does not exist 08:16:23,136 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: no eligible files found 08:16:23,136 AM [test-pekko.actor.default-dispatcher-12] [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:16:23,139 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:16:23,139 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:16:23,139 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@c75b7d9 08:16:23,140 AM [test-pekko.actor.default-dispatcher-12] [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:16:23,142 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:16:23,142 AM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 08:16:23,142 AM [test-pekko.actor.default-dispatcher-12] [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:16:23,142 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/01/2025 08:16:23.142] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/follower204] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:16:23,150 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - follower: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 08:16:23,150 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader203 08:16:23,150 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader203)] 08:16:23,200 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader ending 08:16:23,200 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower202] 08:16:23,211 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader203] 08:16:23,212 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower204] 08:16:23,212 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:23,212 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:23,215 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer starting [WARN] [07/01/2025 08:16:23.216] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader206]: org.opendaylight.controller.cluster.common.actor.Monitor@1589d968 08:16:23,216 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:23,217 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:23,217 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:23,217 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:23,218 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2746491014803475696/leader/TermInfo.properties does not exist 08:16:23,218 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 08:16:23,218 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:23,221 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:23,221 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:23,221 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@d5d5005 08:16:23,221 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 08:16:23,221 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:23,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true], state: Idle 08:16:23,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 08:16:23,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Returning ALREADY_EXISTS for operation AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 08:16:23,228 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer ending 08:16:23,228 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower205] 08:16:23,239 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader206] 08:16:23,239 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:23,239 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:23,242 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout starting [WARN] [07/01/2025 08:16:23.244] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@3874668c 08:16:23,244 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 08:16:23,244 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: started executor 08:16:23,245 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 08:16:23.246] [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@a928e6e 08:16:23,246 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 08:16:23,246 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: started executor 08:16:23,246 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: started executor 08:16:23,246 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9867848278081615199/node1/TermInfo.properties does not exist 08:16:23,247 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: no eligible files found 08:16:23,248 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:16:23,248 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest9867848278081615199/node2/TermInfo.properties does not exist 08:16:23,248 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:16:23,248 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - node2: no eligible files found 08:16:23,248 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:16:23,248 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:16:23,248 AM [test-pekko.actor.default-dispatcher-12] [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:16:23,248 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:16:23,248 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 08:16:23,248 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - node2: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:16:23,251 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:16:23,251 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:16:23,251 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5a24c32b 08:16:23,252 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:16:23,252 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:16:23,252 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@339e5835 08:16:23,258 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]], state: Idle 08:16:23,259 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:23,259 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:16:23,259 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:16:23,259 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:23,259 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:16:23,259 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:16:23,262 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 08:16:23,262 AM [test-pekko.actor.default-dispatcher-16] [INFO] Candidate - node1 (Candidate): Starting new election term 2 08:16:23,262 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 08:16:23,262 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:16:23,378 AM [test-pekko.actor.default-dispatcher-16] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 08:16:23,378 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 08:16:23,378 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 08:16:23,378 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 08:16:23,378 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout ending 08:16:23,379 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower207] 08:16:23,390 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector208#69811489] 08:16:23,390 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 08:16:23,390 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:23,390 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:23,390 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector209#-980658829] 08:16:23,391 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 08:16:23,391 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:23,391 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:23,394 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader starting [WARN] [07/01/2025 08:16:23.396] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@4a541876 08:16:23,396 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 08:16:23,397 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: started executor 08:16:23,397 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 08:16:23.398] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@7ef6a7c0 08:16:23,399 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 08:16:23,399 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest947558538665896879/node1/TermInfo.properties does not exist 08:16:23,399 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node2: started executor 08:16:23,399 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node2: started executor 08:16:23,399 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: no eligible files found 08:16:23,399 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 08:16:23,399 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 163 08:16:23,399 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode2, address=null, votingState=VOTING], PeerInfo [id=downNode1, address=null, votingState=VOTING]] 08:16:23,399 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node1: Received apply journal entries for recovery, applying to state: 0 to 0 08:16:23,399 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 08:16:23,401 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest947558538665896879/node2/TermInfo.properties does not exist 08:16:23,401 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node1: Recovery completed in 1.199 ms - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:16:23,401 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: no eligible files found 08:16:23,401 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 08:16:23,401 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 163 08:16:23,401 AM [test-pekko.actor.default-dispatcher-15] [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:16:23,401 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 0 08:16:23,401 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 08:16:23,401 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - node2: Recovery completed in 59.32 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:16:23,405 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 08:16:23,405 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode1} 08:16:23,405 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@71e63c3d 08:16:23,406 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 08:16:23,406 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode2} 08:16:23,406 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6c0bf943 08:16:23,417 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, node2=true, downNode1=false, node1=true}, serversVisited=[]], state: Idle 08:16:23,417 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:23,417 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:16:23,417 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:16:23,417 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:23,417 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:16:23,417 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:16:23,420 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 08:16:23,420 AM [test-pekko.actor.default-dispatcher-15] [INFO] Candidate - node1 (Candidate): Starting new election term 2 08:16:23,420 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:16:23,928 AM [test-pekko.actor.default-dispatcher-16] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, node2=true, downNode1=false, node1=true}, serversVisited=[]] 08:16:23,928 AM [test-pekko.actor.default-dispatcher-16] [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:16:23,929 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 08:16:23,929 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, node2=true, downNode1=false, node1=true}, serversVisited=[]] 08:16:23,929 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader downNode1, need to catch up to 0 [WARN] [07/01/2025 08:16:23.929] [test-pekko.actor.default-dispatcher-16] [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:16:23.930] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 08:16:24,536 AM [main] [INFO] PeerInfos - node1: Peer address for peer node2 set to pekko://test/user/node2 08:16:24,537 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, node2=true, downNode1=false, node1=true}, serversVisited=[]], state: Idle 08:16:24,537 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:24,537 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:16:24,537 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:16:24,537 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:16:24,537 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:16:24,543 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node1 08:16:24,543 AM [test-pekko.actor.default-dispatcher-15] [INFO] Candidate - node1 (Candidate): Starting new election term 3 08:16:24,543 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:16:24,544 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 08:16:24,544 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:16:24,544 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 08:16:24,544 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 08:16:24,544 AM [test-pekko.actor.default-dispatcher-16] [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:16:24,547 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=null 08:16:24,547 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 08:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node1 08:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 08:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 08:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 08:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): Election: Leader has following peers: [node2, downNode2, downNode1] 08:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node1 elected 08:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [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:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [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:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [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:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=81519589-9ef5-4c68-b470-a7668dc052ec}, logIndex: 1, isSendImmediate: true 08:16:24,550 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node2: Last sync leader does not match current leader node1, need to catch up to -1 08:16:24,550 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:24,551 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, node2=true, downNode1=false, node1=true}, serversVisited=[]] 08:16:24,551 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node2: Lagging -1 entries behind leader node1 and reached 0 (of expected -1) [WARN] [07/01/2025 08:16:24.551] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=false] [WARN] [07/01/2025 08:16:24.551] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=true] 08:16:24,551 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 0, nextIndex: 1 08:16:24,551 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:24,551 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 08:16:24,551 AM [test-pekko.actor.default-dispatcher-16] [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:16:24,551 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 08:16:24,551 AM [test-pekko.actor.default-dispatcher-15] [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:16:24,552 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=false} 08:16:24,552 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node2 (Follower): Number of entries to be appended = 1 08:16:24,552 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:24,552 AM [test-pekko.actor.default-dispatcher-15] [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:16:24,552 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=false} 08:16:24,552 AM [test-pekko.actor.default-dispatcher-15] [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:16:24,552 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node2 (Follower): Log size is now 2 08:16:24,552 AM [test-pekko.actor.default-dispatcher-15] [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:16:24,552 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 0 (of expected -1) 08:16:24,552 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 1, nextIndex: 2 08:16:24,552 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 08:16:24,552 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Leader): Setting last applied to 1 08:16:24,552 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 08:16:24,552 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} 08:16:24,552 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 08:16:24,552 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:24,552 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - node2: persist complete JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=false} 08:16:24,553 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node2 (Follower): Commit index set to 1 08:16:24,553 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 08:16:24,553 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:16:24,553 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Follower): Setting last applied to 1 08:16:24,553 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 08:16:24,553 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorVotingConfigSupport - node1: VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:24,553 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} 08:16:24,553 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 08:16:24,668 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 08:16:24,754 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader ending 08:16:24,754 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower210] 08:16:24,765 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector211#284662572] 08:16:24,765 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 08:16:24,765 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:24,766 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:24,766 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector212#1154810456] 08:16:24,766 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 08:16:24,766 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:24,766 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:24,769 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout starting [WARN] [07/01/2025 08:16:24.771] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server215]: org.opendaylight.controller.cluster.common.actor.Monitor@1f97b447 08:16:24,772 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:24,772 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 08:16:24,772 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 08:16:24,773 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17551599675901098318/new-server/TermInfo.properties does not exist 08:16:24,774 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:24,774 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:16:24,777 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:24,777 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:24,777 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@fc4549e 08:16:24,778 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:16:24.778] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader216]: org.opendaylight.controller.cluster.common.actor.Monitor@2f642616 08:16:24,779 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:24,779 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:24,779 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:16:24,779 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:16:24,780 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17551599675901098318/leader/TermInfo.properties does not exist 08:16:24,780 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 08:16:24,780 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:16:24,783 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:24,783 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:24,783 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7086f754 08:16:24,783 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:24,783 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 08:16:24,783 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:24,783 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 08:16:24,783 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 08:16:24,783 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:24,783 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 08:16:24,783 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 08:16:24,783 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:24,791 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true], state: Idle 08:16:24,791 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 08:16:24,791 AM [test-pekko.actor.default-dispatcher-15] [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:16:24,791 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 08:16:24,908 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - new-server (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 08:16:24,912 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:24,912 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/01/2025 08:16:24.913] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/new-server215] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:24,913 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 08:16:24,913 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:16:25,9 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:16:25,9 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 08:16:25,9 AM [test-pekko.actor.default-dispatcher-17] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 08:16:25,9 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout ending 08:16:25,9 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower213] 08:16:25,20 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector214#-1759362719] 08:16:25,21 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server215] 08:16:25,21 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:25,21 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:25,21 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader216] 08:16:25,21 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:25,21 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks [INFO] [07/01/2025 08:16:25.023] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:16:25,23 AM [test-pekko.actor.default-dispatcher-15] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/01/2025 08:16:25.024] [test-pekko.actor.default-dispatcher-17] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.13:17355) 08:16:25,25 AM [test-pekko.actor.default-dispatcher-17] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - Exiting completed 08:16:25,25 AM [test-pekko.actor.default-dispatcher-17] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - Shutting down... 08:16:25,25 AM [test-pekko.actor.default-dispatcher-17] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - Successfully shut down [INFO] [07/01/2025 08:16:25.025] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - Exiting completed [INFO] [07/01/2025 08:16:25.025] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - Shutting down... [INFO] [07/01/2025 08:16:25.025] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - Successfully shut down [INFO] [07/01/2025 08:16:25.027] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.13:17355/system/remoting-terminator] Shutting down remote daemon. 08:16:25,27 AM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/01/2025 08:16:25.027] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.13:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 08:16:25,27 AM [test-pekko.actor.default-dispatcher-17] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/01/2025 08:16:25.030] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.13:17355/system/remoting-terminator] Remoting shut down. 08:16:25,30 AM [test-pekko.actor.default-dispatcher-17] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/01/2025 08:16:25.030] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger