[DEBUG] [07/04/2025 04:23:38.916] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:23:38,917 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/04/2025 04:23:38.917] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/04/2025 04:23:38.917] [main] [EventStream(pekko://test)] Default Loggers started 04:23:38,932 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.216:17355] with UID [6405953659493020266] 04:23:38,932 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/04/2025 04:23:38.929] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.216:17355] with UID [6405953659493020266] [INFO] [07/04/2025 04:23:38.930] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - Starting up, Pekko version [1.0.3] ... 04:23:38,933 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:23:38,933 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - Started up successfully [INFO] [07/04/2025 04:23:38.932] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/04/2025 04:23:38.932] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - Started up successfully 04:23:38,933 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:23:38,933 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [07/04/2025 04:23:38.933] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/04/2025 04:23:38.933] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:23:38,945 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress starting 04:23:38,949 AM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/new-server109] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [07/04/2025 04:23:38.951] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server109]: org.opendaylight.controller.cluster.common.actor.Monitor@3304dff5 [INFO] [pekkoDeadLetter][07/04/2025 04:23:38.947] [test-pekko.actor.default-dispatcher-5] [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'. 04:23:38,958 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 04:23:38,958 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 04:23:38,959 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 04:23:38,960 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/TermInfo.properties does not exist 04:23:38,960 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: no eligible files found 04:23:38,960 AM [test-pekko.actor.default-dispatcher-15] [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 04:23:38,963 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 04:23:38,963 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 04:23:38,963 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - new-server: Pekko recovery completed and can restore from snapshot 04:23:38,964 AM [test-pekko.actor.default-dispatcher-15] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 04:23:38,966 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:38,966 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:38,966 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 04:23:38,966 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor [WARN] [07/04/2025 04:23:38.966] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader110]: org.opendaylight.controller.cluster.common.actor.Monitor@3171c57e [INFO] [pekkoDeadLetter][07/04/2025 04:23:38.966] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader110] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:23:38,967 AM [test-pekko.actor.default-dispatcher-6] [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'. 04:23:38,968 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/TermInfo.properties does not exist 04:23:38,968 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 04:23:38,968 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:38,973 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:38,973 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:38,973 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:38,973 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 04:23:38,979 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true], state: Idle 04:23:38,997 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 04:23:38,997 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 04:23:38,997 AM [test-pekko.actor.default-dispatcher-15] [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 04:23:38,997 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 04:23:38,997 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 04:23:38,998 AM [leader-%d445080] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:38,998 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 04:23:39,0 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:39,0 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 04:23:39,0 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 04:23:39,1 AM [leader-%d445081] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-000EF52A.tmp 04:23:39,1 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 04:23:39,1 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 04:23:39,1 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 04:23:39,1 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 04:23:39,1 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 04:23:39,1 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server109), Chunk: 1/1 04:23:39,2 AM [leader-%d445081] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-000EF52A.v1 04:23:39,2 AM [leader-%d445081] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-000EF52A.v1 04:23:39,3 AM [leader-%d445081] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/TermInfo.properties 04:23:39,3 AM [leader-%d445081] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.000980266Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-000EF52A.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:39,3 AM [leader-%d445081] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:39,3 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:39,3 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-04T04:23:39.000980266Z 04:23:39,3 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 04:23:39,3 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 04:23:39,40 AM [test-pekko.actor.default-dispatcher-13] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 04:23:39,40 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false], state: InstallingSnapshot 04:23:39,40 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 04:23:39,42 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 04:23:39,42 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 04:23:39,42 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 04:23:39,42 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:23:39,42 AM [test-pekko.actor.default-dispatcher-13] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 04:23:39,42 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 04:23:39,42 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: support() called [WARN] [07/04/2025 04:23:39.042] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/04/2025 04:23:39.042] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/new-server109] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:23:39,42 AM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:23:39,43 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 04:23:39,43 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 04:23:39,43 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: support() called 04:23:39,44 AM [new-server-%d565692] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-0296A2AD.tmp 04:23:39,46 AM [new-server-%d565692] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-0296A2AD.v1 04:23:39,46 AM [new-server-%d565692] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-0296A2AD.v1 04:23:39,46 AM [new-server-%d565692] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/TermInfo.properties 04:23:39,46 AM [new-server-%d565692] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.043426477Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-0296A2AD.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:39,47 AM [new-server-%d565692] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 04:23:39,47 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 04:23:39,47 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-04T04:23:39.043426477Z 04:23:39,47 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 04:23:39,47 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: support() called 04:23:39,47 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: applySnapshot called 04:23:39,47 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 04:23:39,48 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 04:23:39,48 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 04:23:39,48 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 04:23:39,48 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 04:23:39,48 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 04:23:39,49 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 04:23:39,49 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:39,49 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 04:23:39,49 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=9a712778-38d5-48cd-9207-8d2c62e2b5af}, logIndex: 0, isSendImmediate: true 04:23:39,49 AM [leader-%d445082] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-02F60EED.tmp 04:23:39,49 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:39,50 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:39,50 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 04:23:39,50 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 04:23:39,50 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}]} 04:23:39,50 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 04:23:39,50 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:23:39,51 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]]} 04:23:39,51 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} 04:23:39,51 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-030CC56C.tmp 04:23:39,51 AM [leader-%d445082] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-02F60EED.v1 04:23:39,51 AM [leader-%d445082] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-000EF52A.v1 04:23:39,52 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 04:23:39,52 AM [leader-%d445082] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-02F60EED.v1 04:23:39,52 AM [leader-%d445082] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/TermInfo.properties 04:23:39,52 AM [leader-%d445082] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.000980266Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-000EF52A.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:39,52 AM [leader-%d445082] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.049680109Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-02F60EED.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:39,52 AM [leader-%d445082] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:39,52 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:39,53 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 04:23:39,54 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-030CC56C.v1 04:23:39,54 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-0296A2AD.v1 04:23:39,54 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-030CC56C.v1 04:23:39,54 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/TermInfo.properties 04:23:39,54 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.043426477Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-0296A2AD.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:39,54 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.051168620Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-030CC56C.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:39,54 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} 04:23:39,55 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 04:23:39,55 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Log size is now 1 04:23:39,55 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} 04:23:39,55 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:23:39,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 04:23:39,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 04:23:39,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 04:23:39,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 04:23:39,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:39,55 AM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [07/04/2025 04:23:39.055] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] [INFO] [pekkoDeadLetter][07/04/2025 04:23:39.055] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/new-server109] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [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'. 04:23:39,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:39,55 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 04:23:39,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 04:23:39,56 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Commit index set to 0 04:23:39,56 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 04:23:39,56 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:39,56 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 04:23:39,56 AM [test-pekko.actor.default-dispatcher-6] [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]]} 04:23:39,56 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 04:23:39,56 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 04:23:39,56 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 04:23:39,56 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 04:23:39,56 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:39,56 AM [leader-%d445083] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-0359F741.tmp 04:23:39,56 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=2e6f913b-d21d-4c42-99a4-77be90027225}, logIndex: 1, isSendImmediate: true 04:23:39,56 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:39,56 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 04:23:39,56 AM [test-pekko.actor.default-dispatcher-6] [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}]} 04:23:39,56 AM [test-pekko.actor.default-dispatcher-7] [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}]} 04:23:39,56 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 04:23:39,56 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 04:23:39,56 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 04:23:39,56 AM [test-pekko.actor.default-dispatcher-7] [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} 04:23:39,56 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-03639ADD.tmp 04:23:39,57 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:39,57 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 04:23:39,57 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 04:23:39,57 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 04:23:39,57 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 04:23:39,57 AM [test-pekko.actor.default-dispatcher-6] [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}]} 04:23:39,58 AM [leader-%d445083] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-0359F741.v1 04:23:39,58 AM [leader-%d445083] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-0359F741.v1 04:23:39,58 AM [leader-%d445083] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-02F60EED.v1 04:23:39,58 AM [leader-%d445083] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/TermInfo.properties 04:23:39,58 AM [leader-%d445083] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.049680109Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-02F60EED.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:39,58 AM [leader-%d445083] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.056227649Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/leader/snapshot-000000006867574B-0359F741.v1, size=100, entryCompress=NONE, stateCompress=NONE} 04:23:39,58 AM [leader-%d445083] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:39,58 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-03639ADD.v1 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-03639ADD.v1 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-030CC56C.v1 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/TermInfo.properties 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.051168620Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-030CC56C.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.056859357Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15054253588284483246/new-server/snapshot-000000006867574B-03639ADD.v1, size=100, entryCompress=NONE, stateCompress=NONE} 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [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} 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [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]] 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): Log size is now 2 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [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} 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:39,59 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Commit index set to 1 04:23:39,59 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 04:23:39,60 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 04:23:39,60 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 04:23:39,60 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 04:23:39,60 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 04:23:39,60 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 04:23:39,60 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - new-server: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 04:23:39,70 AM [test-pekko.actor.default-dispatcher-6] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:663) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [07/04/2025 04:23:39.064] [test-pekko.actor.internal-dispatcher-4] [pekko://test/user/follower107] Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:663) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 04:23:39,108 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress ending 04:23:39,108 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower107] 04:23:39,119 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector108#-2021654119] 04:23:39,120 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server109] 04:23:39,120 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:39,120 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:39,120 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader110] 04:23:39,121 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:39,121 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:39,121 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector111] 04:23:39,126 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer starting [WARN] [07/04/2025 04:23:39.127] [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@27714724 04:23:39,127 AM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader113] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][07/04/2025 04:23:39.127] [test-pekko.actor.default-dispatcher-7] [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'. 04:23:39,128 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:39,128 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:39,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:39,129 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:39,130 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15400476054471090720/leader/TermInfo.properties does not exist 04:23:39,130 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 04:23:39,130 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 04:23:39,133 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:39,133 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:39,133 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:39,133 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 04:23:39,133 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:23:39,140 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='new-server'}, state: Idle 04:23:39,141 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer ending 04:23:39,141 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower112] 04:23:39,142 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader113] 04:23:39,142 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:39,142 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:39,144 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader starting [WARN] [07/04/2025 04:23:39.145] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader115]: org.opendaylight.controller.cluster.common.actor.Monitor@6ababe1 [INFO] [pekkoDeadLetter][07/04/2025 04:23:39.145] [test-pekko.actor.default-dispatcher-7] [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'. 04:23:39,146 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'. 04:23:39,146 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:39,146 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:39,146 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:39,148 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12203243255876123828/leader/TermInfo.properties does not exist 04:23:39,148 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 04:23:39,148 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:39,150 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 04:23:39,150 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 04:23:39,150 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:39,162 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 04:23:39,162 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 04:23:39,162 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader ending 04:23:39,162 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower114] 04:23:39,173 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader115] 04:23:39,174 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:39,174 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:39,177 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader starting [WARN] [07/04/2025 04:23:39.178] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader118]: org.opendaylight.controller.cluster.common.actor.Monitor@492dae07 [INFO] [pekkoDeadLetter][07/04/2025 04:23:39.178] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader118] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:23:39,178 AM [test-pekko.actor.default-dispatcher-7] [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'. 04:23:39,179 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:39,179 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:39,179 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:39,180 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:39,181 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10204479141037494964/leader/TermInfo.properties does not exist 04:23:39,181 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: no eligible files found 04:23:39,181 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:39,184 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:39,184 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:39,184 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:39,184 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 04:23:39,185 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:23:39,185 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader118] to Actor[pekko://test/user/follower117] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/follower117] 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/04/2025 04:23:39.185] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/follower117] received dead letter from TestActor[pekko://test/user/leader118]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} [INFO] [pekkoDeadLetter][07/04/2025 04:23:39.185] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower117] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader118] to Actor[pekko://test/user/follower117] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/follower117] 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/04/2025 04:23:39.286] [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@2936acec [INFO] [pekkoDeadLetter][07/04/2025 04:23:39.286] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower117] to Actor[pekko://test/user/termination-monitor] was not delivered. [9] 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'. 04:23:39,286 AM [test-pekko.actor.default-dispatcher-7] [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. [9] 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'. 04:23:39,289 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 04:23:39,289 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 04:23:39,289 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 04:23:39,291 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10204479141037494964/follower/TermInfo.properties does not exist 04:23:39,292 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: no eligible files found 04:23:39,292 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:39,294 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 04:23:39,294 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 04:23:39,294 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - follower: Pekko recovery completed and can restore from snapshot 04:23:39,297 AM [test-pekko.actor.default-dispatcher-7] [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 04:23:39,299 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 04:23:39,299 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/04/2025 04:23:39.299] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 04:23:39,299 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 04:23:39,299 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [INFO] [pekkoDeadLetter][07/04/2025 04:23:39.299] [test-pekko.actor.default-dispatcher-7] [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'. 04:23:39,299 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'. 04:23:39,300 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 04:23:39,302 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true]] 04:23:39,302 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 04:23:39,302 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true} 04:23:39,302 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=5a4dada6-fd7b-4a1c-9919-267fa1fe6d8b}, logIndex: 0, isSendImmediate: true 04:23:39,302 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:39,302 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:39,302 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 04:23:39,302 AM [leader-%d54100] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10204479141037494964/leader/snapshot-000000006867574B-120A1789.tmp 04:23:39,302 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=-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}]} 04:23:39,303 AM [test-pekko.actor.default-dispatcher-7] [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}]} 04:23:39,303 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:23:39,303 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:23:39,303 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 04:23:39,303 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true} 04:23:39,303 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10204479141037494964/follower/snapshot-000000006867574B-1215884A.tmp 04:23:39,303 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='leader'} 04:23:39,304 AM [leader-%d54100] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10204479141037494964/leader/snapshot-000000006867574B-120A1789.v1 04:23:39,305 AM [leader-%d54100] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10204479141037494964/leader/snapshot-000000006867574B-120A1789.v1 04:23:39,305 AM [leader-%d54100] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10204479141037494964/leader/TermInfo.properties 04:23:39,305 AM [leader-%d54100] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.302651273Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10204479141037494964/leader/snapshot-000000006867574B-120A1789.v1, size=75, entryCompress=NONE, stateCompress=NONE} 04:23:39,305 AM [leader-%d54100] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:39,305 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:39,305 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10204479141037494964/follower/snapshot-000000006867574B-1215884A.v1 04:23:39,305 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10204479141037494964/follower/snapshot-000000006867574B-1215884A.v1 04:23:39,305 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 04:23:39,306 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10204479141037494964/follower/TermInfo.properties 04:23:39,306 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.303401034Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10204479141037494964/follower/snapshot-000000006867574B-1215884A.v1, size=75, entryCompress=NONE, stateCompress=NONE} 04:23:39,306 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 04:23:39,306 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [] 04:23:39,306 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower (Follower): Log size is now 1 04:23:39,306 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:23:39,306 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:23:39,306 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 04:23:39,306 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 04:23:39,306 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 04:23:39,306 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 04:23:39,306 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} [WARN] [07/04/2025 04:23:39.306] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 04:23:39,306 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:39,306 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} has been successfully replicated to a majority of followers 04:23:39,307 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:23:39,307 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:39,307 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 04:23:39,307 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:23:39,307 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 04:23:39,307 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/04/2025 04:23:39.309] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/leader118] unhandled message from TestActor[pekko://test/user/leader118]: ServerRemoved [serverId=leader] 04:23:39,356 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader ending 04:23:39,356 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower116] 04:23:39,367 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader118] 04:23:39,368 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:39,368 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:39,368 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector119] 04:23:39,369 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector120#1027873262] 04:23:39,369 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower117] 04:23:39,369 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 04:23:39,369 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 04:23:39,372 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot starting [WARN] [07/04/2025 04:23:39.374] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server123]: org.opendaylight.controller.cluster.common.actor.Monitor@678ddce4 04:23:39,375 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 04:23:39,375 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 04:23:39,375 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 04:23:39,377 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8745975908743771994/new-server/TermInfo.properties does not exist 04:23:39,377 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 04:23:39,377 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 04:23:39,379 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 04:23:39,379 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 04:23:39,379 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed and can restore from snapshot 04:23:39,380 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/04/2025 04:23:39.380] [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@6b79e4b4 04:23:39,381 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:39,381 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:39,381 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:39,381 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:39,382 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8745975908743771994/leader/TermInfo.properties does not exist 04:23:39,382 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 04:23:39,382 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:39,384 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:39,384 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:39,384 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:39,384 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 04:23:39,392 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 04:23:39,392 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 04:23:39,392 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 04:23:39,392 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 04:23:39,392 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 04:23:39,392 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 04:23:39,392 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 04:23:39,393 AM [leader-%d868110] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:39,393 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:39,393 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 04:23:39,393 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 04:23:39,393 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 04:23:39,393 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 04:23:39,393 AM [leader-%d868111] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8745975908743771994/leader/snapshot-000000006867574B-17751243.tmp 04:23:39,393 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 04:23:39,393 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 04:23:39,393 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 04:23:39,393 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server123), Chunk: 1/1 04:23:39,393 AM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 04:23:39,397 AM [leader-%d868111] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8745975908743771994/leader/snapshot-000000006867574B-17751243.v1 04:23:39,398 AM [leader-%d868111] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8745975908743771994/leader/snapshot-000000006867574B-17751243.v1 04:23:39,398 AM [leader-%d868111] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8745975908743771994/leader/TermInfo.properties 04:23:39,398 AM [leader-%d868111] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.393548355Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8745975908743771994/leader/snapshot-000000006867574B-17751243.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:39,398 AM [leader-%d868111] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:39,398 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:39,398 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 04:23:39,398 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-04T04:23:39.393548355Z 04:23:39,398 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 04:23:39,398 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 04:23:39,398 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 04:23:39,398 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:23:39,399 AM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 04:23:39,399 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 04:23:39,399 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 04:23:39,399 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called [WARN] [07/04/2025 04:23:39.399] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/new-server123] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 04:23:39,400 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 04:23:39,400 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 04:23:39,400 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called 04:23:39,400 AM [new-server-%d432490] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8745975908743771994/new-server/snapshot-000000006867574B-17DF6749.tmp 04:23:39,402 AM [new-server-%d432490] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8745975908743771994/new-server/snapshot-000000006867574B-17DF6749.v1 04:23:39,403 AM [new-server-%d432490] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8745975908743771994/new-server/snapshot-000000006867574B-17DF6749.v1 04:23:39,403 AM [new-server-%d432490] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8745975908743771994/new-server/TermInfo.properties 04:23:39,403 AM [new-server-%d432490] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:39.400516937Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8745975908743771994/new-server/snapshot-000000006867574B-17DF6749.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:39,403 AM [new-server-%d432490] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 04:23:39,403 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 04:23:39,403 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-04T04:23:39.400516937Z 04:23:39,403 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 04:23:39,403 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: support() called 04:23:39,404 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: applySnapshot called 04:23:39,404 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 04:23:39,404 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 04:23:39,404 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 04:23:39,404 AM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 04:23:39,404 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 04:23:39,443 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 04:23:39,443 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server new-server: not leader 04:23:41,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 04:23:41,7 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] 04:23:41,8 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 04:23:41,9 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot ending 04:23:41,9 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower121] 04:23:41,20 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector122#-386028339] 04:23:41,20 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server123] 04:23:41,20 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:41,20 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:41,21 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader124] 04:23:41,21 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:41,21 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:41,21 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector125] 04:23:41,24 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected starting [WARN] [07/04/2025 04:23:41.026] [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@722462b0 04:23:41,26 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 04:23:41,26 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: started executor 04:23:41,27 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: started executor [WARN] [07/04/2025 04:23:41.028] [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@1d1636e8 04:23:41,28 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12861671364641922879/node1/TermInfo.properties does not exist 04:23:41,28 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - node1: no eligible files found 04:23:41,29 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 04:23:41,29 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 04:23:41,29 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: started executor 04:23:41,29 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 04:23:41,29 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: started executor 04:23:41,29 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 04:23:41,29 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 04:23:41,30 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12861671364641922879/node2/TermInfo.properties does not exist 04:23:41,30 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: no eligible files found 04:23:41,30 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 04:23:41,30 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 04:23:41,30 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 04:23:41,31 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node2: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 04:23:41,32 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 04:23:41,32 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 04:23:41,32 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - node1: Pekko recovery completed and can restore from snapshot 04:23:41,33 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 04:23:41,33 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 04:23:41,33 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node2: Pekko recovery completed and can restore from snapshot 04:23:41,40 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 04:23:41,43 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 04:23:41,43 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 04:23:41,43 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 04:23:41,43 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:41,43 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 04:23:41,43 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 04:23:41,46 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 04:23:41,46 AM [test-pekko.actor.default-dispatcher-12] [INFO] Candidate - node1 (Candidate): Starting new election term 2 04:23:41,46 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 04:23:41,46 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:23:41,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 04:23:41,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [] 04:23:41,94 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=node2 04:23:41,94 AM [test-pekko.actor.default-dispatcher-12] [INFO] Candidate - node2 (Candidate): Starting new election term 2 04:23:41,94 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:23:41,94 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node2 (Candidate): Received ElectionTimeout 04:23:41,94 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 04:23:41,94 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:41,94 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:23:41,94 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 04:23:41,95 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==[]} 04:23:41,95 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 04:23:41,95 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:23:41,208 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 04:23:41,208 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node2 elected 04:23:41,208 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - node1: Forwarding ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] to new leader 04:23:41,208 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 04:23:41,208 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 04:23:41,208 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - node1: getLeaderAddress leaderId = node2 peerAddress = pekko://test/user/node2 04:23:41,208 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - node1: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/node2)] 04:23:41,209 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 [WARN] [07/04/2025 04:23:41.209] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 04:23:41,209 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:41,209 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 04:23:41,209 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 04:23:41,209 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=pekko://test/user/node1, votingState=VOTING]] 04:23:41,210 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 04:23:41,210 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node2: Persist data index=1 term=2 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 04:23:41,210 AM [test-pekko.actor.default-dispatcher-6] [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} 04:23:41,210 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=5d5e1601-6fa7-404c-8ceb-8d45fb1b4045}, logIndex: 1, isSendImmediate: true 04:23:41,210 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:41,210 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 04:23:41,210 AM [test-pekko.actor.default-dispatcher-6] [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}]} 04:23:41,210 AM [test-pekko.actor.default-dispatcher-12] [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}]} 04:23:41,210 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 04:23:41,210 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 1 04:23:41,210 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 04:23:41,210 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 04:23:41,210 AM [test-pekko.actor.default-dispatcher-12] [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} 04:23:41,211 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 04:23:41,211 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Log size is now 2 04:23:41,211 AM [test-pekko.actor.default-dispatcher-12] [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} 04:23:41,211 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 04:23:41,211 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 1, nextIndex: 2 04:23:41,211 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 04:23:41,211 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:41,212 AM [test-pekko.actor.default-dispatcher-7] [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/04/2025 04:23:41.212] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 04:23:41,212 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - node2: persist complete JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 04:23:41,212 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 04:23:41,212 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 04:23:41,212 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 0 04:23:41,212 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 04:23:41,213 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 04:23:41,213 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 1 04:23:41,213 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 04:23:41,213 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 04:23:41,213 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 04:23:41,213 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 2 04:23:41,213 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorVotingConfigSupport - node2: VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} has been successfully replicated to a majority of followers 04:23:41,328 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Commit index set to 1 04:23:41,328 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 04:23:41,328 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:23:41,328 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 04:23:41,328 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 04:23:41,328 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 04:23:41,328 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 04:23:41,328 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 04:23:41,328 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 04:23:41,328 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 04:23:41,329 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 2 04:23:41,449 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 04:23:41,515 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected ending 04:23:41,515 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower126] 04:23:41,527 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector127#-63719496] 04:23:41,528 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 04:23:41,529 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 04:23:41,529 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 04:23:41,530 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector128#843825760] 04:23:41,530 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 04:23:41,531 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 04:23:41,531 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 04:23:41,536 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout starting [WARN] [07/04/2025 04:23:41.537] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server131]: org.opendaylight.controller.cluster.common.actor.Monitor@6ae6edd3 04:23:41,538 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 04:23:41,538 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 04:23:41,538 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 04:23:41,540 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5602733775534144827/new-server/TermInfo.properties does not exist 04:23:41,540 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 04:23:41,540 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 04:23:41,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 04:23:41,542 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 04:23:41,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed and can restore from snapshot [WARN] [07/04/2025 04:23:41.543] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader132]: org.opendaylight.controller.cluster.common.actor.Monitor@768a9bd5 04:23:41,544 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 04:23:41,544 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:41,544 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:41,544 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:41,544 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:41,545 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5602733775534144827/leader/TermInfo.properties does not exist 04:23:41,545 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 04:23:41,545 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:41,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:41,548 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:41,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:41,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 04:23:41,555 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true], state: Idle 04:23:41,555 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 04:23:41,555 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 04:23:41,555 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 04:23:41,555 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 04:23:41,555 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 04:23:41,556 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 04:23:41,556 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=bogus] 04:23:41,556 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server bogus: server Id doesn't match 04:23:41,556 AM [leader-%d818717] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:41,556 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:41,556 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 04:23:41,556 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 04:23:41,556 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 04:23:41,556 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 04:23:41,556 AM [leader-%d818718] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5602733775534144827/leader/snapshot-000000006867574D-2130BDF8.tmp 04:23:41,557 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 04:23:41,557 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 04:23:41,557 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 04:23:41,557 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server131), Chunk: 1/1 04:23:41,558 AM [leader-%d818718] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5602733775534144827/leader/snapshot-000000006867574D-2130BDF8.v1 04:23:41,558 AM [leader-%d818718] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5602733775534144827/leader/snapshot-000000006867574D-2130BDF8.v1 04:23:41,559 AM [leader-%d818718] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5602733775534144827/leader/TermInfo.properties 04:23:41,559 AM [leader-%d818718] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:41.556842488Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5602733775534144827/leader/snapshot-000000006867574D-2130BDF8.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:41,559 AM [leader-%d818718] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:41,559 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:41,559 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-04T04:23:41.556842488Z 04:23:41,559 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 04:23:41,559 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 04:23:41,668 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 04:23:41,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 04:23:41,671 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 [WARN] [07/04/2025 04:23:41.672] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/new-server131] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 04:23:41,671 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 04:23:41,767 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 04:23:41,768 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 04:23:41,768 AM [test-pekko.actor.default-dispatcher-7] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 04:23:41,768 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout ending 04:23:41,768 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower129] 04:23:41,780 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector130#-1520454174] 04:23:41,780 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server131] 04:23:41,781 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:41,781 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:41,781 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader132] 04:23:41,781 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:41,781 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:41,784 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower starting [WARN] [07/04/2025 04:23:41.786] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server135]: org.opendaylight.controller.cluster.common.actor.Monitor@282591fe 04:23:41,787 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 04:23:41,787 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 04:23:41,787 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 04:23:41,792 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/TermInfo.properties does not exist 04:23:41,792 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: no eligible files found 04:23:41,792 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:41,794 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 04:23:41,794 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 04:23:41,794 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - new-server: Pekko recovery completed and can restore from snapshot 04:23:41,795 AM [test-pekko.actor.default-dispatcher-7] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 04:23:41,795 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 [WARN] [07/04/2025 04:23:41.796] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader136]: org.opendaylight.controller.cluster.common.actor.Monitor@69bd625a 04:23:41,797 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:41,798 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:41,798 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 04:23:41,798 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 04:23:41,800 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/TermInfo.properties does not exist 04:23:41,800 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: no eligible files found 04:23:41,800 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:41,803 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:41,803 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:41,803 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:41,803 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 04:23:41,809 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true], state: Idle 04:23:41,810 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 04:23:41,810 AM [test-pekko.actor.default-dispatcher-7] [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 04:23:41,810 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 04:23:41,810 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - leader: support() called 04:23:41,810 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 04:23:41,810 AM [leader-%d492010] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:41,811 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:41,811 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 04:23:41,811 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - leader: support() called 04:23:41,811 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 04:23:41,811 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 04:23:41,811 AM [leader-%d492011] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/snapshot-000000006867574D-305CF127.tmp 04:23:41,811 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 04:23:41,811 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 04:23:41,811 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 04:23:41,811 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server135), Chunk: 1/1 04:23:41,811 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 04:23:41,814 AM [leader-%d492011] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/snapshot-000000006867574D-305CF127.v1 04:23:41,814 AM [leader-%d492011] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/TermInfo.properties 04:23:41,814 AM [leader-%d492011] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/snapshot-000000006867574D-305CF127.v1 04:23:41,814 AM [leader-%d492011] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:41.811397415Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/snapshot-000000006867574D-305CF127.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:41,814 AM [leader-%d492011] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:41,814 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:41,814 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-04T04:23:41.811397415Z 04:23:41,814 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 04:23:41,815 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 04:23:41,815 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 04:23:41,815 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]} 04:23:41,815 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 04:23:41,815 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:23:41,815 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 04:23:41,815 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 04:23:41,815 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/04/2025 04:23:41.815] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 04:23:41,816 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 04:23:41,816 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 04:23:41,816 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 04:23:41,816 AM [new-server-%d58920] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/snapshot-000000006867574D-30AE1DA2.tmp 04:23:41,818 AM [new-server-%d58920] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/snapshot-000000006867574D-30AE1DA2.v1 04:23:41,818 AM [new-server-%d58920] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/snapshot-000000006867574D-30AE1DA2.v1 04:23:41,818 AM [new-server-%d58920] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/TermInfo.properties 04:23:41,818 AM [new-server-%d58920] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:41.816717218Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/snapshot-000000006867574D-30AE1DA2.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:41,818 AM [new-server-%d58920] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 04:23:41,819 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 04:23:41,819 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-04T04:23:41.816717218Z 04:23:41,819 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 04:23:41,819 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - new-server: support() called 04:23:41,819 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - new-server: applySnapshot called 04:23:41,819 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 04:23:41,819 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 04:23:41,819 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 04:23:41,819 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 1, nextIndex set to 2 04:23:41,819 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 04:23:41,819 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 04:23:41,819 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 04:23:41,819 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 04:23:41,819 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=2 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:41,819 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 04:23:41,820 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=2fba7583-c959-4490-839e-cf46b62c025a}, logIndex: 2, isSendImmediate: true 04:23:41,820 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:41,820 AM [leader-%d492012] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/snapshot-000000006867574D-30E11C20.tmp 04:23:41,820 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 04:23:41,820 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 2 is present for follower new-server 04:23:41,820 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 04:23:41,820 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=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}]} 04:23:41,820 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 04:23:41,820 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:23:41,820 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]]} 04:23:41,820 AM [test-pekko.actor.default-dispatcher-5] [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} 04:23:41,820 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/snapshot-000000006867574D-30EA02C8.tmp 04:23:41,820 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 04:23:41,822 AM [leader-%d492012] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/snapshot-000000006867574D-30E11C20.v1 04:23:41,822 AM [leader-%d492012] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/snapshot-000000006867574D-30E11C20.v1 04:23:41,822 AM [leader-%d492012] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/TermInfo.properties 04:23:41,822 AM [leader-%d492012] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/snapshot-000000006867574D-305CF127.v1 04:23:41,822 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/snapshot-000000006867574D-30EA02C8.v1 04:23:41,822 AM [leader-%d492012] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:41.811397415Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/snapshot-000000006867574D-305CF127.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:41,823 AM [leader-%d492012] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:41.820059168Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/leader/snapshot-000000006867574D-30E11C20.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/snapshot-000000006867574D-30EA02C8.v1 04:23:41,823 AM [leader-%d492012] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/snapshot-000000006867574D-30AE1DA2.v1 04:23:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/TermInfo.properties 04:23:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:41.816717218Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/snapshot-000000006867574D-30AE1DA2.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:41.820642504Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6201660722089894197/new-server/snapshot-000000006867574D-30EA02C8.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [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} 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Log size is now 1 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [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} 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected 1) 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 2, nextIndex: 3 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 2 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 1 to 2 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 04:23:41,823 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 [WARN] [07/04/2025 04:23:41.823] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 04:23:41,824 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): Commit index set to 2 04:23:41,824 AM [test-pekko.actor.default-dispatcher-5] [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 04:23:41,824 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 04:23:41,824 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:23:41,824 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 2 04:23:41,824 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 1 to 2 04:23:41,824 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - new-server: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:41,862 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower ending 04:23:41,862 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower133] 04:23:41,874 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector134#1689639014] 04:23:41,874 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server135] 04:23:41,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:41,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:41,874 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader136] 04:23:41,875 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:41,875 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:41,875 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector137] 04:23:41,878 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout starting [WARN] [07/04/2025 04:23:41.880] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@70887831 04:23:41,881 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 04:23:41,881 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: started executor 04:23:41,881 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: started executor [WARN] [07/04/2025 04:23:41.883] [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@5833ed9a 04:23:41,883 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5264876789454734909/node1/TermInfo.properties does not exist 04:23:41,883 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: no eligible files found 04:23:41,883 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 04:23:41,884 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 04:23:41,884 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING]] 04:23:41,884 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 04:23:41,884 AM [test-pekko.actor.default-dispatcher-5] [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 04:23:41,884 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node2: started executor 04:23:41,884 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node2: started executor 04:23:41,885 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5264876789454734909/node2/TermInfo.properties does not exist 04:23:41,885 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: no eligible files found 04:23:41,885 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 04:23:41,886 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 04:23:41,886 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node2: Updated server config: isVoting: false, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 04:23:41,886 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 1, size: 1 04:23:41,886 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 1 04:23:41,886 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 1 04:23:41,886 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node2: Recovery completed in 67.98 μs - Switching actor to Follower - last log index = 1, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 2 04:23:41,888 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 04:23:41,888 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 04:23:41,888 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - node1: Pekko recovery completed and can restore from snapshot 04:23:41,888 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 04:23:41,888 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 04:23:41,888 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node2: Pekko recovery completed and can restore from snapshot 04:23:41,895 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 04:23:41,895 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 04:23:41,895 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 04:23:41,895 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 04:23:41,895 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:41,895 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 04:23:41,895 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 04:23:41,897 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 04:23:41,897 AM [test-pekko.actor.default-dispatcher-7] [INFO] Candidate - node1 (Candidate): Starting new election term 2 04:23:41,897 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 04:23:41,897 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:23:41,897 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:23:41,897 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 04:23:41,897 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 04:23:41,897 AM [test-pekko.actor.default-dispatcher-6] [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 04:23:41,899 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=null 04:23:41,899 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 1, lastTerm: 1 04:23:41,899 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 04:23:41,899 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=false}, my term is 2 04:23:41,899 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=false}, current voteCount: 1 04:23:42,207 AM [test-pekko.actor.default-dispatcher-7] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 04:23:42,207 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=NON_VOTING]] 04:23:42,208 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 04:23:42,208 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - node1: Found server ActorSelection[Anchor(pekko://test/), Path(/user/node2)] to forward to 04:23:42,209 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]], state: Idle 04:23:42,209 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 04:23:42,209 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - node2: Sending local ElectionTimeout to start leader election 04:23:42,209 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=VOTING]] 04:23:42,209 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 04:23:42,209 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [node1] 04:23:42,213 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node2 04:23:42,213 AM [test-pekko.actor.default-dispatcher-5] [INFO] Candidate - node2 (Candidate): Starting new election term 3 04:23:42,214 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Candidate - node2 (Candidate): Sending RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} to peer node1 04:23:42,214 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 04:23:42,214 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node1 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:23:42,214 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node1 (Follower): Cluster state: [] 04:23:42,214 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node1 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} with higher term appears reachable, updating term. 04:23:42,214 AM [test-pekko.actor.default-dispatcher-6] [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 04:23:42,216 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=null 04:23:42,216 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node1 (Follower): In requestVote: RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 04:23:42,218 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node2 04:23:42,218 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node1 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 04:23:42,218 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Candidate - node2 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 04:23:42,218 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Candidate - node2 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 04:23:42,218 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 04:23:42,219 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:42,219 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 04:23:42,219 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 04:23:42,219 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - node2: New leader node2 elected 04:23:42,219 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 04:23:42,219 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node2: Persist data index=2 term=3 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 04:23:42,219 AM [test-pekko.actor.default-dispatcher-7] [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/04/2025 04:23:42.219] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 04:23:42,219 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=ad3519b8-7b9e-49fc-932d-2cf6217a0ceb}, logIndex: 2, isSendImmediate: true 04:23:42,219 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 04:23:42,220 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 04:23:42,220 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]] [WARN] [07/04/2025 04:23:42.220] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 04:23:42,220 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 04:23:42,220 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 3 04:23:42,220 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 04:23:42,221 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 04:23:42,221 AM [test-pekko.actor.default-dispatcher-7] [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}]} 04:23:42,221 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [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}]} 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 2 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Append entry to log 2 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=1, term=1, command=2, pending=false} 04:23:42,221 AM [test-pekko.actor.default-dispatcher-7] [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} 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [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} 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Log size is now 3 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Commit index set to 1 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [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} 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 04:23:42,221 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 04:23:42,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 04:23:42,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=false]]} 04:23:42,222 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 2, nextIndex: 3 04:23:42,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 04:23:42,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 04:23:42,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Applying state for log index 1 data 2 04:23:42,222 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 04:23:42,222 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - node1: applyState called: 2 04:23:42,222 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 2 04:23:42,222 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 1 to 2 04:23:42,222 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node2: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 04:23:42,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 04:23:42,222 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=2 04:23:42,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 3 04:23:42,222 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 1 for term 3 04:23:42,222 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 04:23:42,222 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorVotingConfigSupport - node2: VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} has been successfully replicated to a majority of followers 04:23:42,223 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=1, command=2, pending=false} 04:23:42,223 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 04:23:42,223 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node1 (Follower): Commit index set to 2 04:23:42,223 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 04:23:42,223 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:23:42,223 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 2 04:23:42,223 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 1 to 2 04:23:42,223 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node1: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 04:23:42,223 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=2 04:23:42,223 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 1 for term 3 04:23:42,338 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 04:23:42,424 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout ending 04:23:42,424 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower138] 04:23:42,426 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector139#1159697048] 04:23:42,426 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 04:23:42,427 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 04:23:42,427 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 04:23:42,427 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector140#922838227] 04:23:42,428 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 04:23:42,429 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 04:23:42,429 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 04:23:42,432 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached starting [WARN] [07/04/2025 04:23:42.433] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server143]: org.opendaylight.controller.cluster.common.actor.Monitor@62908996 04:23:42,434 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 04:23:42,434 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: started executor 04:23:42,434 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: started executor 04:23:42,436 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/new-server/TermInfo.properties does not exist 04:23:42,436 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 04:23:42,436 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 04:23:42,439 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 04:23:42,439 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 04:23:42,439 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed and can restore from snapshot 04:23:42,440 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 04:23:42,442 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:42,443 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 [WARN] [07/04/2025 04:23:42.443] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader144]: org.opendaylight.controller.cluster.common.actor.Monitor@7e2f889c 04:23:42,443 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 04:23:42,443 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 04:23:42,445 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/TermInfo.properties does not exist 04:23:42,445 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 04:23:42,445 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:42,448 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:42,448 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:42,448 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:42,448 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 04:23:42,455 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true], state: Idle 04:23:42,455 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 04:23:42,455 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 04:23:42,455 AM [test-pekko.actor.default-dispatcher-7] [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 04:23:42,455 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 04:23:42,455 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - leader: support() called 04:23:42,456 AM [leader-%d19665] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:42,457 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 04:23:42,457 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:42,457 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 04:23:42,457 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - leader: support() called 04:23:42,458 AM [leader-%d19666] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/snapshot-000000006867574E-1B4D8445.tmp 04:23:42,458 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 04:23:42,458 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 04:23:42,458 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 04:23:42,458 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 04:23:42,458 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 04:23:42,459 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server143), Chunk: 1/1 04:23:42,459 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 04:23:42,460 AM [leader-%d19666] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/snapshot-000000006867574E-1B4D8445.v1 04:23:42,461 AM [leader-%d19666] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/snapshot-000000006867574E-1B4D8445.v1 04:23:42,461 AM [leader-%d19666] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/TermInfo.properties 04:23:42,461 AM [leader-%d19666] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:42.458064965Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/snapshot-000000006867574E-1B4D8445.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:42,461 AM [leader-%d19666] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:42,461 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:42,461 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-04T04:23:42.458064965Z 04:23:42,461 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 04:23:42,461 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 04:23:42,461 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]} 04:23:42,461 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 04:23:42,461 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 04:23:42,461 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:23:42,461 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 04:23:42,462 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 04:23:42,462 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/04/2025 04:23:42.462] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/new-server143] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 04:23:42,462 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 04:23:42,462 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 04:23:42,463 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 04:23:42,463 AM [new-server-%d914816] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/new-server/snapshot-000000006867574E-1B9B1674.tmp 04:23:42,465 AM [new-server-%d914816] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/new-server/snapshot-000000006867574E-1B9B1674.v1 04:23:42,465 AM [new-server-%d914816] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/new-server/snapshot-000000006867574E-1B9B1674.v1 04:23:42,465 AM [new-server-%d914816] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/new-server/TermInfo.properties 04:23:42,465 AM [new-server-%d914816] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:42.463148660Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/new-server/snapshot-000000006867574E-1B9B1674.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:42,465 AM [new-server-%d914816] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 04:23:42,465 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 04:23:42,465 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-04T04:23:42.463148660Z 04:23:42,465 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 04:23:42,465 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 04:23:42,465 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: applySnapshot called 04:23:42,465 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 04:23:42,465 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 04:23:42,466 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 04:23:42,466 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 04:23:42,466 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 04:23:42,505 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 04:23:42,505 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 04:23:42,505 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:42,506 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 04:23:42,506 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=2447d692-aae1-4cbb-99c4-f744935eda48}, logIndex: 0, isSendImmediate: true 04:23:42,506 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:42,506 AM [leader-%d19667] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/snapshot-000000006867574E-1E2CAA91.tmp 04:23:42,506 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:42,506 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 04:23:42,506 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 04:23:42,506 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 04:23:42,514 AM [leader-%d19667] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/snapshot-000000006867574E-1E2CAA91.v1 04:23:42,514 AM [leader-%d19667] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/snapshot-000000006867574E-1B4D8445.v1 04:23:42,514 AM [leader-%d19667] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/TermInfo.properties 04:23:42,514 AM [leader-%d19667] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/snapshot-000000006867574E-1E2CAA91.v1 04:23:42,515 AM [leader-%d19667] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:42.458064965Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/snapshot-000000006867574E-1B4D8445.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:42,515 AM [leader-%d19667] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:42.506243729Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4751089144499186801/leader/snapshot-000000006867574E-1E2CAA91.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:42,515 AM [leader-%d19667] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:42,515 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:42,515 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 04:23:42,556 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 04:23:42,556 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 04:23:42,568 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 04:23:42,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 04:23:42,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 04:23:42,807 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 04:23:42,808 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}]} 04:23:42,928 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 04:23:42,928 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 04:23:43,48 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 04:23:43,48 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}]} 04:23:43,167 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 04:23:43,168 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 04:23:43,288 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 04:23:43,288 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}]} 04:23:43,408 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 04:23:43,408 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 04:23:44,518 AM [test-pekko.actor.default-dispatcher-7] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured while replicating the new server configuration for new-server 04:23:44,518 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 04:23:44,518 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 04:23:44,518 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 04:23:44,519 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached ending 04:23:44,519 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower141] 04:23:44,530 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector142#938019603] 04:23:44,530 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server143] 04:23:44,530 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:44,530 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:44,531 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader144] 04:23:44,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:44,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:44,531 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector145] 04:23:44,532 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-serverCollector146] 04:23:44,534 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers starting [WARN] [07/04/2025 04:23:44.535] [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@636d0e23 04:23:44,536 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:44,537 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:44,537 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 04:23:44,537 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: started executor 04:23:44,538 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17778460524789422297/leader/TermInfo.properties does not exist 04:23:44,539 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 04:23:44,539 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 04:23:44,542 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:44,542 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:44,542 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:44,542 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 04:23:44,547 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 04:23:44,548 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers ending 04:23:44,548 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower147] 04:23:44,558 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader148] 04:23:44,559 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:44,559 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:44,564 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete starting [WARN] [07/04/2025 04:23:44.565] [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@50d6b200 04:23:44,565 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 04:23:44,565 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: started executor 04:23:44,566 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: started executor 04:23:44,567 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12771734248240224057/new-server/TermInfo.properties does not exist 04:23:44,567 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 04:23:44,567 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 04:23:44,572 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 04:23:44,572 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 04:23:44,572 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed and can restore from snapshot 04:23:44,572 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/04/2025 04:23:44.573] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader152]: org.opendaylight.controller.cluster.common.actor.Monitor@30d46540 04:23:44,573 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:44,574 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:44,574 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:44,574 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:44,575 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12771734248240224057/leader/TermInfo.properties does not exist 04:23:44,575 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 04:23:44,575 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:44,577 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:44,577 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:44,577 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:44,577 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 04:23:44,577 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 04:23:44,577 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 04:23:44,577 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 04:23:44,577 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 04:23:44,577 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 04:23:44,578 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 04:23:44,578 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 04:23:44,578 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 04:23:44,578 AM [leader-%d351812] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12771734248240224057/leader/snapshot-0000000068675750-227962AD.tmp 04:23:44,581 AM [leader-%d351812] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12771734248240224057/leader/snapshot-0000000068675750-227962AD.v1 04:23:44,581 AM [leader-%d351812] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12771734248240224057/leader/snapshot-0000000068675750-227962AD.v1 04:23:44,581 AM [leader-%d351812] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12771734248240224057/leader/TermInfo.properties 04:23:44,582 AM [leader-%d351812] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:44.578380461Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12771734248240224057/leader/snapshot-0000000068675750-227962AD.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:44,582 AM [leader-%d351812] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:44,582 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:44,587 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true], state: Idle 04:23:44,587 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 04:23:44,587 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: captureToInstall should not be called in state PersistCapture[lastSequenceNumber=-1, request=CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true]] 04:23:44,587 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 04:23:44,691 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:44,691 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:44,691 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-04T04:23:44.578380461Z 04:23:44,691 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 04:23:44,691 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 04:23:44,691 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: No longer the leader 04:23:44,691 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 04:23:44,691 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 04:23:44,691 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 04:23:44,691 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 04:23:44,691 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete ending 04:23:44,691 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower149] 04:23:44,702 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector150#1765103184] 04:23:44,703 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server151] 04:23:44,703 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:44,703 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:44,703 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader152] 04:23:44,703 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:44,703 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:44,705 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting starting [WARN] [07/04/2025 04:23:44.707] [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@3b29a619 04:23:44,708 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 04:23:44,708 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 04:23:44,708 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 04:23:44,709 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/TermInfo.properties does not exist 04:23:44,710 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: no eligible files found 04:23:44,710 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 04:23:44,712 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 04:23:44,712 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 04:23:44,712 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - new-server: Pekko recovery completed and can restore from snapshot 04:23:44,713 AM [test-pekko.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/04/2025 04:23:44.714] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader156]: org.opendaylight.controller.cluster.common.actor.Monitor@113c2ccd 04:23:44,715 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:44,716 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:44,716 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:44,716 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:44,718 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/TermInfo.properties does not exist 04:23:44,718 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 04:23:44,718 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 04:23:44,721 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:44,721 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:44,721 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:44,722 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 04:23:44,727 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false], state: Idle 04:23:44,727 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 04:23:44,728 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 04:23:44,728 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 04:23:44,728 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 04:23:44,728 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 04:23:44,728 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=6d37a077-f38a-4693-a5c8-beee133ada06}, logIndex: 0, isSendImmediate: true 04:23:44,728 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 04:23:44,728 AM [leader-%d632069] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/snapshot-0000000068675750-2B69B2D0.tmp 04:23:44,728 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 04:23:44,728 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 04:23:44,728 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:44,729 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 04:23:44,729 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 04:23:44,729 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 04:23:44,730 AM [leader-%d632069] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/snapshot-0000000068675750-2B69B2D0.v1 04:23:44,731 AM [leader-%d632069] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/snapshot-0000000068675750-2B69B2D0.v1 04:23:44,731 AM [leader-%d632069] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/TermInfo.properties 04:23:44,731 AM [leader-%d632069] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:44.728347344Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/snapshot-0000000068675750-2B69B2D0.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:44,731 AM [leader-%d632069] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:44,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:44,731 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 04:23:44,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 04:23:44,731 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 04:23:44,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 04:23:44,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:44,731 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server [WARN] [07/04/2025 04:23:44.732] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 04:23:44,732 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=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}]} 04:23:44,732 AM [test-pekko.actor.default-dispatcher-7] [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}]} 04:23:44,732 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 04:23:44,732 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:23:44,732 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 04:23:44,732 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 04:23:44,732 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/snapshot-0000000068675750-2BA5B8C2.tmp 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/snapshot-0000000068675750-2BA5B8C2.v1 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/snapshot-0000000068675750-2BA5B8C2.v1 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/TermInfo.properties 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:44.732281026Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/snapshot-0000000068675750-2BA5B8C2.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): Log size is now 1 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): Commit index set to 0 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 04:23:44,734 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 04:23:44,734 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 04:23:44,734 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/04/2025 04:23:44.734] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 04:23:44,847 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:44,968 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:45,87 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:45,208 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:45,283 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false], state: Idle 04:23:45,283 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 04:23:45,284 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 04:23:45,284 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 04:23:45,284 AM [test-pekko.actor.default-dispatcher-12] [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]]} 04:23:45,284 AM [test-pekko.actor.default-dispatcher-12] [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} 04:23:45,284 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=9ee9fb21-dd11-424c-8049-158b9f9a1160}, logIndex: 1, isSendImmediate: true 04:23:45,284 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 04:23:45,284 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 04:23:45,284 AM [test-pekko.actor.default-dispatcher-12] [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]]} 04:23:45,284 AM [leader-%d632070] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/snapshot-0000000068675751-10F27E23.tmp 04:23:45,284 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:45,284 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 04:23:45,284 AM [test-pekko.actor.default-dispatcher-12] [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}]} 04:23:45,284 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:45,285 AM [test-pekko.actor.default-dispatcher-5] [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}]} 04:23:45,285 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 04:23:45,285 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 04:23:45,285 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 04:23:45,285 AM [test-pekko.actor.default-dispatcher-5] [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]]} 04:23:45,285 AM [test-pekko.actor.default-dispatcher-5] [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} 04:23:45,285 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/snapshot-0000000068675751-1102F80E.tmp 04:23:45,285 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 04:23:45,285 AM [test-pekko.actor.default-dispatcher-12] [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 04:23:45,285 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 04:23:45,285 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=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}]} 04:23:45,286 AM [test-pekko.actor.default-dispatcher-6] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:663) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [07/04/2025 04:23:45.286] [test-pekko.actor.internal-dispatcher-3] [pekko://test/user/follower153] Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:663) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 04:23:45,287 AM [leader-%d632070] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/snapshot-0000000068675751-10F27E23.v1 04:23:45,287 AM [leader-%d632070] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/snapshot-0000000068675751-10F27E23.v1 04:23:45,287 AM [leader-%d632070] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/snapshot-0000000068675750-2B69B2D0.v1 04:23:45,287 AM [leader-%d632070] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/TermInfo.properties 04:23:45,287 AM [leader-%d632070] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:44.728347344Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/snapshot-0000000068675750-2B69B2D0.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:45,287 AM [leader-%d632070] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.284327459Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/leader/snapshot-0000000068675751-10F27E23.v1, size=100, entryCompress=NONE, stateCompress=NONE} 04:23:45,287 AM [leader-%d632070] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:45,287 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:45,288 AM [test-pekko.actor.default-dispatcher-12] [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} 04:23:45,288 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/snapshot-0000000068675751-1102F80E.v1 04:23:45,288 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/snapshot-0000000068675751-1102F80E.v1 04:23:45,288 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/snapshot-0000000068675750-2BA5B8C2.v1 04:23:45,288 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/TermInfo.properties 04:23:45,288 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:44.732281026Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/snapshot-0000000068675750-2BA5B8C2.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:45,288 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.285407246Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4143271020667055579/new-server/snapshot-0000000068675751-1102F80E.v1, size=100, entryCompress=NONE, stateCompress=NONE} 04:23:45,288 AM [test-pekko.actor.default-dispatcher-5] [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} 04:23:45,288 AM [test-pekko.actor.default-dispatcher-5] [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]] 04:23:45,288 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Log size is now 2 04:23:45,289 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Commit index set to 1 04:23:45,289 AM [test-pekko.actor.default-dispatcher-5] [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} 04:23:45,289 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 04:23:45,289 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 04:23:45,289 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 04:23:45,289 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 04:23:45,289 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 04:23:45,289 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=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 04:23:45,289 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:45,336 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting ending 04:23:45,336 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower153] 04:23:45,347 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector154#843823316] 04:23:45,347 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server155] 04:23:45,348 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:45,348 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:45,348 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader156] 04:23:45,348 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:45,348 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:45,349 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector157] 04:23:45,352 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress starting [WARN] [07/04/2025 04:23:45.353] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server160]: org.opendaylight.controller.cluster.common.actor.Monitor@337a004c 04:23:45,354 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 04:23:45,354 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 04:23:45,354 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 04:23:45,355 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/TermInfo.properties does not exist 04:23:45,355 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: no eligible files found 04:23:45,355 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 04:23:45,359 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 04:23:45,359 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 04:23:45,359 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - new-server: Pekko recovery completed and can restore from snapshot 04:23:45,359 AM [test-pekko.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/04/2025 04:23:45.360] [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@67e88a3c 04:23:45,360 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:45,360 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:45,360 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:45,360 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:45,361 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/TermInfo.properties does not exist 04:23:45,361 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 04:23:45,361 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 04:23:45,364 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:45,364 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:45,364 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:45,364 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 04:23:45,364 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 04:23:45,365 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 04:23:45,365 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=true] 04:23:45,365 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 04:23:45,365 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 04:23:45,365 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 04:23:45,365 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 04:23:45,365 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 04:23:45,365 AM [leader-%d684068] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-15C71983.tmp 04:23:45,367 AM [leader-%d684068] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-15C71983.v1 04:23:45,367 AM [leader-%d684068] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-15C71983.v1 04:23:45,367 AM [leader-%d684068] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/TermInfo.properties 04:23:45,367 AM [leader-%d684068] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.365369731Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-15C71983.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:45,367 AM [leader-%d684068] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:45,367 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:45,474 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true], state: Idle 04:23:45,474 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 04:23:45,474 AM [test-pekko.actor.default-dispatcher-12] [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]] 04:23:45,474 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:45,474 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 04:23:45,474 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:45,474 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-04T04:23:45.365369731Z 04:23:45,474 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 04:23:45,474 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 04:23:45,474 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 04:23:45,474 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 04:23:45,474 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 04:23:45,474 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 04:23:45,475 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 04:23:45,475 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 04:23:45,475 AM [leader-%d684069] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:45,475 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:45,475 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 04:23:45,475 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 04:23:45,476 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 04:23:45,476 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 04:23:45,476 AM [leader-%d684070] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-1C62919C.tmp 04:23:45,476 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 04:23:45,476 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 04:23:45,476 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 04:23:45,476 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 04:23:45,476 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server160), Chunk: 1/1 04:23:45,479 AM [leader-%d684070] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-1C62919C.v1 04:23:45,479 AM [leader-%d684070] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-15C71983.v1 04:23:45,480 AM [leader-%d684070] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-1C62919C.v1 04:23:45,480 AM [leader-%d684070] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/TermInfo.properties 04:23:45,480 AM [leader-%d684070] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.365369731Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-15C71983.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:45,480 AM [leader-%d684070] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.476221852Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-1C62919C.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:45,480 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 04:23:45,480 AM [leader-%d684070] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:45,480 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]} 04:23:45,480 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 04:23:45,480 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:23:45,480 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:45,480 AM [test-pekko.actor.default-dispatcher-5] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 04:23:45,480 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-04T04:23:45.476221852Z 04:23:45,480 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 04:23:45,480 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 04:23:45,481 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 04:23:45,481 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: support() called [WARN] [07/04/2025 04:23:45.481] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 04:23:45,481 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 04:23:45,481 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 04:23:45,481 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: support() called 04:23:45,482 AM [new-server-%d56455] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/snapshot-0000000068675751-1CB964A1.tmp 04:23:45,483 AM [new-server-%d56455] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/snapshot-0000000068675751-1CB964A1.v1 04:23:45,483 AM [new-server-%d56455] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/snapshot-0000000068675751-1CB964A1.v1 04:23:45,484 AM [new-server-%d56455] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/TermInfo.properties 04:23:45,484 AM [new-server-%d56455] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.481911969Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/snapshot-0000000068675751-1CB964A1.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:45,484 AM [new-server-%d56455] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 04:23:45,484 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 04:23:45,484 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-04T04:23:45.481911969Z 04:23:45,484 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 04:23:45,484 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: support() called 04:23:45,484 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: applySnapshot called 04:23:45,484 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 04:23:45,484 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 04:23:45,484 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 04:23:45,484 AM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 04:23:45,484 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 04:23:45,484 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 04:23:45,485 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 04:23:45,485 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:45,485 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 04:23:45,485 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=9309f598-36dd-4f5a-9425-7d67dc7df828}, logIndex: 0, isSendImmediate: true 04:23:45,485 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:45,485 AM [leader-%d684071] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-1CEB6013.tmp 04:23:45,485 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:45,485 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 04:23:45,485 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 04:23:45,485 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 04:23:45,485 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}]} 04:23:45,485 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 04:23:45,485 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:23:45,485 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]]} 04:23:45,485 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} 04:23:45,485 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/snapshot-0000000068675751-1CF5DB59.tmp 04:23:45,487 AM [leader-%d684071] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-1CEB6013.v1 04:23:45,487 AM [leader-%d684071] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-1CEB6013.v1 04:23:45,487 AM [leader-%d684071] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-1C62919C.v1 04:23:45,487 AM [leader-%d684071] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/TermInfo.properties 04:23:45,487 AM [leader-%d684071] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.476221852Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-1C62919C.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:45,487 AM [leader-%d684071] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.485187603Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/leader/snapshot-0000000068675751-1CEB6013.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:45,487 AM [leader-%d684071] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:45,487 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:45,487 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/snapshot-0000000068675751-1CF5DB59.v1 04:23:45,487 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} 04:23:45,487 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/snapshot-0000000068675751-1CB964A1.v1 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/snapshot-0000000068675751-1CF5DB59.v1 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/TermInfo.properties 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.481911969Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/snapshot-0000000068675751-1CB964A1.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.485874521Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2870079437017948243/new-server/snapshot-0000000068675751-1CF5DB59.v1, size=86, entryCompress=NONE, stateCompress=NONE} 04:23:45,488 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} 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Log size is now 1 04:23:45,488 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} 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/04/2025 04:23:45.488] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 04:23:45,488 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Commit index set to 0 04:23:45,488 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:45,488 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 04:23:45,488 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 04:23:45,489 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 04:23:45,488 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 04:23:45,489 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=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:45,536 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress ending 04:23:45,536 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower158] 04:23:45,547 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector159#-946962789] 04:23:45,548 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server160] 04:23:45,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:45,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:45,548 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader161] 04:23:45,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:45,549 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:45,549 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector162] 04:23:45,553 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode starting [WARN] [07/04/2025 04:23:45.554] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader164]: org.opendaylight.controller.cluster.common.actor.Monitor@d9d6702 04:23:45,555 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:45,555 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:45,555 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 04:23:45,555 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 04:23:45,556 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17448501014512941811/leader/TermInfo.properties does not exist 04:23:45,556 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 04:23:45,556 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 04:23:45,559 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:45,560 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:45,560 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:45,560 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 04:23:45,560 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 04:23:45,560 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 04:23:45,560 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning INVALID_REQUEST for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 04:23:45,560 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode ending 04:23:45,560 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower163] 04:23:45,562 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader164] 04:23:45,562 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:45,562 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:45,564 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting starting [WARN] [07/04/2025 04:23:45.565] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader168]: org.opendaylight.controller.cluster.common.actor.Monitor@199fc75e 04:23:45,566 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:45,566 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:45,566 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:45,566 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:45,568 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/leader/TermInfo.properties does not exist 04:23:45,569 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 04:23:45,569 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/04/2025 04:23:45.569] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower166]: org.opendaylight.controller.cluster.common.actor.Monitor@7f874c32 04:23:45,570 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 04:23:45,570 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 04:23:45,570 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 04:23:45,571 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:45,571 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:45,571 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:45,572 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 04:23:45,572 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:23:45,572 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/04/2025 04:23:45.572] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2167]: org.opendaylight.controller.cluster.common.actor.Monitor@dba74be 04:23:45,572 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/follower/TermInfo.properties does not exist 04:23:45,573 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: no eligible files found 04:23:45,573 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:45,573 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 04:23:45,573 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: started executor 04:23:45,573 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: started executor 04:23:45,575 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/follower2/TermInfo.properties does not exist 04:23:45,575 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: no eligible files found 04:23:45,575 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:45,575 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 04:23:45,575 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 04:23:45,575 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - follower: Pekko recovery completed and can restore from snapshot 04:23:45,576 AM [test-pekko.actor.default-dispatcher-15] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 04:23:45,577 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 04:23:45,577 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 04:23:45,577 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower2: Pekko recovery completed and can restore from snapshot 04:23:45,578 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - follower2 (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 04:23:45,579 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 04:23:45,579 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:23:45,579 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 04:23:45,579 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/04/2025 04:23:45.579] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 04:23:45,580 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 04:23:45,580 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 04:23:45,580 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 04:23:45,580 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/04/2025 04:23:45.580] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 04:23:45,584 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 04:23:45,584 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 04:23:45,584 AM [test-pekko.actor.default-dispatcher-7] [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]] 04:23:45,584 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]] 04:23:45,584 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 04:23:45,584 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 04:23:45,584 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=c81d36a5-f02b-45c0-81a3-c2fb41605e18}, logIndex: 0, isSendImmediate: true 04:23:45,584 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:45,584 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:45,584 AM [leader-%d150050] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/leader/snapshot-0000000068675751-22DAAE1B.tmp 04:23:45,584 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 04:23:45,584 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 04:23:45,585 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:45,585 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 04:23:45,585 AM [test-pekko.actor.default-dispatcher-7] [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}]} 04:23:45,585 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 04:23:45,585 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 04:23:45,585 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:23:45,585 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 04:23:45,585 AM [test-pekko.actor.default-dispatcher-15] [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]]} 04:23:45,585 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=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 04:23:45,585 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 04:23:45,585 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:23:45,585 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:23:45,585 AM [test-pekko.actor.default-dispatcher-6] [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]]} 04:23:45,585 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 04:23:45,585 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/follower2/snapshot-0000000068675751-22E355AC.tmp 04:23:45,585 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/follower/snapshot-0000000068675751-22E406AB.tmp 04:23:45,587 AM [leader-%d150050] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/leader/snapshot-0000000068675751-22DAAE1B.v1 04:23:45,587 AM [leader-%d150050] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/leader/snapshot-0000000068675751-22DAAE1B.v1 04:23:45,587 AM [leader-%d150050] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/leader/TermInfo.properties 04:23:45,587 AM [leader-%d150050] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.584756763Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/leader/snapshot-0000000068675751-22DAAE1B.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:45,587 AM [leader-%d150050] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:45,587 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:45,587 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false} 04:23:45,588 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/follower2/snapshot-0000000068675751-22E355AC.v1 04:23:45,588 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/follower2/snapshot-0000000068675751-22E355AC.v1 04:23:45,588 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/follower2/TermInfo.properties 04:23:45,588 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.585323948Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/follower2/snapshot-0000000068675751-22E355AC.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:45,588 AM [test-pekko.actor.default-dispatcher-15] [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} 04:23:45,588 AM [test-pekko.actor.default-dispatcher-15] [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]] 04:23:45,588 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): Log size is now 1 04:23:45,588 AM [test-pekko.actor.default-dispatcher-15] [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} 04:23:45,588 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:23:45,588 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 04:23:45,588 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 04:23:45,588 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 04:23:45,588 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 04:23:45,588 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 04:23:45,589 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/04/2025 04:23:45.589] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 04:23:45,589 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} has been successfully replicated to a majority of followers 04:23:45,589 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorVotingConfigSupport - Leader changed to non-voting - trying leadership transfer 04:23:45,589 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 04:23:45,589 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:45,589 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 04:23:45,589 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 04:23:45,589 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 04:23:45,589 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Initiating leader transfer 04:23:45,589 AM [test-pekko.actor.default-dispatcher-15] [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]]} 04:23:45,589 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/follower/snapshot-0000000068675751-22E406AB.v1 04:23:45,589 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/follower/snapshot-0000000068675751-22E406AB.v1 04:23:45,589 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/follower/TermInfo.properties 04:23:45,589 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:45.585369259Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4355656101906800703/follower/snapshot-0000000068675751-22E406AB.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:45,590 AM [test-pekko.actor.default-dispatcher-6] [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} 04:23:45,589 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower2: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 04:23:45,590 AM [test-pekko.actor.default-dispatcher-6] [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]] 04:23:45,590 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Log size is now 1 04:23:45,590 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:23:45,590 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:23:45,590 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] [WARN] [07/04/2025 04:23:45.590] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 04:23:45,591 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorLeadershipTransferCohort - leader: pauseLeader successfully completed - doing transfer 04:23:45,591 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Leader - leader (Leader): Attempting to transfer leadership 04:23:45,591 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:45,591 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:45,591 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 04:23:45,591 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} 04:23:45,591 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Leader - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower2, matchIndex: 0, lastIndex: 0, isVoting: true 04:23:45,591 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Leader - leader (Leader): Follower's log matches - sending ElectionTimeout 04:23:45,591 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:45,591 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:45,591 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} 04:23:45,591 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:45,591 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 04:23:45,591 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:23:45,591 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Leader - leader (Leader): Leader transfer complete 04:23:45,592 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader transfer complete - waiting for new leader 04:23:45,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): matchEntry JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false} is present: existingEntryTerm: 1 04:23:45,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 04:23:45,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): Log size is now 1 04:23:45,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:23:45,592 AM [test-pekko.actor.default-dispatcher-12] [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} 04:23:45,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:45,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 04:23:45,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:23:45,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 04:23:45,592 AM [test-pekko.actor.default-dispatcher-12] [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]]} 04:23:45,592 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 04:23:45,592 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:45,592 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:45,592 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:45,592 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower2 (Follower): Received TimeoutNow - switching to Candidate 04:23:45,592 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - follower2 (Candidate): Election: Candidate has following voting peers: [follower] 04:23:45,595 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=follower2 04:23:45,595 AM [test-pekko.actor.default-dispatcher-17] [INFO] Candidate - follower2 (Candidate): Starting new election term 2 04:23:45,595 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - follower2 (Candidate): Sending RequestVote{term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1} to peer follower 04:23:45,595 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - follower2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:23:45,595 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:23:45,595 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 04:23:45,595 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 04:23:45,595 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - follower (Follower): Term 2 in "RequestVote{term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1}" message is greater than follower's term 1 - updating term 04:23:45,597 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=2, votedFor=null 04:23:45,597 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 0, lastTerm: 1 04:23:45,599 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=2, votedFor=follower2 04:23:45,599 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=true} 04:23:45,599 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Candidate - follower2 (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=true}, my term is 2 04:23:45,599 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Candidate - follower2 (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=true}, current voteCount: 1 04:23:45,600 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - follower2 (Leader): Election: Leader has following peers: [leader, follower] 04:23:45,600 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - follower2 (Leader): Checking sendAppendEntries for follower leader: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:45,600 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - follower2 (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:45,600 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorBehavior - follower2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:23:45,600 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractLeader - leader (Leader): Term 2 in "AppendEntries{term=2, leaderId=follower2, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than leader's term 1 - switching to Follower 04:23:45,600 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader follower2, need to catch up to -1 04:23:45,600 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - follower2 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 04:23:45,600 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - follower2 (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/04/2025 04:23:45.600] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 04:23:45,600 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) [WARN] [07/04/2025 04:23:45.600] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 04:23:45,602 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=2, votedFor=null 04:23:45,602 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - leader (Leader) :- Switching from behavior Leader to Follower, election term: 2 04:23:46,118 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - leader: Last sync leader does not match current leader follower2, need to catch up to -1 04:23:46,118 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) 04:23:46,118 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower2 (Leader): handleAppendEntriesReply - FollowerLogInformation for leader updated: matchIndex: 0, nextIndex: 1 04:23:46,118 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader changed to follower2 04:23:46,118 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower2 (Leader): Checking sendAppendEntries for follower leader: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:46,118 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActorLeadershipTransferCohort - leader: Successfully transferred leadership to follower2 in 529.2 ms 04:23:46,119 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: leader transfer succeeded after change to non-voting 04:23:46,119 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - leader: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) [WARN] [07/04/2025 04:23:46.119] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=false] [WARN] [07/04/2025 04:23:46.119] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=true] 04:23:46,141 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting ending 04:23:46,141 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower165] 04:23:46,152 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader168] 04:23:46,153 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:46,153 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:46,153 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector169] 04:23:46,154 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector170#266054878] 04:23:46,154 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower166] 04:23:46,154 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 04:23:46,154 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 04:23:46,154 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector171#-149605988] 04:23:46,155 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2167] 04:23:46,155 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 04:23:46,155 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 04:23:46,158 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState starting [WARN] [07/04/2025 04:23:46.159] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader173]: org.opendaylight.controller.cluster.common.actor.Monitor@1851e538 04:23:46,160 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:46,160 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:46,161 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:46,161 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState ending 04:23:46,161 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower172] 04:23:46,162 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8877115459274996033/leader/TermInfo.properties does not exist 04:23:46,162 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 04:23:46,162 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:46,165 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 04:23:46,165 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 04:23:46,165 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:46,172 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader173] 04:23:46,172 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:46,172 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:46,174 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer starting [WARN] [07/04/2025 04:23:46.175] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader177]: org.opendaylight.controller.cluster.common.actor.Monitor@57ba57a2 04:23:46,176 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:46,176 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:46,176 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:46,177 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:46,178 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/leader/TermInfo.properties does not exist [WARN] [07/04/2025 04:23:46.178] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower175]: org.opendaylight.controller.cluster.common.actor.Monitor@6806dfad 04:23:46,178 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - leader: no eligible files found 04:23:46,178 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:46,178 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 04:23:46,179 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 04:23:46,179 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor [WARN] [07/04/2025 04:23:46.179] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2176]: org.opendaylight.controller.cluster.common.actor.Monitor@7910c6d1 04:23:46,180 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/follower/TermInfo.properties does not exist 04:23:46,180 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: no eligible files found 04:23:46,180 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:46,181 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 04:23:46,181 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: started executor 04:23:46,181 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: started executor 04:23:46,182 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:46,182 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:46,182 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:46,182 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower, downNode] 04:23:46,182 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:23:46,182 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:23:46,183 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 04:23:46,183 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 04:23:46,183 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower: Pekko recovery completed and can restore from snapshot 04:23:46,183 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/04/2025 04:23:46.183] [test-pekko.actor.default-dispatcher-12] [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==[]} 04:23:46,183 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/follower2/TermInfo.properties does not exist 04:23:46,184 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: no eligible files found 04:23:46,184 AM [test-pekko.actor.default-dispatcher-5] [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 04:23:46,184 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 04:23:46,185 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 04:23:46,185 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 04:23:46,186 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - follower2: Pekko recovery completed and can restore from snapshot 04:23:46,186 AM [test-pekko.actor.default-dispatcher-5] [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 04:23:46,186 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 04:23:46,187 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:23:46,187 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 04:23:46,187 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/04/2025 04:23:46.187] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower175] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 04:23:46,187 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 04:23:46,187 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 04:23:46,187 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 04:23:46,187 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/04/2025 04:23:46.187] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 04:23:46,196 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 04:23:46,196 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 04:23:46,196 AM [test-pekko.actor.default-dispatcher-12] [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]]} 04:23:46,196 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 04:23:46,197 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=22e1ef21-eac4-4ce8-bb56-95957f0ba5da}, logIndex: 0, isSendImmediate: true 04:23:46,197 AM [leader-%d717234] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/leader/snapshot-0000000068675752-0BBFCD4C.tmp 04:23:46,197 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:46,197 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:46,197 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 04:23:46,197 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 04:23:46,197 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:46,197 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='follower'} 04:23:46,197 AM [test-pekko.actor.default-dispatcher-5] [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}]} 04:23:46,198 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 04:23:46,198 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:23:46,198 AM [test-pekko.actor.default-dispatcher-5] [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]]} [WARN] [07/04/2025 04:23:46.198] [test-pekko.actor.default-dispatcher-6] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader177]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 04:23:46,198 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=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 04:23:46,198 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/follower2/snapshot-0000000068675752-0BCEC149.tmp 04:23:46,199 AM [leader-%d717234] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/leader/snapshot-0000000068675752-0BBFCD4C.v1 04:23:46,199 AM [leader-%d717234] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/leader/snapshot-0000000068675752-0BBFCD4C.v1 04:23:46,199 AM [leader-%d717234] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/leader/TermInfo.properties 04:23:46,199 AM [leader-%d717234] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.197119308Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/leader/snapshot-0000000068675752-0BBFCD4C.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:46,199 AM [leader-%d717234] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:46,199 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:46,199 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} 04:23:46,199 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/follower2/snapshot-0000000068675752-0BCEC149.v1 04:23:46,199 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/follower2/snapshot-0000000068675752-0BCEC149.v1 04:23:46,199 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/follower2/TermInfo.properties 04:23:46,199 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.198099273Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2891096968144782292/follower2/snapshot-0000000068675752-0BCEC149.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:46,199 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=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 04:23:46,199 AM [test-pekko.actor.default-dispatcher-5] [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]] 04:23:46,199 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): Log size is now 1 04:23:46,200 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} 04:23:46,200 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) [WARN] [07/04/2025 04:23:46.200] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 04:23:46,200 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 04:23:46,200 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 04:23:46,200 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 04:23:46,200 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 04:23:46,200 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]]} 04:23:46,200 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:46,200 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 04:23:46,200 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:46,200 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 04:23:46,200 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 04:23:46,200 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 04:23:46,200 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]]} 04:23:46,200 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 [WARN] [07/04/2025 04:23:46.201] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower175] unhandled message from TestActor[pekko://test/user/leader177]: ServerRemoved [serverId=follower] 04:23:46,248 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer ending 04:23:46,248 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower174] 04:23:46,260 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader177] 04:23:46,260 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:46,261 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:46,261 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector178] 04:23:46,261 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector179#-263391975] 04:23:46,261 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower175] 04:23:46,262 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 04:23:46,262 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 04:23:46,262 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector180#-483045948] 04:23:46,262 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2176] 04:23:46,263 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 04:23:46,263 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 04:23:46,266 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader starting [WARN] [07/04/2025 04:23:46.267] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server183]: org.opendaylight.controller.cluster.common.actor.Monitor@72e5d8ea 04:23:46,268 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 04:23:46,269 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 04:23:46,269 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 04:23:46,270 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6784477071060579506/new-server/TermInfo.properties does not exist 04:23:46,270 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 04:23:46,270 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 04:23:46,273 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 04:23:46,273 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 04:23:46,273 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed and can restore from snapshot 04:23:46,273 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/04/2025 04:23:46.274] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader184]: org.opendaylight.controller.cluster.common.actor.Monitor@de469c4 04:23:46,275 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:46,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 04:23:46,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 04:23:46,276 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6784477071060579506/leader/TermInfo.properties does not exist 04:23:46,276 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 04:23:46,276 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 04:23:46,278 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 04:23:46,278 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 04:23:46,278 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:46,289 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server183, votingMember=true], state: Idle 04:23:46,289 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 04:23:46,289 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader ending 04:23:46,289 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower181] 04:23:46,300 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector182#-498224990] 04:23:46,300 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server183] 04:23:46,301 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:46,301 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:46,301 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader184] 04:23:46,301 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:46,301 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:46,304 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus starting [WARN] [07/04/2025 04:23:46.305] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader188]: org.opendaylight.controller.cluster.common.actor.Monitor@f03eaef 04:23:46,305 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:46,306 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:46,306 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 04:23:46,306 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 04:23:46,308 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/TermInfo.properties does not exist 04:23:46,308 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: no eligible files found 04:23:46,308 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/04/2025 04:23:46.310] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower186]: org.opendaylight.controller.cluster.common.actor.Monitor@3552fa5a 04:23:46,310 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 04:23:46,310 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 04:23:46,310 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 04:23:46,312 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/TermInfo.properties does not exist 04:23:46,312 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: no eligible files found 04:23:46,312 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 04:23:46,312 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:46,312 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:46,312 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:46,313 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 04:23:46,313 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:23:46,313 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/04/2025 04:23:46.313] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower2187] received dead letter from TestActor[pekko://test/user/leader188]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 04:23:46,314 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 04:23:46,314 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 04:23:46,314 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: Pekko recovery completed and can restore from snapshot 04:23:46,314 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 04:23:46,317 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 04:23:46,317 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 04:23:46,317 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 04:23:46,317 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/04/2025 04:23:46.317] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [WARN] [07/04/2025 04:23:46.411] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2187]: org.opendaylight.controller.cluster.common.actor.Monitor@3a1ccbe8 04:23:46,411 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 04:23:46,411 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: started executor 04:23:46,412 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: started executor 04:23:46,412 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/TermInfo.properties does not exist 04:23:46,413 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: no eligible files found 04:23:46,413 AM [test-pekko.actor.default-dispatcher-12] [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 04:23:46,415 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 04:23:46,415 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 04:23:46,415 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower2: Pekko recovery completed and can restore from snapshot 04:23:46,422 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]], state: Idle 04:23:46,422 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 04:23:46,422 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]] 04:23:46,422 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]] 04:23:46,422 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]]} 04:23:46,422 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} 04:23:46,423 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=985d5ad0-2b64-44fd-b11e-4278d08bd090}, logIndex: 0, isSendImmediate: true 04:23:46,423 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 04:23:46,423 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 04:23:46,423 AM [leader-%d526991] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/snapshot-0000000068675752-1935AA25.tmp 04:23:46,423 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]]} 04:23:46,423 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:46,423 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:46,423 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 04:23:46,423 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=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}]} 04:23:46,423 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]] 04:23:46,423 AM [test-pekko.actor.default-dispatcher-12] [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 04:23:46,423 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 04:23:46,423 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 04:23:46,423 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:23:46,423 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:23:46,423 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 04:23:46,423 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 04:23:46,423 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/snapshot-0000000068675752-19428B11.tmp 04:23:46,425 AM [leader-%d526991] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/snapshot-0000000068675752-1935AA25.v1 04:23:46,425 AM [leader-%d526991] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/snapshot-0000000068675752-1935AA25.v1 04:23:46,425 AM [leader-%d526991] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/TermInfo.properties 04:23:46,425 AM [leader-%d526991] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.422947365Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/snapshot-0000000068675752-1935AA25.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:46,425 AM [leader-%d526991] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:46,425 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:46,425 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} 04:23:46,426 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 04:23:46,426 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 04:23:46,427 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 04:23:46,427 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:46,427 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 04:23:46,427 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} [WARN] [07/04/2025 04:23:46.427] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 04:23:46,427 AM [test-pekko.actor.default-dispatcher-12] [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}]} 04:23:46,427 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 04:23:46,427 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:23:46,427 AM [test-pekko.actor.default-dispatcher-12] [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]]} 04:23:46,427 AM [test-pekko.actor.default-dispatcher-12] [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} 04:23:46,427 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/snapshot-0000000068675752-197B46EA.tmp 04:23:46,427 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/snapshot-0000000068675752-19428B11.v1 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/TermInfo.properties 04:23:46,428 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/snapshot-0000000068675752-19428B11.v1 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.423791377Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/snapshot-0000000068675752-19428B11.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING]] 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Log size is now 1 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 04:23:46,428 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 04:23:46,428 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:46,428 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} [WARN] [07/04/2025 04:23:46.429] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 04:23:46,429 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/snapshot-0000000068675752-197B46EA.v1 04:23:46,429 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/snapshot-0000000068675752-197B46EA.v1 04:23:46,429 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/TermInfo.properties 04:23:46,429 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.427509482Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/snapshot-0000000068675752-197B46EA.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:46,430 AM [test-pekko.actor.default-dispatcher-12] [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} 04:23:46,430 AM [test-pekko.actor.default-dispatcher-12] [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]] 04:23:46,430 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower2 (Follower): Log size is now 1 04:23:46,430 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 04:23:46,430 AM [test-pekko.actor.default-dispatcher-12] [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} 04:23:46,430 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 04:23:46,430 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 04:23:46,430 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 04:23:46,430 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 04:23:46,430 AM [test-pekko.actor.default-dispatcher-12] [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]]} 04:23:46,430 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 [WARN] [07/04/2025 04:23:46.430] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 04:23:46,430 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:46,474 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]], state: Idle 04:23:46,475 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 04:23:46,475 AM [test-pekko.actor.default-dispatcher-12] [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]] 04:23:46,475 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 04:23:46,475 AM [test-pekko.actor.default-dispatcher-12] [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]]} 04:23:46,475 AM [test-pekko.actor.default-dispatcher-12] [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} 04:23:46,475 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=8511a163-afd4-44d0-8380-fffc569907db}, logIndex: 1, isSendImmediate: true 04:23:46,475 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 04:23:46,475 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 04:23:46,475 AM [test-pekko.actor.default-dispatcher-12] [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]]} 04:23:46,475 AM [leader-%d526992] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/snapshot-0000000068675752-1C578C25.tmp 04:23:46,475 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:46,475 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower2 04:23:46,475 AM [test-pekko.actor.default-dispatcher-12] [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}]} 04:23:46,476 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:46,476 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower 04:23:46,476 AM [test-pekko.actor.default-dispatcher-12] [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}]} 04:23:46,476 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]] 04:23:46,476 AM [test-pekko.actor.default-dispatcher-6] [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}]} 04:23:46,476 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 04:23:46,476 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}]} 04:23:46,476 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 04:23:46,476 AM [test-pekko.actor.default-dispatcher-6] [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]]} 04:23:46,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:23:46,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 04:23:46,476 AM [test-pekko.actor.default-dispatcher-6] [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} 04:23:46,476 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]]} 04:23:46,476 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} 04:23:46,476 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/snapshot-0000000068675752-1C674CBF.tmp 04:23:46,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/snapshot-0000000068675752-1C67A63E.tmp 04:23:46,476 AM [test-pekko.actor.default-dispatcher-12] [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 04:23:46,479 AM [leader-%d526992] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/snapshot-0000000068675752-1C578C25.v1 04:23:46,479 AM [leader-%d526992] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/snapshot-0000000068675752-1935AA25.v1 04:23:46,479 AM [leader-%d526992] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/snapshot-0000000068675752-1C578C25.v1 04:23:46,479 AM [leader-%d526992] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/TermInfo.properties 04:23:46,480 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/snapshot-0000000068675752-1C67A63E.v1 04:23:46,480 AM [leader-%d526992] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.422947365Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/snapshot-0000000068675752-1935AA25.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:46,480 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/snapshot-0000000068675752-1C67A63E.v1 04:23:46,480 AM [leader-%d526992] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.475499557Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/leader/snapshot-0000000068675752-1C578C25.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:46,480 AM [leader-%d526992] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:46,480 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/TermInfo.properties 04:23:46,480 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/snapshot-0000000068675752-1C674CBF.v1 04:23:46,480 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:46,480 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/snapshot-0000000068675752-19428B11.v1 04:23:46,480 AM [test-pekko.actor.default-dispatcher-12] [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} 04:23:46,480 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 04:23:46,480 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/snapshot-0000000068675752-197B46EA.v1 04:23:46,480 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.423791377Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/snapshot-0000000068675752-19428B11.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:46,480 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.476554814Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower/snapshot-0000000068675752-1C67A63E.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:46,480 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} 04:23:46,480 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/snapshot-0000000068675752-1C674CBF.v1 04:23:46,480 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]] 04:23:46,480 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Log size is now 2 04:23:46,481 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Commit index set to 1 04:23:46,481 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} 04:23:46,481 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 04:23:46,481 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 04:23:46,481 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:23:46,481 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 0 to 1 04:23:46,481 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]]} 04:23:46,481 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 04:23:46,481 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 04:23:46,482 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/TermInfo.properties 04:23:46,482 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.427509482Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/snapshot-0000000068675752-197B46EA.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:46,482 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.476531903Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6123462790770992507/follower2/snapshot-0000000068675752-1C674CBF.v1, size=96, entryCompress=NONE, stateCompress=NONE} 04:23:46,482 AM [test-pekko.actor.default-dispatcher-6] [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} 04:23:46,482 AM [test-pekko.actor.default-dispatcher-6] [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]] 04:23:46,482 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Log size is now 2 04:23:46,482 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Commit index set to 1 04:23:46,483 AM [test-pekko.actor.default-dispatcher-6] [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} 04:23:46,483 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 04:23:46,483 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 04:23:46,483 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 1 04:23:46,483 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from 0 to 1 04:23:46,483 AM [test-pekko.actor.default-dispatcher-6] [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]]} 04:23:46,483 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 1, nextIndex: 2 04:23:46,483 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 04:23:46,527 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus ending 04:23:46,527 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower185] 04:23:46,539 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader188] 04:23:46,539 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:46,539 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:46,540 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector189] 04:23:46,540 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector190#-158161741] 04:23:46,540 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower186] 04:23:46,540 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 04:23:46,540 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 04:23:46,541 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector191#-78948858] 04:23:46,541 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2187] 04:23:46,541 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 04:23:46,541 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 04:23:46,544 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower starting [WARN] [07/04/2025 04:23:46.545] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server194]: org.opendaylight.controller.cluster.common.actor.Monitor@523a7f78 04:23:46,546 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 04:23:46,546 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 04:23:46,546 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 04:23:46,547 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/TermInfo.properties does not exist 04:23:46,548 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: no eligible files found 04:23:46,548 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 04:23:46,550 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 04:23:46,550 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 04:23:46,550 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - new-server: Pekko recovery completed and can restore from snapshot 04:23:46,551 AM [main] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 2 04:23:46,551 AM [test-pekko.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/04/2025 04:23:46.552] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader195]: org.opendaylight.controller.cluster.common.actor.Monitor@77296c77 04:23:46,552 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 04:23:46,552 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:46,552 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:46,552 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 04:23:46,553 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/TermInfo.properties does not exist 04:23:46,553 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 04:23:46,553 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 04:23:46,555 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 04:23:46,555 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=leader} 04:23:46,555 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:46,556 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 04:23:46,556 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 04:23:46,556 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 04:23:46,556 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 04:23:46,556 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 04:23:46,556 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 04:23:46,556 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 04:23:46,556 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 1 for term 1 04:23:46,614 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true], state: Idle 04:23:46,615 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 04:23:46,615 AM [test-pekko.actor.default-dispatcher-5] [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 04:23:46,615 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 04:23:46,615 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - leader: support() called 04:23:46,616 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 04:23:46,616 AM [leader-%d391783] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:46,616 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:46,616 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 04:23:46,616 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - leader: support() called 04:23:46,617 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 04:23:46,617 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 04:23:46,617 AM [leader-%d391784] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/snapshot-0000000068675752-24C729BA.tmp 04:23:46,617 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 04:23:46,617 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 04:23:46,617 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 04:23:46,617 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server194), Chunk: 1/1 04:23:46,617 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 04:23:46,620 AM [leader-%d391784] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/snapshot-0000000068675752-24C729BA.v1 04:23:46,620 AM [leader-%d391784] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/snapshot-0000000068675752-24C729BA.v1 04:23:46,620 AM [leader-%d391784] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/TermInfo.properties 04:23:46,620 AM [leader-%d391784] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.617032122Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/snapshot-0000000068675752-24C729BA.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:46,620 AM [leader-%d391784] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:46,620 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:46,620 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-04T04:23:46.617032122Z 04:23:46,620 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 04:23:46,621 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 04:23:46,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 04:23:46,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 04:23:46,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 2 04:23:46,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:23:46,621 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 04:23:46,621 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 04:23:46,621 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/04/2025 04:23:46.621] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 04:23:46,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 04:23:46,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 04:23:46,621 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 04:23:46,622 AM [new-server-%d292893] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/snapshot-0000000068675752-251428B3.tmp 04:23:46,624 AM [new-server-%d292893] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/snapshot-0000000068675752-251428B3.v1 04:23:46,624 AM [new-server-%d292893] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/snapshot-0000000068675752-251428B3.v1 04:23:46,624 AM [new-server-%d292893] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/TermInfo.properties 04:23:46,624 AM [new-server-%d292893] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.622078131Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/snapshot-0000000068675752-251428B3.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:46,624 AM [new-server-%d292893] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 04:23:46,624 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 04:23:46,625 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-04T04:23:46.622078131Z 04:23:46,625 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 04:23:46,625 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: support() called 04:23:46,625 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: applySnapshot called 04:23:46,625 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 04:23:46,625 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 04:23:46,625 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 04:23:46,625 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 2, nextIndex set to 3 04:23:46,625 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 04:23:46,625 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 04:23:46,625 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 04:23:46,625 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=3 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:46,625 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 04:23:46,625 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=6206cac2-05c3-4165-9b59-7e45e2c1d4c2}, logIndex: 3, isSendImmediate: true 04:23:46,625 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:46,625 AM [leader-%d391785] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/snapshot-0000000068675752-254EA7C5.tmp 04:23:46,626 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 04:23:46,626 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower follower 04:23:46,626 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 04:23:46,626 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 04:23:46,626 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower new-server 04:23:46,626 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 04:23:46,626 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 04:23:46,626 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 04:23:46,626 AM [test-pekko.actor.default-dispatcher-5] [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}]} 04:23:46,626 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 04:23:46,626 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:23:46,626 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 04:23:46,626 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 04:23:46,626 AM [test-pekko.actor.default-dispatcher-5] [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]]} 04:23:46,626 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:46,626 AM [test-pekko.actor.default-dispatcher-5] [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} 04:23:46,626 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 04:23:46,626 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/snapshot-0000000068675752-2556AFEA.tmp 04:23:46,626 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 04:23:46,626 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=, votingState=VOTING], PeerInfo [id=new-server, address=null, votingState=VOTING]] 04:23:46,626 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Log size is now 2 04:23:46,626 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=3, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5} 04:23:46,626 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 04:23:46,626 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 04:23:46,626 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 04:23:46,628 AM [leader-%d391785] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/snapshot-0000000068675752-254EA7C5.v1 04:23:46,628 AM [leader-%d391785] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/snapshot-0000000068675752-254EA7C5.v1 04:23:46,628 AM [leader-%d391785] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/snapshot-0000000068675752-24C729BA.v1 04:23:46,628 AM [leader-%d391785] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/TermInfo.properties 04:23:46,628 AM [leader-%d391785] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.617032122Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/snapshot-0000000068675752-24C729BA.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:46,628 AM [leader-%d391785] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.625911749Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/snapshot-0000000068675752-254EA7C5.v1, size=97, entryCompress=NONE, stateCompress=NONE} 04:23:46,628 AM [leader-%d391785] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 04:23:46,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 04:23:46,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 04:23:46,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 04:23:46,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 3 04:23:46,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 2 to 3 04:23:46,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 3 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 04:23:46,628 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/snapshot-0000000068675752-2556AFEA.v1 04:23:46,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 2 for term 1 04:23:46,628 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/snapshot-0000000068675752-2556AFEA.v1 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/snapshot-0000000068675752-251428B3.v1 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/TermInfo.properties 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.622078131Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/snapshot-0000000068675752-251428B3.v1, size=64, entryCompress=NONE, stateCompress=NONE} 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.626438122Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/snapshot-0000000068675752-2556AFEA.v1, size=97, entryCompress=NONE, stateCompress=NONE} 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [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} 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=follower, address=null, votingState=VOTING]] 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Log size is now 1 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [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} 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 2) 04:23:46,629 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 3, nextIndex: 4 04:23:46,629 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Commit index set to 3 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 3 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 2 to 3 04:23:46,629 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - new-server: Applying state for log index 3 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} [WARN] [07/04/2025 04:23:46.629] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 04:23:46,787 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Commit index set to 3 04:23:46,787 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 04:23:46,787 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 04:23:46,787 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:23:46,787 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 2 to 3 04:23:46,787 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 2 for term 1 04:23:46,787 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 04:23:46,819 AM [main] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/snapshot-0000000068675752-254EA7C5.v1 04:23:46,819 AM [main] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/TermInfo.properties 04:23:46,819 AM [main] [DEBUG] RaftStorage - leader: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.625911749Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/leader/snapshot-0000000068675752-254EA7C5.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 04:23:46,820 AM [main] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/snapshot-0000000068675752-2556AFEA.v1 04:23:46,820 AM [main] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/TermInfo.properties 04:23:46,820 AM [main] [DEBUG] RaftStorage - new-server: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-04T04:23:46.626438122Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14158103435464769435/new-server/snapshot-0000000068675752-2556AFEA.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 04:23:46,820 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower ending 04:23:46,820 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower192] 04:23:46,832 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector193#1622745310] 04:23:46,832 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server194] 04:23:46,832 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:46,832 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:46,833 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader195] 04:23:46,833 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:46,833 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:46,834 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector196] 04:23:46,837 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader starting [WARN] [07/04/2025 04:23:46.840] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server199]: org.opendaylight.controller.cluster.common.actor.Monitor@2414d1a1 04:23:46,841 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 04:23:46,841 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 04:23:46,841 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 04:23:46,843 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6773969654505822487/new-server/TermInfo.properties does not exist 04:23:46,843 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: no eligible files found 04:23:46,843 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 04:23:46,846 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 04:23:46,846 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 04:23:46,846 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - new-server: Pekko recovery completed and can restore from snapshot 04:23:46,846 AM [test-pekko.actor.default-dispatcher-5] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/04/2025 04:23:46.848] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower201]: org.opendaylight.controller.cluster.common.actor.Monitor@4696c6e8 04:23:46,849 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 04:23:46,850 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 04:23:46,850 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 04:23:46,851 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6773969654505822487/follower/TermInfo.properties does not exist 04:23:46,851 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: no eligible files found 04:23:46,851 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 04:23:46,854 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 04:23:46,854 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 04:23:46,854 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower: Pekko recovery completed and can restore from snapshot 04:23:46,855 AM [test-pekko.actor.default-dispatcher-5] [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 04:23:46,857 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 04:23:46,857 AM [test-pekko.actor.default-dispatcher-5] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 04:23:46,857 AM [test-pekko.actor.default-dispatcher-5] [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} 04:23:46,857 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/04/2025 04:23:46.858] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower201] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 04:23:46,865 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - follower: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server199, votingMember=true], state: Idle 04:23:46,865 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader200 04:23:46,865 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader200)] 04:23:46,916 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader ending 04:23:46,916 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower197] 04:23:46,927 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector198#2013544191] 04:23:46,928 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server199] 04:23:46,928 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:46,928 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:46,928 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader200#-2083865176] 04:23:46,928 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower201] 04:23:46,928 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 04:23:46,928 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 04:23:46,932 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader starting 04:23:46,934 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 04:23:46,935 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: started executor [WARN] [07/04/2025 04:23:46.935] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower204]: org.opendaylight.controller.cluster.common.actor.Monitor@4cde6ec0 04:23:46,935 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: started executor 04:23:46,937 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest649824613310849447/follower/TermInfo.properties does not exist 04:23:46,937 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: no eligible files found 04:23:46,937 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:46,940 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 04:23:46,940 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 04:23:46,940 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower: Pekko recovery completed and can restore from snapshot 04:23:46,940 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 04:23:46,943 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 04:23:46,943 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 04:23:46,943 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:23:46,943 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/04/2025 04:23:46.944] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower204] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 04:23:46,951 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - follower: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 04:23:46,951 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader203 04:23:46,951 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader203)] 04:23:47,1 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader ending 04:23:47,1 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower202] 04:23:47,12 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader203] 04:23:47,13 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower204] 04:23:47,13 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 04:23:47,13 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 04:23:47,17 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer starting [WARN] [07/04/2025 04:23:47.018] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader206]: org.opendaylight.controller.cluster.common.actor.Monitor@2202e22e 04:23:47,19 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:47,19 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:47,19 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 04:23:47,19 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 04:23:47,20 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17805848780734483252/leader/TermInfo.properties does not exist 04:23:47,21 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: no eligible files found 04:23:47,21 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:47,24 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:47,24 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:47,24 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:47,24 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 04:23:47,24 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:23:47,30 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true], state: Idle 04:23:47,30 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 04:23:47,30 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Returning ALREADY_EXISTS for operation AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 04:23:47,30 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer ending 04:23:47,30 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower205] 04:23:47,41 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader206] 04:23:47,41 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:47,42 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:47,44 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout starting [WARN] [07/04/2025 04:23:47.046] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@4230a6d4 04:23:47,47 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 04:23:47,47 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: started executor 04:23:47,47 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: started executor [WARN] [07/04/2025 04:23:47.049] [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@4d28647b 04:23:47,49 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 04:23:47,49 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node2: started executor 04:23:47,49 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node2: started executor 04:23:47,50 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7235819626673234012/node1/TermInfo.properties does not exist 04:23:47,50 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: no eligible files found 04:23:47,50 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 04:23:47,50 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 04:23:47,50 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 04:23:47,50 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 04:23:47,53 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 04:23:47,53 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 04:23:47,53 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Pekko recovery completed and can restore from snapshot 04:23:47,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7235819626673234012/node2/TermInfo.properties does not exist 04:23:47,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node2: no eligible files found 04:23:47,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 04:23:47,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 04:23:47,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 04:23:47,54 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 04:23:47,57 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 04:23:47,57 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 04:23:47,57 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - node2: Pekko recovery completed and can restore from snapshot 04:23:47,63 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]], state: Idle 04:23:47,63 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 04:23:47,63 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 04:23:47,63 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 04:23:47,63 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:47,63 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 04:23:47,63 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 04:23:47,65 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 04:23:47,65 AM [test-pekko.actor.default-dispatcher-12] [INFO] Candidate - node1 (Candidate): Starting new election term 2 04:23:47,65 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 04:23:47,65 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:23:47,177 AM [test-pekko.actor.default-dispatcher-12] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 04:23:47,177 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 04:23:47,178 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 04:23:47,178 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 04:23:47,178 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout ending 04:23:47,178 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower207] 04:23:47,189 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector208#-95016840] 04:23:47,189 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 04:23:47,190 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 04:23:47,190 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 04:23:47,190 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector209#-1097710301] 04:23:47,190 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 04:23:47,190 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 04:23:47,190 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 04:23:47,194 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader starting [WARN] [07/04/2025 04:23:47.196] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@6f1263a 04:23:47,197 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 04:23:47,197 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: started executor 04:23:47,197 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node1: started executor [WARN] [07/04/2025 04:23:47.199] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@71c295d2 04:23:47,200 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8440756479731649970/node1/TermInfo.properties does not exist 04:23:47,200 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: no eligible files found 04:23:47,200 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 04:23:47,200 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 04:23:47,200 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 163 04:23:47,200 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: started executor 04:23:47,200 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]] 04:23:47,200 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: started executor 04:23:47,200 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node1: Received apply journal entries for recovery, applying to state: 0 to 0 04:23:47,200 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 04:23:47,200 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node1: Recovery completed in 43.33 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 04:23:47,202 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8440756479731649970/node2/TermInfo.properties does not exist 04:23:47,202 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - node2: no eligible files found 04:23:47,202 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 04:23:47,202 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 163 04:23:47,202 AM [test-pekko.actor.default-dispatcher-5] [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]] 04:23:47,202 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 0 04:23:47,202 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 04:23:47,203 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - node2: Recovery completed in 98.54 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 04:23:47,203 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 04:23:47,203 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode1} 04:23:47,203 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Pekko recovery completed and can restore from snapshot 04:23:47,205 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 04:23:47,205 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode2} 04:23:47,205 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - node2: Pekko recovery completed and can restore from snapshot 04:23:47,216 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 04:23:47,216 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 04:23:47,216 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 04:23:47,217 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING], PeerInfo [id=downNode2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode1, address=null, votingState=NON_VOTING]] 04:23:47,217 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:23:47,217 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 04:23:47,217 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 04:23:47,219 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 04:23:47,219 AM [test-pekko.actor.default-dispatcher-17] [INFO] Candidate - node1 (Candidate): Starting new election term 2 04:23:47,219 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:23:47,738 AM [test-pekko.actor.default-dispatcher-5] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 04:23:47,738 AM [test-pekko.actor.default-dispatcher-5] [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]] 04:23:47,738 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 04:23:47,738 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 04:23:47,739 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader downNode1, need to catch up to 0 [WARN] [07/04/2025 04:23:47.740] [test-pekko.actor.default-dispatcher-17] [pekko://test/deadLetters] received dead letter from TestActor[pekko://test/user/node1]: AppendEntriesReply{term=2, success=true, followerId=node1, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} [WARN] [07/04/2025 04:23:47.740] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 04:23:48,298 AM [main] [INFO] PeerInfos - node1: Peer address for peer node2 set to pekko://test/user/node2 04:23:48,298 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 04:23:48,299 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 04:23:48,299 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 04:23:48,299 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING], PeerInfo [id=downNode2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode1, address=null, votingState=NON_VOTING]] 04:23:48,299 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 04:23:48,299 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 04:23:48,304 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node1 04:23:48,304 AM [test-pekko.actor.default-dispatcher-17] [INFO] Candidate - node1 (Candidate): Starting new election term 3 04:23:48,304 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 04:23:48,304 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 04:23:48,304 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:23:48,304 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 04:23:48,304 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 04:23:48,304 AM [test-pekko.actor.default-dispatcher-12] [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 04:23:48,306 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=null 04:23:48,306 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 04:23:48,309 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node1 04:23:48,309 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 04:23:48,309 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 04:23:48,309 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 04:23:48,310 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node1 (Leader): Election: Leader has following peers: [node2, downNode2, downNode1] 04:23:48,310 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 04:23:48,310 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 04:23:48,310 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node2: Last sync leader does not match current leader node1, need to catch up to -1 04:23:48,310 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node1 elected 04:23:48,310 AM [test-pekko.actor.default-dispatcher-12] [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]] 04:23:48,310 AM [test-pekko.actor.default-dispatcher-12] [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]]} 04:23:48,310 AM [test-pekko.actor.default-dispatcher-12] [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} [WARN] [07/04/2025 04:23:48.310] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=false] 04:23:48,310 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node1 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=90820fd6-84a7-4c8f-9d77-0a8bbee196d3}, logIndex: 1, isSendImmediate: true 04:23:48,311 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:48,311 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 04:23:48,311 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node2: Lagging -1 entries behind leader node1 and reached 0 (of expected -1) [WARN] [07/04/2025 04:23:48.311] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=true] 04:23:48,311 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 0, nextIndex: 1 04:23:48,311 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:48,311 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 04:23:48,311 AM [test-pekko.actor.default-dispatcher-12] [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}]} 04:23:48,312 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 04:23:48,312 AM [test-pekko.actor.default-dispatcher-12] [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}]} 04:23:48,312 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node2 (Follower): Number of entries to be appended = 1 04:23:48,312 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 04:23:48,312 AM [test-pekko.actor.default-dispatcher-12] [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]]} 04:23:48,312 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=true} 04:23:48,312 AM [test-pekko.actor.default-dispatcher-5] [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} 04:23:48,312 AM [test-pekko.actor.default-dispatcher-12] [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]] 04:23:48,312 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node2 (Follower): Log size is now 2 04:23:48,312 AM [test-pekko.actor.default-dispatcher-12] [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} 04:23:48,312 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 0 (of expected -1) 04:23:48,312 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 1, nextIndex: 2 04:23:48,312 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - node1 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 04:23:48,312 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - node1 (Leader): Setting last applied to 1 04:23:48,312 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 04:23:48,312 AM [test-pekko.actor.default-dispatcher-5] [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]]} 04:23:48,313 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 04:23:48,313 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:23:48,313 AM [test-pekko.actor.default-dispatcher-5] [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 04:23:48,313 AM [test-pekko.actor.default-dispatcher-6] [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} 04:23:48,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node2 (Follower): Commit index set to 1 04:23:48,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 04:23:48,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 04:23:48,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node2 (Follower): Setting last applied to 1 04:23:48,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 04:23:48,313 AM [test-pekko.actor.default-dispatcher-6] [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]]} 04:23:48,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 04:23:48,428 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 04:23:48,514 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader ending 04:23:48,514 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower210] 04:23:48,525 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector211#41904787] 04:23:48,526 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 04:23:48,526 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 04:23:48,526 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 04:23:48,526 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector212#-1995885366] 04:23:48,526 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 04:23:48,527 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 04:23:48,527 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 04:23:48,529 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout starting [WARN] [07/04/2025 04:23:48.532] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server215]: org.opendaylight.controller.cluster.common.actor.Monitor@1c29c733 04:23:48,532 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 04:23:48,532 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 04:23:48,532 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 04:23:48,533 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2130463630691870042/new-server/TermInfo.properties does not exist 04:23:48,533 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: no eligible files found 04:23:48,534 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 04:23:48,536 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 04:23:48,536 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 04:23:48,536 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - new-server: Pekko recovery completed and can restore from snapshot 04:23:48,537 AM [test-pekko.actor.default-dispatcher-5] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/04/2025 04:23:48.537] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader216]: org.opendaylight.controller.cluster.common.actor.Monitor@6e3f8e2f 04:23:48,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:48,538 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 04:23:48,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 04:23:48,538 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 04:23:48,540 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest2130463630691870042/leader/TermInfo.properties does not exist 04:23:48,540 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 04:23:48,540 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:23:48,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 04:23:48,542 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 04:23:48,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed and can restore from snapshot 04:23:48,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 04:23:48,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 04:23:48,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 04:23:48,543 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 04:23:48,543 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 04:23:48,543 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 04:23:48,543 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 04:23:48,543 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 04:23:48,543 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snapshotIndex: -1 and term: -1 04:23:48,550 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true], state: Idle 04:23:48,550 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 04:23:48,550 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: captureToInstall should not be called in state PersistCapture[lastSequenceNumber=-1, request=CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true]] 04:23:48,550 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 04:23:48,668 AM [test-pekko.actor.default-dispatcher-15] [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 04:23:48,671 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 04:23:48,671 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 04:23:48,671 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 04:23:48,671 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/04/2025 04:23:48.671] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server215] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 04:23:48,767 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 04:23:48,767 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 04:23:48,768 AM [test-pekko.actor.default-dispatcher-15] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 04:23:48,768 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout ending 04:23:48,768 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower213] 04:23:48,769 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector214#1388208215] 04:23:48,770 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server215] 04:23:48,770 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:48,770 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 04:23:48,770 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader216] 04:23:48,770 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 04:23:48,770 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks [INFO] [07/04/2025 04:23:48.772] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:23:48,772 AM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/04/2025 04:23:48.773] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.216:17355) [INFO] [07/04/2025 04:23:48.774] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - Exiting completed [INFO] [07/04/2025 04:23:48.774] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - Shutting down... [INFO] [07/04/2025 04:23:48.775] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - Successfully shut down 04:23:48,775 AM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - Exiting completed 04:23:48,775 AM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - Shutting down... 04:23:48,776 AM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - Successfully shut down [INFO] [07/04/2025 04:23:48.776] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.216:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [07/04/2025 04:23:48.776] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.216:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:23:48,777 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 04:23:48,777 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/04/2025 04:23:48.778] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.216:17355/system/remoting-terminator] Remoting shut down. 04:23:48,778 AM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.