[DEBUG] [07/01/2025 08:16:40.313] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 08:16:40,313 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/01/2025 08:16:40.314] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/01/2025 08:16:40.314] [main] [EventStream(pekko://test)] Default Loggers started 08:16:40,329 AM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.123:17355] with UID [-2336974012026719982] [INFO] [07/01/2025 08:16:40.327] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.123:17355] with UID [-2336974012026719982] 08:16:40,329 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/01/2025 08:16:40.328] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/01/2025 08:16:40.331] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/01/2025 08:16:40.331] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - Started up successfully [INFO] [07/01/2025 08:16:40.332] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/01/2025 08:16:40.332] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:16:40,332 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 08:16:40,335 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - Started up successfully 08:16:40,335 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 08:16:40,335 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:16:40,349 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress starting [WARN] [07/01/2025 08:16:40.351] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server109]: org.opendaylight.controller.cluster.common.actor.Monitor@3cd0f5af [INFO] [pekkoDeadLetter][07/01/2025 08:16:40.351] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/new-server109] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,351 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/new-server109] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,353 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:40,353 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 08:16:40,353 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 08:16:40,355 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/TermInfo.properties does not exist 08:16:40,355 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:40,355 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:40,359 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:40,359 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:40,359 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1e563065 08:16:40,359 AM [test-pekko.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:16:40,362 AM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader110] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [07/01/2025 08:16:40.361] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader110]: org.opendaylight.controller.cluster.common.actor.Monitor@b1dc036 [INFO] [pekkoDeadLetter][07/01/2025 08:16:40.361] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader110] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,362 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:40,362 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:40,362 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 08:16:40,363 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 08:16:40,367 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/TermInfo.properties does not exist 08:16:40,368 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 08:16:40,368 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:40,370 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:40,370 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:40,370 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@fc7465d 08:16:40,371 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:40,377 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true], state: Idle 08:16:40,387 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 08:16:40,388 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:40,388 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 08:16:40,388 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:40,388 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 08:16:40,388 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:40,389 AM [leader-%d305868] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:40,392 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:40,392 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:40,392 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 08:16:40,392 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:40,392 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:40,393 AM [leader-%d305869] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-176A5387.tmp 08:16:40,393 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:40,393 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:40,393 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:40,393 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server109), Chunk: 1/1 08:16:40,395 AM [leader-%d305869] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-176A5387.v1 08:16:40,395 AM [leader-%d305869] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-176A5387.v1 08:16:40,395 AM [leader-%d305869] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/TermInfo.properties 08:16:40,396 AM [leader-%d305869] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.392844167Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-176A5387.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:40,396 AM [leader-%d305869] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:40,396 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:40,396 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:40.392844167Z 08:16:40,396 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:40,396 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:40,438 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false], state: InstallingSnapshot 08:16:40,438 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 08:16:40,438 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 08:16:40,441 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:40,441 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]} 08:16:40,442 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:16:40,442 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:16:40,442 AM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:16:40,442 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:16:40,442 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:16:40.442] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 08:16:40.442] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/new-server109] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,442 AM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,443 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:16:40,443 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:16:40,443 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called 08:16:40,443 AM [new-server-%d599897] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1A734522.tmp 08:16:40,445 AM [new-server-%d599897] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1A734522.v1 08:16:40,446 AM [new-server-%d599897] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1A734522.v1 08:16:40,446 AM [new-server-%d599897] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/TermInfo.properties 08:16:40,446 AM [new-server-%d599897] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.443761954Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1A734522.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:40,446 AM [new-server-%d599897] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:16:40,446 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:16:40,446 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:16:40.443761954Z 08:16:40,446 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:16:40,447 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called 08:16:40,447 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: applySnapshot called 08:16:40,448 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:40,448 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:16:40,448 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:40,448 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 08:16:40,448 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:16:40,448 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:16:40,449 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:40,449 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:40,449 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:40,450 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=692c6659-05fb-4804-b7c7-41ab9d94fc39}, logIndex: 0, isSendImmediate: true 08:16:40,450 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:40,450 AM [leader-%d305870] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-1AD1998F.tmp 08:16:40,450 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:40,450 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:40,450 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:40,450 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:40,450 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:40,450 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:40,450 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:40,450 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:40,451 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1AE1BDAC.tmp 08:16:40,452 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 08:16:40,452 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1AE1BDAC.v1 08:16:40,453 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1A734522.v1 08:16:40,453 AM [leader-%d305870] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-1AD1998F.v1 08:16:40,453 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1AE1BDAC.v1 08:16:40,453 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/TermInfo.properties 08:16:40,453 AM [leader-%d305870] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-176A5387.v1 08:16:40,453 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.443761954Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1A734522.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:40,453 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.451001772Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1AE1BDAC.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:40,453 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:40,453 AM [leader-%d305870] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-1AD1998F.v1 08:16:40,453 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:16:40,453 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:16:40,453 AM [leader-%d305870] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/TermInfo.properties 08:16:40,454 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:40,454 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:40,454 AM [leader-%d305870] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.392844167Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-176A5387.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:40,454 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 [WARN] [07/01/2025 08:16:40.454] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:16:40,454 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 08:16:40,454 AM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][07/01/2025 08:16:40.454] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server109] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/new-server109] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,454 AM [leader-%d305870] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.449943951Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-1AD1998F.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:40,454 AM [leader-%d305870] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:40,454 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:40,455 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} 08:16:40,455 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:16:40,455 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:40,455 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:40,455 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]]} 08:16:40,455 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 08:16:40,455 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 08:16:40,456 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 08:16:40,456 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]] 08:16:40,456 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]]} 08:16:40,456 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} 08:16:40,456 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=c0a5efa9-4ae8-44c3-84f8-980b0b40660d}, logIndex: 1, isSendImmediate: true 08:16:40,456 AM [leader-%d305871] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-1B32E256.tmp 08:16:40,456 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 08:16:40,456 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 08:16:40,456 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}]} 08:16:40,456 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 08:16:40,456 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:40,456 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:40,456 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] 08:16:40,456 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:40,456 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:40,457 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:40,457 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 08:16:40,457 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1B3E69C9.tmp 08:16:40,457 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 08:16:40,457 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}]} 08:16:40,459 AM [leader-%d305871] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-1B32E256.v1 08:16:40,459 AM [leader-%d305871] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-1AD1998F.v1 08:16:40,460 AM [leader-%d305871] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-1B32E256.v1 08:16:40,460 AM [leader-%d305871] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/TermInfo.properties 08:16:40,460 AM [leader-%d305871] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.449943951Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-1AD1998F.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:40,460 AM [leader-%d305871] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.456319574Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/leader/snapshot-0000000068639968-1B32E256.v1, size=100, entryCompress=NONE, stateCompress=NONE} 08:16:40,460 AM [leader-%d305871] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:40,460 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:40,460 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1B3E69C9.v1 08:16:40,460 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:40,460 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1AE1BDAC.v1 08:16:40,460 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1B3E69C9.v1 08:16:40,460 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/TermInfo.properties 08:16:40,460 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.451001772Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1AE1BDAC.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:40,460 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.457075145Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17324592193307278552/new-server/snapshot-0000000068639968-1B3E69C9.v1, size=100, entryCompress=NONE, stateCompress=NONE} 08:16:40,460 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=new-server2, address=null, votingState=NON_VOTING]] 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Log size is now 2 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Commit index set to 0 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:40,461 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 08:16:40,461 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 08:16:40,461 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 08:16:40,461 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 08:16:40,461 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]]} 08:16:40,461 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:40,461 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Commit index set to 1 08:16:40,461 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 08:16:40,461 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - new-server: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:40,463 AM [test-pekko.actor.default-dispatcher-12] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:626) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [07/01/2025 08:16:40.462] [test-pekko.actor.internal-dispatcher-9] [pekko://test/user/follower107] Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:626) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 08:16:40,509 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress ending 08:16:40,510 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower107] 08:16:40,521 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector108#-1009822300] 08:16:40,521 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server109] 08:16:40,522 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:40,522 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:40,522 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader110] 08:16:40,522 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:40,522 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:40,523 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector111] 08:16:40,526 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer starting [WARN] [07/01/2025 08:16:40.527] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader113]: org.opendaylight.controller.cluster.common.actor.Monitor@bde00a9 [INFO] [pekkoDeadLetter][07/01/2025 08:16:40.527] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader113] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,528 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader113] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,528 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:40,528 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:40,529 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:40,529 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:40,530 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15207607320506381911/leader/TermInfo.properties does not exist 08:16:40,531 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 08:16:40,531 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 08:16:40,533 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:40,533 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:40,533 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@48bf903 08:16:40,533 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 08:16:40,533 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:40,540 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='new-server'}, state: Idle 08:16:40,542 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer ending 08:16:40,542 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower112] 08:16:40,552 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader113] 08:16:40,553 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:40,553 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:40,556 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader starting [WARN] [07/01/2025 08:16:40.557] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader115]: org.opendaylight.controller.cluster.common.actor.Monitor@5c77412a [INFO] [pekkoDeadLetter][07/01/2025 08:16:40.557] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader115] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,558 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader115] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,559 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:40,559 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:40,559 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: started executor 08:16:40,561 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15033612281390217330/leader/TermInfo.properties does not exist 08:16:40,561 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 08:16:40,561 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 08:16:40,565 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 08:16:40,565 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 08:16:40,565 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4f7365a9 08:16:40,576 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 08:16:40,576 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 08:16:40,576 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader ending 08:16:40,577 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower114] 08:16:40,587 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader115] 08:16:40,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:40,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:40,590 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader starting 08:16:40,591 AM [test-pekko.actor.default-dispatcher-6] [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'. [WARN] [07/01/2025 08:16:40.591] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader118]: org.opendaylight.controller.cluster.common.actor.Monitor@2e144e32 [INFO] [pekkoDeadLetter][07/01/2025 08:16:40.591] [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'. 08:16:40,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:40,592 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:40,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:40,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:40,594 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14294702291542925318/leader/TermInfo.properties does not exist 08:16:40,594 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:16:40,594 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:40,597 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:40,597 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:40,597 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@254685ee 08:16:40,597 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] [WARN] [07/01/2025 08:16:40.598] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower117]: org.opendaylight.controller.cluster.common.actor.Monitor@61962dd [INFO] [pekkoDeadLetter][07/01/2025 08:16:40.598] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower117] to Actor[pekko://test/user/termination-monitor] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,597 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:40,598 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower117] to Actor[pekko://test/user/termination-monitor] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,599 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:16:40,599 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 08:16:40,599 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 08:16:40,602 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14294702291542925318/follower/TermInfo.properties does not exist 08:16:40,602 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: no eligible files found 08:16:40,602 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:40,604 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:16:40,604 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:16:40,604 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2ff54f2b 08:16:40,604 AM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 08:16:40,606 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:16:40,606 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:16:40,606 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:16:40,606 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/01/2025 08:16:40.607] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 08:16:40.607] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/follower117] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower117] was unhandled. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,607 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. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,610 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 08:16:40,613 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true]] 08:16:40,613 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 08:16:40,613 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true} 08:16:40,613 AM [leader-%d910615] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14294702291542925318/leader/snapshot-0000000068639968-248E0A3C.tmp 08:16:40,613 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=73d7f303-70d9-4c5a-b5bc-89911f8be77b}, logIndex: 0, isSendImmediate: true 08:16:40,613 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:40,614 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:40,614 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:16:40,614 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true}]} 08:16:40,614 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='leader'} 08:16:40,614 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true}]} 08:16:40,614 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:16:40,614 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:40,614 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 08:16:40,614 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true} 08:16:40,614 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14294702291542925318/follower/snapshot-0000000068639968-24A4FBAF.tmp 08:16:40,615 AM [leader-%d910615] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14294702291542925318/leader/snapshot-0000000068639968-248E0A3C.v1 08:16:40,615 AM [leader-%d910615] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14294702291542925318/leader/snapshot-0000000068639968-248E0A3C.v1 08:16:40,615 AM [leader-%d910615] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14294702291542925318/leader/TermInfo.properties 08:16:40,615 AM [leader-%d910615] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.613288508Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14294702291542925318/leader/snapshot-0000000068639968-248E0A3C.v1, size=75, entryCompress=NONE, stateCompress=NONE} 08:16:40,615 AM [leader-%d910615] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:40,615 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:40,615 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} 08:16:40,616 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14294702291542925318/follower/snapshot-0000000068639968-24A4FBAF.v1 08:16:40,617 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14294702291542925318/follower/snapshot-0000000068639968-24A4FBAF.v1 08:16:40,617 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14294702291542925318/follower/TermInfo.properties 08:16:40,617 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.614792111Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14294702291542925318/follower/snapshot-0000000068639968-24A4FBAF.v1, size=75, entryCompress=NONE, stateCompress=NONE} 08:16:40,617 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 08:16:40,618 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [] 08:16:40,618 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): Log size is now 1 08:16:40,618 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:40,618 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:40,618 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:16:40,618 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:16:40,618 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:40,618 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:40,618 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 08:16:40,619 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:40,619 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 [WARN] [07/01/2025 08:16:40.619] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] [INFO] [pekkoDeadLetter][07/01/2025 08:16:40.619] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower117] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower117] was unhandled. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:16:40,620 AM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower117] was unhandled. [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'. [WARN] [07/01/2025 08:16:40.620] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/leader118] unhandled message from TestActor[pekko://test/user/leader118]: ServerRemoved [serverId=leader] 08:16:40,620 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:16:40,620 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:40,620 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:40,620 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:16:40,620 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 08:16:40,620 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 08:16:40,665 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader ending 08:16:40,665 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower116] 08:16:40,676 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader118] 08:16:40,677 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:40,677 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:40,677 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector119] 08:16:40,678 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector120#1065346841] 08:16:40,678 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower117] 08:16:40,678 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:40,678 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:40,681 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot starting [WARN] [07/01/2025 08:16:40.683] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server123]: org.opendaylight.controller.cluster.common.actor.Monitor@7d111748 08:16:40,684 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:40,685 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:16:40,685 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 08:16:40,686 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13661061782962686707/new-server/TermInfo.properties does not exist 08:16:40,686 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:40,687 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:40,691 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:40,691 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:40,691 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2b881a5b 08:16:40,692 AM [test-pekko.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:40.692] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader124]: org.opendaylight.controller.cluster.common.actor.Monitor@f0ab168 08:16:40,693 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:40,693 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:40,693 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:16:40,693 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:16:40,694 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13661061782962686707/leader/TermInfo.properties does not exist 08:16:40,694 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 08:16:40,694 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:40,697 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:40,697 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:40,697 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1f5a32ac 08:16:40,697 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:40,705 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true], state: Idle 08:16:40,705 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 08:16:40,705 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:40,705 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 08:16:40,705 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:40,705 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:40,706 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:40,706 AM [leader-%d551966] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:40,706 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:40,706 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:40,706 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:40,707 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:40,707 AM [leader-%d551967] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13661061782962686707/leader/snapshot-0000000068639968-2A27DA0E.tmp 08:16:40,707 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:40,707 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:40,707 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:40,707 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:40,707 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server123), Chunk: 1/1 08:16:40,707 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 08:16:40,709 AM [leader-%d551967] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13661061782962686707/leader/snapshot-0000000068639968-2A27DA0E.v1 08:16:40,710 AM [leader-%d551967] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13661061782962686707/leader/snapshot-0000000068639968-2A27DA0E.v1 08:16:40,710 AM [leader-%d551967] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13661061782962686707/leader/TermInfo.properties 08:16:40,710 AM [leader-%d551967] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.707254798Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13661061782962686707/leader/snapshot-0000000068639968-2A27DA0E.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:40,710 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:40,710 AM [leader-%d551967] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:40,710 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]} 08:16:40,710 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:16:40,710 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:40,710 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:16:40,710 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:40.707254798Z 08:16:40,710 AM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:16:40,710 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:40,710 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:40,711 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:16:40,711 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:16:40.711] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server123] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:40,711 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:16:40,712 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:16:40,712 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called 08:16:40,712 AM [new-server-%d228188] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13661061782962686707/new-server/snapshot-0000000068639968-2A74863C.tmp 08:16:40,714 AM [new-server-%d228188] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13661061782962686707/new-server/snapshot-0000000068639968-2A74863C.v1 08:16:40,714 AM [new-server-%d228188] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13661061782962686707/new-server/snapshot-0000000068639968-2A74863C.v1 08:16:40,714 AM [new-server-%d228188] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13661061782962686707/new-server/TermInfo.properties 08:16:40,715 AM [new-server-%d228188] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:40.712279612Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13661061782962686707/new-server/snapshot-0000000068639968-2A74863C.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:40,715 AM [new-server-%d228188] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:16:40,715 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:16:40,715 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:16:40.712279612Z 08:16:40,715 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:16:40,715 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: support() called 08:16:40,715 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: applySnapshot called 08:16:40,715 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:40,715 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:16:40,715 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:40,715 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 08:16:40,715 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:16:40,756 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:16:40,756 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server new-server: not leader 08:16:42,318 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:16:42,318 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 08:16:42,319 AM [test-pekko.actor.default-dispatcher-12] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 08:16:42,319 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot ending 08:16:42,319 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower121] 08:16:42,330 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector122#-2004876241] 08:16:42,331 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server123] 08:16:42,331 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:42,331 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:42,331 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader124] 08:16:42,331 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:42,331 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:42,332 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector125] 08:16:42,335 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected starting [WARN] [07/01/2025 08:16:42.337] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@198f2e6 08:16:42,338 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 08:16:42,338 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: started executor 08:16:42,338 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 08:16:42.340] [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@a8a9149 08:16:42,341 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8052642658093735087/node1/TermInfo.properties does not exist 08:16:42,341 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: no eligible files found 08:16:42,341 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:16:42,341 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 08:16:42,341 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:16:42,341 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:16:42,341 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: started executor 08:16:42,342 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: started executor 08:16:42,342 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:16:42,344 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest8052642658093735087/node2/TermInfo.properties does not exist 08:16:42,344 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: no eligible files found 08:16:42,344 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:16:42,344 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:16:42,344 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 08:16:42,344 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node2: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:16:42,345 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:16:42,345 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:16:42,345 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@687f2f5d 08:16:42,346 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 08:16:42,347 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:16:42,347 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:16:42,347 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@48d70adb 08:16:42,349 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:42,349 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:16:42,349 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:16:42,350 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:42,350 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:16:42,350 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:16:42,352 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 08:16:42,353 AM [test-pekko.actor.default-dispatcher-12] [INFO] Candidate - node1 (Candidate): Starting new election term 2 08:16:42,353 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 08:16:42,353 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:16:42,395 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 08:16:42,395 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [] 08:16:42,398 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=node2 08:16:42,398 AM [test-pekko.actor.default-dispatcher-12] [INFO] Candidate - node2 (Candidate): Starting new election term 2 08:16:42,398 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:16:42,399 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node2 (Candidate): Received ElectionTimeout 08:16:42,399 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 08:16:42,399 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:42,399 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:16:42,399 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received AppendEntries{term=2, leaderId=node2, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}, my term is 2 08:16:42,399 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node1 (Candidate): handleAppendEntries: AppendEntries{term=2, leaderId=node2, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 08:16:42,399 AM [test-pekko.actor.default-dispatcher-11] [INFO] Candidate - node1 (Candidate): New Leader node2 sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:16:42,399 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:16:42,518 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 08:16:42,518 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node2 elected 08:16:42,518 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 08:16:42,518 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 08:16:42,518 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: Forwarding ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] to new leader 08:16:42,518 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:42,518 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 08:16:42,518 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node1: getLeaderAddress leaderId = node2 peerAddress = pekko://test/user/node2 08:16:42,518 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/node2)] 08:16:42,519 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 08:16:42,519 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState [WARN] [07/01/2025 08:16:42.519] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 08:16:42,519 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=pekko://test/user/node1, votingState=VOTING]] 08:16:42,519 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 08:16:42,519 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node2: Persist data index=1 term=2 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:42,519 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true} 08:16:42,519 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=f4da60a9-ecbc-4f7f-b717-23408e52913c}, logIndex: 1, isSendImmediate: true 08:16:42,520 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:42,520 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 08:16:42,520 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Sending AppendEntries to follower node1: AppendEntries{term=2, leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true}]} 08:16:42,520 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 08:16:42,520 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node1 (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true}]} 08:16:42,520 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 1 08:16:42,520 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:42,520 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:42,520 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true} 08:16:42,520 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 08:16:42,520 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node1 (Follower): Log size is now 2 08:16:42,520 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node1 (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=node1, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:42,520 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 08:16:42,521 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 1, nextIndex: 2 08:16:42,521 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 08:16:42,521 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:42,521 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - node2: persist complete JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 08:16:42,522 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 08:16:42,522 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 08:16:42,522 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 0 08:16:42,522 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 08:16:42,522 AM [test-pekko.actor.default-dispatcher-15] [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} 08:16:42,522 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 08:16:42,522 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 1 08:16:42,522 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 08:16:42,522 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:42,522 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 08:16:42,522 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 2 [WARN] [07/01/2025 08:16:42.522] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 08:16:42,522 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorVotingConfigSupport - node2: VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:42,638 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Commit index set to 1 08:16:42,638 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 08:16:42,638 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 08:16:42,638 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 08:16:42,638 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 08:16:42,638 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]]} 08:16:42,638 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 08:16:42,638 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 08:16:42,638 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]]} 08:16:42,638 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 08:16:42,639 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 2 08:16:42,758 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 08:16:42,824 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected ending 08:16:42,824 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower126] 08:16:42,836 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector127#818878577] 08:16:42,836 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 08:16:42,837 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:42,837 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:42,837 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector128#362105532] 08:16:42,837 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 08:16:42,837 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:42,837 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:42,841 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout starting [WARN] [07/01/2025 08:16:42.842] [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@5e28f36c 08:16:42,844 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:42,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 08:16:42,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 08:16:42,845 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4065842156246112890/new-server/TermInfo.properties does not exist 08:16:42,845 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:42,846 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:42,849 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:42,849 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:42,849 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@70544bcf 08:16:42,849 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:42.850] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader132]: org.opendaylight.controller.cluster.common.actor.Monitor@7f27775a 08:16:42,850 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:42,850 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:42,850 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:42,850 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:42,851 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4065842156246112890/leader/TermInfo.properties does not exist 08:16:42,852 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 08:16:42,852 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:42,855 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:42,855 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:42,855 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7609051f 08:16:42,856 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:42,862 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true], state: Idle 08:16:42,862 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 08:16:42,862 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:42,862 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 08:16:42,862 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:42,862 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:42,863 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:42,863 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=bogus] 08:16:42,863 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server bogus: server Id doesn't match 08:16:42,863 AM [leader-%d910196] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:42,863 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:42,863 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:42,863 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:42,864 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:42,864 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:42,864 AM [leader-%d910197] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4065842156246112890/leader/snapshot-000000006863996A-33806801.tmp 08:16:42,864 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:42,864 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:42,864 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:42,864 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server131), Chunk: 1/1 08:16:42,866 AM [leader-%d910197] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4065842156246112890/leader/snapshot-000000006863996A-33806801.v1 08:16:42,866 AM [leader-%d910197] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4065842156246112890/leader/snapshot-000000006863996A-33806801.v1 08:16:42,867 AM [leader-%d910197] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4065842156246112890/leader/TermInfo.properties 08:16:42,867 AM [leader-%d910197] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:42.864053249Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4065842156246112890/leader/snapshot-000000006863996A-33806801.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:42,867 AM [leader-%d910197] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:42,867 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:42,867 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:42.864053249Z 08:16:42,867 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:42,867 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:42,978 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 08:16:42,981 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:42,982 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 [WARN] [07/01/2025 08:16:42.982] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/new-server131] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:42,982 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 08:16:43,77 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:16:43,77 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 08:16:43,77 AM [test-pekko.actor.default-dispatcher-11] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 08:16:43,77 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout ending 08:16:43,77 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower129] 08:16:43,88 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector130#1335063290] 08:16:43,89 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server131] 08:16:43,89 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:43,89 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:43,89 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader132] 08:16:43,90 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:43,90 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:43,92 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower starting [WARN] [07/01/2025 08:16:43.094] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server135]: org.opendaylight.controller.cluster.common.actor.Monitor@635a56a7 08:16:43,95 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:43,95 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 08:16:43,95 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 08:16:43,97 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/TermInfo.properties does not exist 08:16:43,97 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:43,97 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:43,100 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:43,100 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:43,100 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6dfe5a75 08:16:43,101 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:16:43,101 AM [test-pekko.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:43.101] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader136]: org.opendaylight.controller.cluster.common.actor.Monitor@666ddedc 08:16:43,102 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:43,102 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:43,103 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:43,103 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:43,104 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/TermInfo.properties does not exist 08:16:43,104 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 08:16:43,104 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:43,107 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:43,107 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:43,107 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7c5b48a3 08:16:43,107 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:43,213 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true], state: Idle 08:16:43,214 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 08:16:43,214 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 08:16:43,214 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:43,214 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:43,215 AM [leader-%d405464] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:43,215 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:43,215 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:43,215 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 08:16:43,215 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:43,215 AM [leader-%d405465] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/snapshot-000000006863996B-0CDAD4F7.tmp 08:16:43,216 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:43,216 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:43,216 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:43,216 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:43,216 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:43,216 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server135), Chunk: 1/1 08:16:43,216 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 08:16:43,219 AM [leader-%d405465] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/snapshot-000000006863996B-0CDAD4F7.v1 08:16:43,219 AM [leader-%d405465] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/snapshot-000000006863996B-0CDAD4F7.v1 08:16:43,219 AM [leader-%d405465] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/TermInfo.properties 08:16:43,219 AM [leader-%d405465] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:43.215667959Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/snapshot-000000006863996B-0CDAD4F7.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:43,220 AM [leader-%d405465] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:43,220 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:43,220 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:43.215667959Z 08:16:43,220 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:43,220 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:43,220 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:43,220 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:16:43,220 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 1 08:16:43,220 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:16:43,220 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:16:43,220 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:16:43,221 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:16:43.221] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:43,221 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:16:43,221 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:16:43,221 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called 08:16:43,222 AM [new-server-%d953208] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/snapshot-000000006863996B-0D3C7E7A.tmp 08:16:43,224 AM [new-server-%d953208] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/snapshot-000000006863996B-0D3C7E7A.v1 08:16:43,224 AM [new-server-%d953208] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/snapshot-000000006863996B-0D3C7E7A.v1 08:16:43,225 AM [new-server-%d953208] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/TermInfo.properties 08:16:43,225 AM [new-server-%d953208] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:43.222068346Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/snapshot-000000006863996B-0D3C7E7A.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:43,225 AM [new-server-%d953208] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:16:43,225 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:16:43,225 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:16:43.222068346Z 08:16:43,225 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:16:43,225 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called 08:16:43,225 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: applySnapshot called 08:16:43,225 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:43,225 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:16:43,225 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:43,225 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 1, nextIndex set to 2 08:16:43,225 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:16:43,225 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 08:16:43,226 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:16:43,226 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:43,226 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Persist data index=2 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:43,226 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:43,227 AM [leader-%d405466] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/snapshot-000000006863996B-0D888D5F.tmp 08:16:43,227 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=f42eda8f-ffe8-423f-871d-65af67cd9fb1}, logIndex: 2, isSendImmediate: true 08:16:43,227 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:43,227 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 08:16:43,227 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 2 is present for follower new-server 08:16:43,227 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:43,228 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 08:16:43,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:43,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:43,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 08:16:43,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:43,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:43,228 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/snapshot-000000006863996B-0D9B0123.tmp 08:16:43,230 AM [leader-%d405466] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/snapshot-000000006863996B-0D888D5F.v1 08:16:43,230 AM [leader-%d405466] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/snapshot-000000006863996B-0CDAD4F7.v1 08:16:43,230 AM [leader-%d405466] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/snapshot-000000006863996B-0D888D5F.v1 08:16:43,230 AM [leader-%d405466] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/TermInfo.properties 08:16:43,230 AM [leader-%d405466] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:43.215667959Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/snapshot-000000006863996B-0CDAD4F7.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:43,231 AM [leader-%d405466] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:43.227052895Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/leader/snapshot-000000006863996B-0D888D5F.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:43,231 AM [leader-%d405466] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:43,231 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:43,231 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/snapshot-000000006863996B-0D9B0123.v1 08:16:43,231 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:43,231 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/snapshot-000000006863996B-0D3C7E7A.v1 08:16:43,231 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/snapshot-000000006863996B-0D9B0123.v1 08:16:43,231 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/TermInfo.properties 08:16:43,231 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:43.222068346Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/snapshot-000000006863996B-0D3C7E7A.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:43,231 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:43.228262179Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12850451979573869107/new-server/snapshot-000000006863996B-0D9B0123.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:43,231 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=2, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:43,231 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:16:43,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:16:43,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:43,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected 1) 08:16:43,232 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 2, nextIndex: 3 08:16:43,232 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 [WARN] [07/01/2025 08:16:43.232] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:16:43,232 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 2 08:16:43,232 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 1 to 2 08:16:43,232 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:43,232 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 08:16:43,232 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 08:16:43,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Commit index set to 2 08:16:43,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 08:16:43,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:16:43,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 2 08:16:43,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 1 to 2 08:16:43,232 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:43,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - new-server: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:43,264 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower ending 08:16:43,265 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower133] 08:16:43,276 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector134#-1749715836] 08:16:43,276 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server135] 08:16:43,276 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:43,276 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:43,277 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader136] 08:16:43,277 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:43,277 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:43,277 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector137] 08:16:43,280 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout starting [WARN] [07/01/2025 08:16:43.283] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@3e3551e9 08:16:43,283 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 08:16:43,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: started executor 08:16:43,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: started executor 08:16:43,285 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5930530840395163680/node1/TermInfo.properties does not exist 08:16:43,285 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node1: no eligible files found 08:16:43,285 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:16:43,286 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:16:43,286 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING]] 08:16:43,286 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 08:16:43,286 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:16:43,286 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: started executor 08:16:43,286 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: started executor [WARN] [07/01/2025 08:16:43.286] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@30965b3 08:16:43,288 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5930530840395163680/node2/TermInfo.properties does not exist 08:16:43,288 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: no eligible files found 08:16:43,289 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:16:43,289 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:16:43,289 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - node2: Updated server config: isVoting: false, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 08:16:43,289 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 1, size: 1 08:16:43,289 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 1 08:16:43,289 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 1 08:16:43,289 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:16:43,289 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:16:43,289 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@d2adfa5 08:16:43,289 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - node2: Recovery completed in 44.24 μs - Switching actor to Follower - last log index = 1, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 2 08:16:43,292 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:16:43,293 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:16:43,293 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@38634d1a 08:16:43,297 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 08:16:43,297 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:43,297 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:16:43,297 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:16:43,297 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:43,297 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:16:43,297 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:16:43,299 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 08:16:43,299 AM [test-pekko.actor.default-dispatcher-15] [INFO] Candidate - node1 (Candidate): Starting new election term 2 08:16:43,300 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 08:16:43,300 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:16:43,300 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:16:43,300 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 08:16:43,300 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 08:16:43,300 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - node2 (Follower): Term 2 in "RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1}" message is greater than follower's term 1 - updating term 08:16:43,302 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=null 08:16:43,302 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 1, lastTerm: 1 08:16:43,302 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 08:16:43,302 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=false}, my term is 2 08:16:43,302 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=false}, current voteCount: 1 08:16:43,618 AM [test-pekko.actor.default-dispatcher-15] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 08:16:43,618 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=NON_VOTING]] 08:16:43,618 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 08:16:43,618 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node1: Found server ActorSelection[Anchor(pekko://test/), Path(/user/node2)] to forward to 08:16:43,619 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]], state: Idle 08:16:43,619 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:43,619 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: Sending local ElectionTimeout to start leader election 08:16:43,619 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=VOTING]] 08:16:43,619 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 08:16:43,619 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [node1] 08:16:43,622 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node2 08:16:43,622 AM [test-pekko.actor.default-dispatcher-15] [INFO] Candidate - node2 (Candidate): Starting new election term 3 08:16:43,622 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node2 (Candidate): Sending RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} to peer node1 08:16:43,623 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 08:16:43,623 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:16:43,623 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): Cluster state: [] 08:16:43,623 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} with higher term appears reachable, updating term. 08:16:43,623 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - node1 (Follower): Term 3 in "RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1}" message is greater than follower's term 2 - updating term 08:16:43,625 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=null 08:16:43,625 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): In requestVote: RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 08:16:43,627 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node2 08:16:43,627 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 08:16:43,627 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node2 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 08:16:43,627 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Candidate - node2 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 08:16:43,627 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 08:16:43,627 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:43,627 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:16:43,627 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 08:16:43,627 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: New leader node2 elected [WARN] [07/01/2025 08:16:43.627] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 08:16:43,627 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 08:16:43,628 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node2: Persist data index=2 term=3 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:43,628 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true} 08:16:43,628 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=0da13d5c-9cd7-42fd-ab33-1d72d9a635ce}, logIndex: 2, isSendImmediate: true 08:16:43,628 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 08:16:43,628 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) [WARN] [07/01/2025 08:16:43.628] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 08:16:43,628 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]] 08:16:43,629 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 08:16:43,629 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 3 08:16:43,629 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 08:16:43,629 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 08:16:43,629 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Sending AppendEntries to follower node1: AppendEntries{term=3, leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=2, pending=false}, JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true}]} 08:16:43,629 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 08:16:43,629 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): handleAppendEntries: AppendEntries{term=3, leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=2, pending=false}, JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true}]} 08:16:43,629 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 2 08:16:43,629 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:43,629 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - node2: persist complete JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 08:16:43,629 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): Append entry to log 2 08:16:43,629 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=1, term=1, command=2, pending=false} 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): Log size is now 3 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): Commit index set to 1 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): handleAppendEntries returning : AppendEntriesReply{term=3, success=true, followerId=node1, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 08:16:43,630 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 2, nextIndex: 3 08:16:43,630 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 08:16:43,630 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 2 08:16:43,630 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 1 to 2 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=false]]} 08:16:43,630 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node2: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 08:16:43,630 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=2 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node1: Applying state for log index 1 data 2 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - node1: applyState called: 2 08:16:43,630 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 1 for term 3 08:16:43,630 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 08:16:43,630 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorVotingConfigSupport - node2: VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:43,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 3 08:16:43,631 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=1, command=2, pending=false} 08:16:43,631 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 08:16:43,631 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): Commit index set to 2 08:16:43,632 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 08:16:43,632 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:16:43,632 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 2 08:16:43,632 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 1 to 2 08:16:43,632 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node1: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 08:16:43,632 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=2 08:16:43,632 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 1 for term 3 08:16:43,737 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 08:16:43,832 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout ending 08:16:43,832 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower138] 08:16:43,843 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector139#1324474013] 08:16:43,844 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 08:16:43,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:43,844 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:43,844 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector140#-114374531] 08:16:43,845 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 08:16:43,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:43,845 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:43,848 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached starting [WARN] [07/01/2025 08:16:43.850] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server143]: org.opendaylight.controller.cluster.common.actor.Monitor@687c2654 08:16:43,851 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:43,851 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 08:16:43,851 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 08:16:43,852 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/new-server/TermInfo.properties does not exist 08:16:43,853 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:43,853 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 08:16:43,855 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:43,856 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:43,856 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@62f01d3b 08:16:43,856 AM [test-pekko.actor.default-dispatcher-15] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:43.857] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader144]: org.opendaylight.controller.cluster.common.actor.Monitor@714b0b85 08:16:43,858 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:43,858 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:43,858 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 08:16:43,858 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 08:16:43,860 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/TermInfo.properties does not exist 08:16:43,860 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 08:16:43,860 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:43,863 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:43,863 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:43,863 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4780721f 08:16:43,863 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:43,870 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true], state: Idle 08:16:43,870 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 08:16:43,870 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:43,870 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 08:16:43,870 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:43,870 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:43,871 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:43,871 AM [leader-%d961373] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:43,871 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:43,871 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:43,871 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:43,872 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:43,872 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:43,872 AM [leader-%d961374] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/snapshot-000000006863996B-33F8A663.tmp 08:16:43,872 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:43,872 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:43,872 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:43,872 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server143), Chunk: 1/1 08:16:43,872 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 08:16:43,875 AM [leader-%d961374] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/snapshot-000000006863996B-33F8A663.v1 08:16:43,876 AM [leader-%d961374] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/snapshot-000000006863996B-33F8A663.v1 08:16:43,876 AM [leader-%d961374] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/TermInfo.properties 08:16:43,876 AM [leader-%d961374] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:43.871933539Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/snapshot-000000006863996B-33F8A663.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:43,876 AM [leader-%d961374] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:43,876 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:43,876 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:43.871933539Z 08:16:43,876 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:43,876 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:43,876 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]} 08:16:43,876 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:43,876 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:16:43,876 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:16:43,876 AM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:16:43,876 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:16:43,876 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:16:43.876] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server143] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:43,877 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:16:43,877 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:16:43,877 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called 08:16:43,877 AM [new-server-%d434990] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/new-server/snapshot-000000006863996B-344FE3DC.tmp 08:16:43,880 AM [new-server-%d434990] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/new-server/snapshot-000000006863996B-344FE3DC.v1 08:16:43,880 AM [new-server-%d434990] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/new-server/snapshot-000000006863996B-344FE3DC.v1 08:16:43,880 AM [new-server-%d434990] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/new-server/TermInfo.properties 08:16:43,880 AM [new-server-%d434990] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:43.877650908Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/new-server/snapshot-000000006863996B-344FE3DC.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:43,880 AM [new-server-%d434990] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:16:43,880 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:16:43,880 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:16:43.877650908Z 08:16:43,880 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:16:43,880 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: support() called 08:16:43,880 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - new-server: applySnapshot called 08:16:43,881 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:43,881 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:16:43,881 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:43,881 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 08:16:43,881 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:16:43,920 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:16:43,920 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:43,920 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:43,920 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:43,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=ab4fb866-79fc-47ed-9977-6855cf1b65db}, logIndex: 0, isSendImmediate: true 08:16:43,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:43,921 AM [leader-%d961375] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/snapshot-000000006863996B-36E75179.tmp 08:16:43,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:43,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:43,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:43,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 08:16:43,923 AM [leader-%d961375] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/snapshot-000000006863996B-36E75179.v1 08:16:43,923 AM [leader-%d961375] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/snapshot-000000006863996B-33F8A663.v1 08:16:43,924 AM [leader-%d961375] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/TermInfo.properties 08:16:43,924 AM [leader-%d961375] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/snapshot-000000006863996B-36E75179.v1 08:16:43,924 AM [leader-%d961375] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:43.871933539Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/snapshot-000000006863996B-33F8A663.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:43,924 AM [leader-%d961375] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:43.921129337Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5848950424495957455/leader/snapshot-000000006863996B-36E75179.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:43,924 AM [leader-%d961375] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:43,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:43,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:43,970 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 08:16:43,971 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 08:16:43,987 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:44,108 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:44,108 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:44,228 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:44,228 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:44,347 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:44,347 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:44,468 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:44,468 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:44,587 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:44,588 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:44,708 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:44,708 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:44,827 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:44,828 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:45,937 AM [test-pekko.actor.default-dispatcher-12] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured while replicating the new server configuration for new-server 08:16:45,937 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 08:16:45,938 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 08:16:45,938 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 08:16:45,938 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached ending 08:16:45,938 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower141] 08:16:45,950 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector142#-161131983] 08:16:45,950 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server143] 08:16:45,951 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:45,951 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:45,951 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader144] 08:16:45,951 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:45,951 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:45,952 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector145] 08:16:45,952 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-serverCollector146] 08:16:45,956 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers starting [WARN] [07/01/2025 08:16:45.957] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader148]: org.opendaylight.controller.cluster.common.actor.Monitor@58771e64 08:16:45,958 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:45,958 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:45,958 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:45,958 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:45,959 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7814307136952977723/leader/TermInfo.properties does not exist 08:16:45,959 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 08:16:45,960 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:45,965 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:45,965 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:45,965 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5dd879e5 08:16:45,965 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:45,969 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 08:16:45,969 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers ending 08:16:45,969 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower147] 08:16:45,980 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader148] 08:16:45,980 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:45,980 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:45,983 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete starting [WARN] [07/01/2025 08:16:45.985] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server151]: org.opendaylight.controller.cluster.common.actor.Monitor@416285da 08:16:45,985 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:45,985 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 08:16:45,985 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: started executor 08:16:45,989 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13283321624175469208/new-server/TermInfo.properties does not exist 08:16:45,989 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:45,989 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:45,993 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:45,993 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:45,993 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@788a0c30 08:16:45,993 AM [test-pekko.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:45.994] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader152]: org.opendaylight.controller.cluster.common.actor.Monitor@767c021b 08:16:45,995 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:45,996 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:45,996 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 08:16:45,996 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 08:16:45,997 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13283321624175469208/leader/TermInfo.properties does not exist 08:16:45,998 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 08:16:45,998 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:46,0 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:46,0 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:46,0 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@753759ca 08:16:46,0 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:46,1 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 08:16:46,1 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:46,1 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 08:16:46,1 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 08:16:46,1 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:46,1 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - leader: support() called 08:16:46,1 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 08:16:46,2 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:46,2 AM [leader-%d102957] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13283321624175469208/leader/snapshot-000000006863996E-001CCD7E.tmp 08:16:46,4 AM [leader-%d102957] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13283321624175469208/leader/snapshot-000000006863996E-001CCD7E.v1 08:16:46,4 AM [leader-%d102957] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13283321624175469208/leader/snapshot-000000006863996E-001CCD7E.v1 08:16:46,4 AM [leader-%d102957] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13283321624175469208/leader/TermInfo.properties 08:16:46,5 AM [leader-%d102957] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:46.001887614Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13283321624175469208/leader/snapshot-000000006863996E-001CCD7E.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:46,5 AM [leader-%d102957] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:46,5 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:46,7 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true], state: Idle 08:16:46,8 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 08:16:46,8 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: captureToInstall should not be called in state PersistCapture[lastSequenceNumber=-1, request=CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true]] 08:16:46,8 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 08:16:46,111 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:46,112 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:46,112 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:46.001887614Z 08:16:46,112 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:46,112 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 08:16:46,112 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: No longer the leader 08:16:46,112 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:46,112 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:16:46,112 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 08:16:46,112 AM [test-pekko.actor.default-dispatcher-11] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 08:16:46,113 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete ending 08:16:46,113 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower149] 08:16:46,124 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector150#612919534] 08:16:46,124 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server151] 08:16:46,124 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:46,124 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:46,125 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader152] 08:16:46,125 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:46,125 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:46,128 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting starting [WARN] [07/01/2025 08:16:46.130] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server155]: org.opendaylight.controller.cluster.common.actor.Monitor@3d8f75cb 08:16:46,131 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:46,131 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 08:16:46,131 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 08:16:46,133 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/TermInfo.properties does not exist 08:16:46,133 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:46,134 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 08:16:46,136 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:46,136 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:46,136 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5db30c41 08:16:46,137 AM [test-pekko.actor.default-dispatcher-15] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:46.137] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader156]: org.opendaylight.controller.cluster.common.actor.Monitor@5108e465 08:16:46,138 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:46,138 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:46,138 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 08:16:46,138 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 08:16:46,139 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/TermInfo.properties does not exist 08:16:46,139 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 08:16:46,139 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:46,141 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:46,141 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:46,141 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4151e758 08:16:46,141 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:46,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false], state: Idle 08:16:46,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 08:16:46,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 08:16:46,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:16:46,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:46,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:46,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=5369e42c-7a6f-4b38-a8bb-f7d622d89b5a}, logIndex: 0, isSendImmediate: true 08:16:46,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:46,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:46,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:46,241 AM [leader-%d944887] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/snapshot-000000006863996E-0E58BA54.tmp 08:16:46,241 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:46,241 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 08:16:46,241 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 08:16:46,241 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:46,244 AM [leader-%d944887] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/snapshot-000000006863996E-0E58BA54.v1 08:16:46,245 AM [leader-%d944887] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/snapshot-000000006863996E-0E58BA54.v1 08:16:46,245 AM [leader-%d944887] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/TermInfo.properties 08:16:46,245 AM [leader-%d944887] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:46.240695892Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/snapshot-000000006863996E-0E58BA54.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:46,245 AM [leader-%d944887] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:46,245 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:46,245 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:46,246 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:46,246 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:16:46,246 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 08:16:46,246 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:46,246 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:46,246 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} [WARN] [07/01/2025 08:16:46.246] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:46,246 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:46,247 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:46,247 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:46,247 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:46,247 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:46,247 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/snapshot-000000006863996E-0EBB5137.tmp 08:16:46,251 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/snapshot-000000006863996E-0EBB5137.v1 08:16:46,251 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/snapshot-000000006863996E-0EBB5137.v1 08:16:46,251 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/TermInfo.properties 08:16:46,251 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:46.247157047Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/snapshot-000000006863996E-0EBB5137.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:46,251 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:46,251 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:16:46,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:16:46,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): Commit index set to 0 08:16:46,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:46,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:46,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:46,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 08:16:46,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 08:16:46,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:46,252 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 08:16:46,252 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:16:46.252] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:16:46,358 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:46,477 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:46,598 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:46,718 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:46,797 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false], state: Idle 08:16:46,797 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 08:16:46,797 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 08:16:46,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:16:46,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Persist data index=1 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:46,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:46,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=a91712b3-3f27-4fba-84ed-bc446ecc6554}, logIndex: 1, isSendImmediate: true 08:16:46,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 08:16:46,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 08:16:46,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:46,798 AM [leader-%d944888] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/snapshot-000000006863996E-2F96DA45.tmp 08:16:46,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:46,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 08:16:46,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:46,799 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}]} 08:16:46,799 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:46,799 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:46,799 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]]} 08:16:46,799 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} 08:16:46,799 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/snapshot-000000006863996E-2FA7AF0E.tmp 08:16:46,800 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:46,800 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 08:16:46,801 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 08:16:46,801 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:46,801 AM [test-pekko.actor.default-dispatcher-15] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:626) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) [ERROR] [07/01/2025 08:16:46.801] [test-pekko.actor.internal-dispatcher-2] [pekko://test/user/follower153] Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:626) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 08:16:46,801 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 08:16:46,802 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}, JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:46,803 AM [leader-%d944888] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/snapshot-000000006863996E-2F96DA45.v1 08:16:46,803 AM [leader-%d944888] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/snapshot-000000006863996E-0E58BA54.v1 08:16:46,804 AM [leader-%d944888] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/snapshot-000000006863996E-2F96DA45.v1 08:16:46,804 AM [leader-%d944888] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/TermInfo.properties 08:16:46,804 AM [leader-%d944888] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:46.240695892Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/snapshot-000000006863996E-0E58BA54.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:46,804 AM [leader-%d944888] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:46.798415429Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/leader/snapshot-000000006863996E-2F96DA45.v1, size=100, entryCompress=NONE, stateCompress=NONE} 08:16:46,804 AM [leader-%d944888] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:46,804 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/snapshot-000000006863996E-2FA7AF0E.v1 08:16:46,804 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/snapshot-000000006863996E-0EBB5137.v1 08:16:46,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:46,804 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/snapshot-000000006863996E-2FA7AF0E.v1 08:16:46,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:46,804 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/TermInfo.properties 08:16:46,805 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:46.247157047Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/snapshot-000000006863996E-0EBB5137.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:46,805 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:46.799518478Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6332890020428516955/new-server/snapshot-000000006863996E-2FA7AF0E.v1, size=100, entryCompress=NONE, stateCompress=NONE} 08:16:46,805 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} 08:16:46,805 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]] 08:16:46,805 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Log size is now 2 08:16:46,805 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Commit index set to 1 08:16:46,805 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} 08:16:46,805 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:16:46,805 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:16:46,805 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 08:16:46,805 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 08:16:46,805 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]]} 08:16:46,805 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 08:16:46,805 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:46,852 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting ending 08:16:46,852 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower153] 08:16:46,863 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector154#-1077450550] 08:16:46,864 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server155] 08:16:46,864 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:46,864 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:46,864 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader156] 08:16:46,865 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:46,865 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:46,865 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector157] 08:16:46,869 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress starting [WARN] [07/01/2025 08:16:46.871] [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@e65e4a4 08:16:46,872 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:46,872 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 08:16:46,872 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 08:16:46,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/TermInfo.properties does not exist 08:16:46,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:46,874 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:46,877 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:46,877 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:46,877 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@46adcf5a 08:16:46,878 AM [test-pekko.actor.default-dispatcher-5] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:46.878] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader161]: org.opendaylight.controller.cluster.common.actor.Monitor@3ee75b99 08:16:46,879 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:46,879 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:46,879 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:16:46,879 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:16:46,881 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/TermInfo.properties does not exist 08:16:46,881 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 08:16:46,881 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:46,883 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:46,883 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:46,883 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@43e17eae 08:16:46,884 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:46,884 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 08:16:46,884 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:46,884 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=true] 08:16:46,884 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 08:16:46,884 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:46,884 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:46,884 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 08:16:46,884 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:46,885 AM [leader-%d330147] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996E-34BAFDBF.tmp 08:16:46,887 AM [leader-%d330147] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996E-34BAFDBF.v1 08:16:46,887 AM [leader-%d330147] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996E-34BAFDBF.v1 08:16:46,887 AM [leader-%d330147] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/TermInfo.properties 08:16:46,887 AM [leader-%d330147] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:46.884669887Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996E-34BAFDBF.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:46,887 AM [leader-%d330147] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:46,887 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:46,993 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true], state: Idle 08:16:46,993 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 08:16:46,993 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:46,993 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: captureToInstall should not be called in state PersistCapture[lastSequenceNumber=-1, request=CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true]] 08:16:46,993 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 08:16:46,993 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:46,994 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:46.884669887Z 08:16:46,994 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:46,994 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 08:16:46,994 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:46,994 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 08:16:46,994 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:46,994 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:46,995 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:46,995 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:46,995 AM [leader-%d330148] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:46,995 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:46,995 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:46,995 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:46,996 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:46,996 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:46,996 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:46,996 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:46,996 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:46,996 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server160), Chunk: 1/1 08:16:46,996 AM [leader-%d330149] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996E-3B5EABB4.tmp 08:16:46,996 AM [test-pekko.actor.default-dispatcher-15] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 08:16:46,999 AM [leader-%d330149] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996E-3B5EABB4.v1 08:16:46,999 AM [leader-%d330149] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996E-3B5EABB4.v1 08:16:46,999 AM [leader-%d330149] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996E-34BAFDBF.v1 08:16:46,999 AM [leader-%d330149] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/TermInfo.properties 08:16:47,0 AM [leader-%d330149] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:46.884669887Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996E-34BAFDBF.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:47,0 AM [leader-%d330149] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:46.996060084Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996E-3B5EABB4.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:47,0 AM [leader-%d330149] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:47,0 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:47,0 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:46.996060084Z 08:16:47,0 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:47,0 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:47,0 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:16:47,0 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:47,0 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:16:47,0 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:16:47,0 AM [test-pekko.actor.default-dispatcher-15] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:16:47,0 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:16:47,0 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:16:47.000] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:47,1 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:16:47,1 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:16:47,1 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called 08:16:47,1 AM [new-server-%d159431] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/snapshot-000000006863996F-001CA2E7.tmp 08:16:47,3 AM [new-server-%d159431] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/snapshot-000000006863996F-001CA2E7.v1 08:16:47,3 AM [new-server-%d159431] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/snapshot-000000006863996F-001CA2E7.v1 08:16:47,4 AM [new-server-%d159431] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/TermInfo.properties 08:16:47,4 AM [new-server-%d159431] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.001876711Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/snapshot-000000006863996F-001CA2E7.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:47,4 AM [new-server-%d159431] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:16:47,4 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:16:47,4 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:16:47.001876711Z 08:16:47,4 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:16:47,4 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: support() called 08:16:47,4 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - new-server: applySnapshot called 08:16:47,4 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:47,4 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:16:47,4 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:47,4 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 08:16:47,4 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:16:47,5 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:16:47,5 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:47,5 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:47,5 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:47,5 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=e4a4c792-bccd-491d-b69e-585d3f65fb02}, logIndex: 0, isSendImmediate: true 08:16:47,5 AM [leader-%d330150] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996F-00531C00.tmp 08:16:47,5 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:47,5 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,5 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:16:47,5 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:47,5 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 08:16:47,6 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:47,6 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:47,6 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:47,6 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:47,6 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:47,6 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/snapshot-000000006863996F-005E4F8A.tmp 08:16:47,9 AM [leader-%d330150] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996F-00531C00.v1 08:16:47,9 AM [leader-%d330150] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996E-3B5EABB4.v1 08:16:47,9 AM [leader-%d330150] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/TermInfo.properties 08:16:47,9 AM [leader-%d330150] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996F-00531C00.v1 08:16:47,9 AM [leader-%d330150] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:46.996060084Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996E-3B5EABB4.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:47,9 AM [leader-%d330150] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.005446656Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/leader/snapshot-000000006863996F-00531C00.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:47,9 AM [leader-%d330150] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:47,9 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:47,9 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:47,10 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/snapshot-000000006863996F-005E4F8A.v1 08:16:47,10 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/snapshot-000000006863996F-001CA2E7.v1 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/TermInfo.properties 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/snapshot-000000006863996F-005E4F8A.v1 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.001876711Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/snapshot-000000006863996F-001CA2E7.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.006180746Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3492559857777344126/new-server/snapshot-000000006863996F-005E4F8A.v1, size=86, entryCompress=NONE, stateCompress=NONE} 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:47,11 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,12 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 08:16:47,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): Commit index set to 0 08:16:47,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:47,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:47,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 [WARN] [07/01/2025 08:16:47.012] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:16:47,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 08:16:47,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:47,56 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress ending 08:16:47,56 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower158] 08:16:47,68 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector159#1246312699] 08:16:47,68 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server160] 08:16:47,68 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:47,68 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:47,69 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader161] 08:16:47,69 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:47,69 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:47,69 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector162] 08:16:47,73 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode starting [WARN] [07/01/2025 08:16:47.075] [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@54d4e913 08:16:47,76 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:47,76 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:47,76 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:16:47,77 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: started executor 08:16:47,78 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7910943764731218589/leader/TermInfo.properties does not exist 08:16:47,78 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 08:16:47,78 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:47,81 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:47,81 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:47,81 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6ea9c025 08:16:47,81 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:47,87 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 08:16:47,87 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:47,87 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - leader: Returning INVALID_REQUEST for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 08:16:47,87 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode ending 08:16:47,88 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower163] 08:16:47,98 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader164] 08:16:47,98 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:47,99 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:47,101 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting starting [WARN] [07/01/2025 08:16:47.102] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader168]: org.opendaylight.controller.cluster.common.actor.Monitor@15f3b331 08:16:47,103 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:47,103 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:47,103 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:47,103 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: started executor 08:16:47,105 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/leader/TermInfo.properties does not exist [WARN] [07/01/2025 08:16:47.105] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower166]: org.opendaylight.controller.cluster.common.actor.Monitor@18279d8 08:16:47,105 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:16:47,106 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:47,106 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:16:47,106 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 08:16:47,106 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: started executor 08:16:47,107 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/follower/TermInfo.properties does not exist 08:16:47,108 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: no eligible files found [WARN] [07/01/2025 08:16:47.108] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2167]: org.opendaylight.controller.cluster.common.actor.Monitor@3f9ba4d5 08:16:47,108 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:47,108 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 08:16:47,108 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: started executor 08:16:47,108 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: started executor 08:16:47,109 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:47,109 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:47,109 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@77321652 08:16:47,110 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 08:16:47,110 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:47,110 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:47,110 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/follower2/TermInfo.properties does not exist 08:16:47,110 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: no eligible files found 08:16:47,110 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 08:16:47,111 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:16:47,111 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:16:47,111 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6abe2522 08:16:47,111 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 08:16:47,113 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 08:16:47,113 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 08:16:47,113 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@40217d14 08:16:47,113 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 08:16:47,114 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:16:47,114 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:16:47,114 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 [WARN] [07/01/2025 08:16:47.114] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:16:47,114 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:47,115 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 08:16:47,115 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 08:16:47,115 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 08:16:47,115 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:16:47.116] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 08:16:47,119 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 08:16:47,119 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - leader: Updated server config: isVoting: false, peers: [PeerInfo [id=follower2, address=pekko://test/user/follower2167, votingState=VOTING], PeerInfo [id=follower, address=pekko://test/user/follower166, votingState=VOTING]] 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]] 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=db1f89ed-ba85-44c5-a9a6-88075fbae6c1}, logIndex: 0, isSendImmediate: true 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,120 AM [leader-%d453213] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/leader/snapshot-000000006863996F-072B2915.tmp 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 08:16:47,120 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=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 08:16:47,120 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:16:47,120 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:47,120 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 08:16:47,120 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 08:16:47,120 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 08:16:47,120 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/follower2/snapshot-000000006863996F-07351C11.tmp 08:16:47,120 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true}]} 08:16:47,120 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:16:47,121 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:47,121 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 08:16:47,121 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 08:16:47,121 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/follower/snapshot-000000006863996F-0737EBF7.tmp 08:16:47,123 AM [leader-%d453213] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/leader/snapshot-000000006863996F-072B2915.v1 08:16:47,123 AM [leader-%d453213] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/leader/snapshot-000000006863996F-072B2915.v1 08:16:47,123 AM [leader-%d453213] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/leader/TermInfo.properties 08:16:47,123 AM [leader-%d453213] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.120269077Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/leader/snapshot-000000006863996F-072B2915.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:47,123 AM [leader-%d453213] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:47,123 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:47,123 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false} 08:16:47,124 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/follower2/snapshot-000000006863996F-07351C11.v1 08:16:47,124 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/follower2/snapshot-000000006863996F-07351C11.v1 08:16:47,124 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/follower2/TermInfo.properties 08:16:47,124 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.120921105Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/follower2/snapshot-000000006863996F-07351C11.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:47,124 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - follower2: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false} 08:16:47,124 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PeerInfos - follower2: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=pekko://test/user/leader168, votingState=NON_VOTING], PeerInfo [id=follower, address=pekko://test/user/follower166, votingState=VOTING]] 08:16:47,124 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): Log size is now 1 08:16:47,124 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - follower2 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower2, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:47,124 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:47,124 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:16:47,124 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:16:47,124 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:47,124 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:47,124 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} [WARN] [07/01/2025 08:16:47.124] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 08:16:47,125 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,125 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/follower/snapshot-000000006863996F-0737EBF7.v1 08:16:47,125 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} has been successfully replicated to a majority of followers 08:16:47,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 08:16:47,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:47,125 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - Leader changed to non-voting - trying leadership transfer 08:16:47,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:47,125 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/follower/snapshot-000000006863996F-0737EBF7.v1 08:16:47,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 08:16:47,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 08:16:47,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 08:16:47,125 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/follower/TermInfo.properties 08:16:47,125 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Initiating leader transfer 08:16:47,125 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.121105399Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7978399224718464641/follower/snapshot-000000006863996F-0737EBF7.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:47,125 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false} 08:16:47,125 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=pekko://test/user/leader168, votingState=NON_VOTING], PeerInfo [id=follower2, address=pekko://test/user/follower2167, votingState=VOTING]] 08:16:47,125 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - follower (Follower): Log size is now 1 08:16:47,125 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} 08:16:47,125 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) [WARN] [07/01/2025 08:16:47.125] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 08:16:47,126 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 08:16:47,126 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower2: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 08:16:47,127 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorLeadershipTransferCohort - leader: pauseLeader successfully completed - doing transfer 08:16:47,127 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Leader - leader (Leader): Attempting to transfer leadership 08:16:47,127 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,127 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,127 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:16:47,127 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} 08:16:47,127 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:47,127 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=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=false}]} 08:16:47,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:16:47,127 AM [test-pekko.actor.default-dispatcher-6] [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 08:16:47,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 08:16:47,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Log size is now 1 08:16:47,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:16:47,127 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} 08:16:47,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:47,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:47,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:16:47,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 08:16:47,127 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Leader - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower2, matchIndex: 0, lastIndex: 0, isVoting: true 08:16:47,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 08:16:47,127 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Leader - leader (Leader): Follower's log matches - sending ElectionTimeout 08:16:47,127 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,127 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,127 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:16:47,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:47,128 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Leader - leader (Leader): Leader transfer complete 08:16:47,128 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader transfer complete - waiting for new leader 08:16:47,128 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:47,128 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Received TimeoutNow - switching to Candidate 08:16:47,128 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - follower2 (Candidate): Election: Candidate has following voting peers: [follower] 08:16:47,128 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:16:47,128 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,130 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=follower2 08:16:47,130 AM [test-pekko.actor.default-dispatcher-6] [INFO] Candidate - follower2 (Candidate): Starting new election term 2 08:16:47,130 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - follower2 (Candidate): Sending RequestVote{term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1} to peer follower 08:16:47,130 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorBehavior - follower2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:16:47,130 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. 08:16:47,130 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 08:16:47,130 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. 08:16:47,130 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 08:16:47,133 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=2, votedFor=null 08:16:47,133 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 08:16:47,135 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=2, votedFor=follower2 08:16:47,135 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=true} 08:16:47,135 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - follower2 (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=true}, my term is 2 08:16:47,135 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - follower2 (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=true}, current voteCount: 1 08:16:47,135 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - follower2 (Leader): Election: Leader has following peers: [leader, follower] 08:16:47,135 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - follower2 (Leader): Checking sendAppendEntries for follower leader: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,135 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - follower2 (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,135 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorBehavior - follower2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:16:47,135 AM [test-pekko.actor.default-dispatcher-6] [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 08:16:47,136 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader follower2, need to catch up to -1 08:16:47,136 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - follower2 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:16:47,136 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - follower2 (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:16:47.136] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:16:47,136 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) [WARN] [07/01/2025 08:16:47.136] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 08:16:47,137 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=2, votedFor=null 08:16:47,138 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorBehavior - leader (Leader) :- Switching from behavior Leader to Follower, election term: 2 08:16:47,649 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) 08:16:47,649 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - leader: Last sync leader does not match current leader follower2, need to catch up to -1 08:16:47,649 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader changed to follower2 08:16:47,649 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - follower2 (Leader): handleAppendEntriesReply - FollowerLogInformation for leader updated: matchIndex: 0, nextIndex: 1 08:16:47,649 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - follower2 (Leader): Checking sendAppendEntries for follower leader: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,649 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorLeadershipTransferCohort - leader: Successfully transferred leadership to follower2 in 523.5 ms 08:16:47,649 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: leader transfer succeeded after change to non-voting 08:16:47,649 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - leader: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) [WARN] [07/01/2025 08:16:47.649] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=false] [WARN] [07/01/2025 08:16:47.650] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=true] 08:16:47,674 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting ending 08:16:47,674 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower165] 08:16:47,686 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader168] 08:16:47,686 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:47,686 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:47,686 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector169] 08:16:47,687 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector170#1780460267] 08:16:47,687 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower166] 08:16:47,687 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:47,687 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:47,688 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector171#-1887849322] 08:16:47,688 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2167] 08:16:47,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:16:47,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:16:47,692 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState starting [WARN] [07/01/2025 08:16:47.693] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader173]: org.opendaylight.controller.cluster.common.actor.Monitor@74557af8 08:16:47,694 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:47,694 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:47,695 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:47,695 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState ending 08:16:47,695 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower172] 08:16:47,696 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10733981682160342916/leader/TermInfo.properties does not exist 08:16:47,697 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 08:16:47,697 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:47,700 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 08:16:47,700 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 08:16:47,700 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5b4af1ef 08:16:47,706 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader173] 08:16:47,706 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:47,706 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:47,711 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer starting [WARN] [07/01/2025 08:16:47.712] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader177]: org.opendaylight.controller.cluster.common.actor.Monitor@63b5a155 08:16:47,713 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:47,713 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:47,714 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:47,714 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:47,715 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/leader/TermInfo.properties does not exist 08:16:47,715 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 08:16:47,715 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/01/2025 08:16:47.716] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower175]: org.opendaylight.controller.cluster.common.actor.Monitor@1bf7fe1 08:16:47,717 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:16:47,717 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 08:16:47,717 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 08:16:47,718 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:47,718 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/follower/TermInfo.properties does not exist 08:16:47,718 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:47,719 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5109b67a 08:16:47,719 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: no eligible files found 08:16:47,719 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:47,719 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower, downNode] 08:16:47,719 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:47,719 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:47,719 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:16:47.720] [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==[]} [WARN] [07/01/2025 08:16:47.720] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2176]: org.opendaylight.controller.cluster.common.actor.Monitor@120f2cb 08:16:47,721 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 08:16:47,721 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: started executor 08:16:47,721 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: started executor 08:16:47,721 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:16:47,721 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:16:47,721 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2d11e1e7 08:16:47,722 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 08:16:47,722 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/follower2/TermInfo.properties does not exist 08:16:47,722 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - follower2: no eligible files found 08:16:47,722 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 08:16:47,724 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:16:47,725 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:16:47,725 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:47,725 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 [WARN] [07/01/2025 08:16:47.725] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower175] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:16:47,725 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 08:16:47,725 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 08:16:47,725 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6c32ceaf 08:16:47,726 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 08:16:47,726 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 08:16:47,726 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:47,726 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:47,726 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:47,727 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=ddf4b289-932b-4283-950c-ae6f01118617}, logIndex: 0, isSendImmediate: true 08:16:47,727 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:47,727 AM [leader-%d242945] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/leader/snapshot-000000006863996F-2B544CFD.tmp 08:16:47,727 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,727 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,727 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='follower'} [WARN] [07/01/2025 08:16:47.727] [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==[]} 08:16:47,729 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 08:16:47,729 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 08:16:47,729 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 08:16:47,729 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,729 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:47,729 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 [WARN] [07/01/2025 08:16:47.729] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] [WARN] [07/01/2025 08:16:47.729] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 08:16:47,729 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:47,729 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:47,729 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:16:47,729 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:47,729 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:47,729 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:47,729 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/follower2/snapshot-000000006863996F-2B80B31C.tmp 08:16:47,729 AM [leader-%d242945] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/leader/snapshot-000000006863996F-2B544CFD.v1 08:16:47,730 AM [leader-%d242945] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/leader/TermInfo.properties 08:16:47,730 AM [leader-%d242945] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/leader/snapshot-000000006863996F-2B544CFD.v1 08:16:47,730 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:16:47,730 AM [leader-%d242945] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.726945021Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/leader/snapshot-000000006863996F-2B544CFD.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:47,730 AM [leader-%d242945] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:47,730 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:47,730 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:47,731 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/follower2/snapshot-000000006863996F-2B80B31C.v1 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/follower2/TermInfo.properties 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/follower2/snapshot-000000006863996F-2B80B31C.v1 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.729854748Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15543856068903799607/follower2/snapshot-000000006863996F-2B80B31C.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower2: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - follower2: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=pekko://test/user/leader177, votingState=VOTING], PeerInfo [id=downNode, address=, votingState=VOTING]] 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Log size is now 1 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower2, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 08:16:47,732 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} [WARN] [07/01/2025 08:16:47.733] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower175] unhandled message from TestActor[pekko://test/user/leader177]: ServerRemoved [serverId=follower] 08:16:47,778 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer ending 08:16:47,778 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower174] 08:16:47,789 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader177] 08:16:47,789 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:47,789 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:47,790 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector178] 08:16:47,790 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector179#-641270185] 08:16:47,791 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower175] 08:16:47,791 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:47,791 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:47,792 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector180#203934258] 08:16:47,792 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2176] 08:16:47,792 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:16:47,792 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:16:47,794 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader starting [WARN] [07/01/2025 08:16:47.796] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server183]: org.opendaylight.controller.cluster.common.actor.Monitor@12a0e341 08:16:47,797 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:47,798 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 08:16:47,798 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 08:16:47,799 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12651282832184550363/new-server/TermInfo.properties does not exist 08:16:47,799 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:47,799 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:47,802 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:47,802 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:47,802 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@36b54f8e 08:16:47,803 AM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:47.804] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader184]: org.opendaylight.controller.cluster.common.actor.Monitor@e137587 08:16:47,804 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:47,804 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 08:16:47,804 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 08:16:47,805 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest12651282832184550363/leader/TermInfo.properties does not exist 08:16:47,806 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 08:16:47,806 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:47,808 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 08:16:47,808 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 08:16:47,808 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4b12b293 08:16:47,819 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 08:16:47,819 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 08:16:47,819 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader ending 08:16:47,819 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower181] 08:16:47,830 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector182#1918564314] 08:16:47,830 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server183] 08:16:47,830 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:47,830 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:47,831 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader184] 08:16:47,831 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:47,831 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:47,833 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus starting [WARN] [07/01/2025 08:16:47.834] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader188]: org.opendaylight.controller.cluster.common.actor.Monitor@65a23d5f 08:16:47,835 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:47,835 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:47,835 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:47,836 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:47,837 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/TermInfo.properties does not exist 08:16:47,837 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - leader: no eligible files found 08:16:47,837 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:47,840 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:47,840 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:47,840 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@539ec0d8 08:16:47,840 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 08:16:47,840 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:47,840 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:16:47.841] [test-pekko.actor.default-dispatcher-6] [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==[]} [WARN] [07/01/2025 08:16:47.841] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower186] 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==[]} [WARN] [07/01/2025 08:16:47.939] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower186]: org.opendaylight.controller.cluster.common.actor.Monitor@5306697b 08:16:47,940 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:16:47,940 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 08:16:47,940 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 08:16:47,942 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/TermInfo.properties does not exist 08:16:47,942 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: no eligible files found 08:16:47,942 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/01/2025 08:16:47.944] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2187]: org.opendaylight.controller.cluster.common.actor.Monitor@3513e63 08:16:47,945 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 08:16:47,945 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: started executor 08:16:47,945 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: started executor 08:16:47,946 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:16:47,946 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:16:47,946 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6819b09 08:16:47,946 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/TermInfo.properties does not exist 08:16:47,946 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - follower2: no eligible files found 08:16:47,946 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 08:16:47,949 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 08:16:47,949 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 08:16:47,949 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2f23158f 08:16:47,955 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]], state: Idle 08:16:47,956 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:47,956 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - leader: Updated server config: isVoting: true, peers: [PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=NON_VOTING]] 08:16:47,956 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:16:47,956 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:47,956 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:47,956 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=2782d295-938a-4fa0-b764-75d201e2ba2d}, logIndex: 0, isSendImmediate: true 08:16:47,956 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 08:16:47,956 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 08:16:47,956 AM [leader-%d202883] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/snapshot-000000006863996F-39029140.tmp 08:16:47,956 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:47,956 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,956 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,956 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]] 08:16:47,956 AM [test-pekko.actor.default-dispatcher-5] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 08:16:47,957 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:47,957 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 08:16:47,960 AM [leader-%d202883] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/snapshot-000000006863996F-39029140.v1 08:16:47,960 AM [leader-%d202883] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/snapshot-000000006863996F-39029140.v1 08:16:47,960 AM [leader-%d202883] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/TermInfo.properties 08:16:47,960 AM [leader-%d202883] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.956469568Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/snapshot-000000006863996F-39029140.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:47,960 AM [leader-%d202883] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:47,960 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:47,960 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:47,961 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:16:47,961 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:16:47,961 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:16:47,961 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:47,961 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,961 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:16:47,961 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} [WARN] [07/01/2025 08:16:47.961] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [WARN] [07/01/2025 08:16:47.961] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 08:16:47,961 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:47,961 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:16:47,961 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:47,961 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:47,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:47,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/snapshot-000000006863996F-3957B863.tmp 08:16:47,962 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:16:47,962 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 08:16:47,962 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 08:16:47,962 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,962 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:16:47,962 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:47,963 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 08:16:47,963 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:16:47,963 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:16:47,963 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 08:16:47,963 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:16:47,963 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:16:47,963 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=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:47,963 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - follower2: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:47,963 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/snapshot-000000006863996F-397381DB.tmp 08:16:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/snapshot-000000006863996F-3957B863.v1 08:16:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/snapshot-000000006863996F-3957B863.v1 08:16:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/TermInfo.properties 08:16:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.962050147Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/snapshot-000000006863996F-3957B863.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING]] 08:16:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Log size is now 1 08:16:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:16:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:47,964 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:47,965 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:16:47,965 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 08:16:47,965 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 08:16:47,965 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:16:47,965 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,966 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/snapshot-000000006863996F-397381DB.v1 08:16:47,966 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/snapshot-000000006863996F-397381DB.v1 08:16:47,967 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/TermInfo.properties 08:16:47,967 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.963871195Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/snapshot-000000006863996F-397381DB.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:47,967 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - follower2: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:47,967 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=NON_VOTING]] 08:16:47,967 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Log size is now 1 08:16:47,967 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 08:16:47,967 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower2, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:47,967 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:16:47,967 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:47,967 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:16:47,967 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:16:47,967 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 08:16:47,967 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 08:16:47,967 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} [WARN] [07/01/2025 08:16:47.968] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] [WARN] [07/01/2025 08:16:47.968] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 08:16:48,8 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]], state: Idle 08:16:48,8 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:48,8 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - leader: Updated server config: isVoting: true, peers: [PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=VOTING]] 08:16:48,8 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:48,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Persist data index=1 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:48,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:48,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=509c2a9a-d8b4-4ebe-a9f3-293e9d024e35}, logIndex: 1, isSendImmediate: true 08:16:48,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 08:16:48,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 08:16:48,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:48,9 AM [leader-%d202884] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/snapshot-0000000068639970-008DF19C.tmp 08:16:48,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:48,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower2 08:16:48,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:48,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:48,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower 08:16:48,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:48,10 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:48,10 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]] 08:16:48,10 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:16:48,10 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:48,10 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:48,10 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:48,10 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/snapshot-0000000068639970-009DE6FE.tmp 08:16:48,10 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:48,10 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}]} 08:16:48,10 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 08:16:48,10 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:48,10 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]]} 08:16:48,10 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} 08:16:48,11 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/snapshot-0000000068639970-00A7D72A.tmp 08:16:48,13 AM [leader-%d202884] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/snapshot-0000000068639970-008DF19C.v1 08:16:48,13 AM [leader-%d202884] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/snapshot-000000006863996F-39029140.v1 08:16:48,13 AM [leader-%d202884] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/snapshot-0000000068639970-008DF19C.v1 08:16:48,13 AM [leader-%d202884] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/TermInfo.properties 08:16:48,14 AM [leader-%d202884] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.956469568Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/snapshot-000000006863996F-39029140.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:48,14 AM [leader-%d202884] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:48.009302428Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/leader/snapshot-0000000068639970-008DF19C.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:48,14 AM [leader-%d202884] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:48,14 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:48,14 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/snapshot-0000000068639970-009DE6FE.v1 08:16:48,14 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:48,14 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/snapshot-0000000068639970-00A7D72A.v1 08:16:48,14 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 08:16:48,14 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/snapshot-000000006863996F-3957B863.v1 08:16:48,14 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/snapshot-0000000068639970-00A7D72A.v1 08:16:48,14 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/TermInfo.properties 08:16:48,14 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/snapshot-0000000068639970-009DE6FE.v1 08:16:48,14 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/snapshot-000000006863996F-397381DB.v1 08:16:48,15 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/TermInfo.properties 08:16:48,15 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.962050147Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/snapshot-000000006863996F-3957B863.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:48,15 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:48.010348286Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower/snapshot-0000000068639970-009DE6FE.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:48,15 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:48,15 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:47.963871195Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/snapshot-000000006863996F-397381DB.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:48,15 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:48.010999594Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6992328660072317468/follower2/snapshot-0000000068639970-00A7D72A.v1, size=96, entryCompress=NONE, stateCompress=NONE} 08:16:48,15 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} 08:16:48,15 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]] 08:16:48,15 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Log size is now 2 08:16:48,15 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Commit index set to 1 08:16:48,15 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} 08:16:48,15 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:16:48,15 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:16:48,15 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 1 08:16:48,15 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from 0 to 1 08:16:48,15 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]]} 08:16:48,15 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 1, nextIndex: 2 08:16:48,15 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 08:16:48,15 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=pekko://test/user/leader188, votingState=VOTING], PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING]] 08:16:48,15 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Log size is now 2 08:16:48,15 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Commit index set to 1 08:16:48,15 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:48,16 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:16:48,16 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:16:48,16 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:16:48,16 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 0 to 1 08:16:48,16 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - follower: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:48,16 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 08:16:48,16 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 08:16:48,61 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus ending 08:16:48,61 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower185] 08:16:48,72 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader188] 08:16:48,72 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:48,72 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:48,72 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector189] 08:16:48,73 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector190#-412141134] 08:16:48,73 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower186] 08:16:48,74 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:48,74 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:48,74 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector191#760204595] 08:16:48,74 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2187] 08:16:48,74 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:16:48,74 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 08:16:48,79 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower starting [WARN] [07/01/2025 08:16:48.081] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server194]: org.opendaylight.controller.cluster.common.actor.Monitor@102c71fd 08:16:48,82 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:48,82 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 08:16:48,82 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 08:16:48,84 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/TermInfo.properties does not exist 08:16:48,84 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:48,84 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 08:16:48,87 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:48,87 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:48,87 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2dac122e 08:16:48,89 AM [main] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 2 08:16:48,89 AM [test-pekko.actor.default-dispatcher-15] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:48.090] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader195]: org.opendaylight.controller.cluster.common.actor.Monitor@7b067c09 08:16:48,90 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 08:16:48,91 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:48,91 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:48,91 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:48,92 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/TermInfo.properties does not exist 08:16:48,93 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: no eligible files found 08:16:48,93 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:48,96 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 08:16:48,96 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=leader} 08:16:48,96 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@aa86d21 08:16:48,96 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 08:16:48,96 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 08:16:48,97 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:16:48,97 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 08:16:48,97 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 08:16:48,97 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 08:16:48,97 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 08:16:48,97 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 1 for term 1 08:16:48,208 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 08:16:48,303 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true], state: Idle 08:16:48,303 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 08:16:48,303 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 08:16:48,304 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 08:16:48,304 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:48,305 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 08:16:48,305 AM [leader-%d85914] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:48,305 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:48,306 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 08:16:48,306 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 08:16:48,306 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 08:16:48,306 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 08:16:48,306 AM [leader-%d85915] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/snapshot-0000000068639970-124322AD.tmp 08:16:48,306 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 08:16:48,306 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 08:16:48,306 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 08:16:48,306 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server194), Chunk: 1/1 08:16:48,306 AM [test-pekko.actor.default-dispatcher-15] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 08:16:48,309 AM [leader-%d85915] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/snapshot-0000000068639970-124322AD.v1 08:16:48,310 AM [leader-%d85915] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/snapshot-0000000068639970-124322AD.v1 08:16:48,310 AM [leader-%d85915] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/TermInfo.properties 08:16:48,310 AM [leader-%d85915] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:48.306389677Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/snapshot-0000000068639970-124322AD.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:48,310 AM [leader-%d85915] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:48,310 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:48,310 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:48,310 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T08:16:48.306389677Z 08:16:48,310 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 08:16:48,310 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 08:16:48,310 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 2 08:16:48,310 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:16:48,310 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 08:16:48,310 AM [test-pekko.actor.default-dispatcher-15] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 08:16:48,311 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 08:16:48,311 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called 08:16:48,312 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 08:16:48,312 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 08:16:48,312 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 08:16:48.312] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:48,312 AM [new-server-%d89003] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/snapshot-0000000068639970-129FAB32.tmp 08:16:48,314 AM [new-server-%d89003] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/snapshot-0000000068639970-129FAB32.v1 08:16:48,314 AM [new-server-%d89003] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/snapshot-0000000068639970-129FAB32.v1 08:16:48,314 AM [new-server-%d89003] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/TermInfo.properties 08:16:48,314 AM [new-server-%d89003] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:48.312453938Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/snapshot-0000000068639970-129FAB32.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:48,314 AM [new-server-%d89003] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 08:16:48,315 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 08:16:48,315 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T08:16:48.312453938Z 08:16:48,315 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 08:16:48,315 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 08:16:48,315 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: applySnapshot called 08:16:48,315 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 08:16:48,316 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 2, nextIndex set to 3 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Persist data index=3 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=25c6fc45-733b-4e8a-b6ae-070a3959edfd}, logIndex: 3, isSendImmediate: true 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:48,316 AM [leader-%d85916] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/snapshot-0000000068639970-12DDBF73.tmp 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower follower 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower new-server 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:48,316 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 08:16:48,316 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:48,316 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 08:16:48,317 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:16:48,317 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 08:16:48,317 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 08:16:48,317 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 08:16:48,317 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:48,317 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:48,317 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:48,317 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 08:16:48,317 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:48,317 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/snapshot-0000000068639970-12E88735.tmp 08:16:48,317 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=, votingState=VOTING], PeerInfo [id=new-server, address=null, votingState=VOTING]] 08:16:48,317 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Log size is now 2 08:16:48,317 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=3, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5} 08:16:48,317 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 08:16:48,317 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 08:16:48,317 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:16:48,318 AM [leader-%d85916] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/snapshot-0000000068639970-12DDBF73.v1 08:16:48,319 AM [leader-%d85916] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/snapshot-0000000068639970-12DDBF73.v1 08:16:48,319 AM [leader-%d85916] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/snapshot-0000000068639970-124322AD.v1 08:16:48,319 AM [leader-%d85916] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/TermInfo.properties 08:16:48,319 AM [leader-%d85916] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:48.306389677Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/snapshot-0000000068639970-124322AD.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:48,319 AM [leader-%d85916] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:48.316522355Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/snapshot-0000000068639970-12DDBF73.v1, size=97, entryCompress=NONE, stateCompress=NONE} 08:16:48,319 AM [leader-%d85916] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 08:16:48,319 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 08:16:48,319 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:48,319 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 08:16:48,319 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 3 08:16:48,319 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 2 to 3 08:16:48,319 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - leader: Applying state for log index 3 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:48,319 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/snapshot-0000000068639970-12E88735.v1 08:16:48,319 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 2 for term 1 08:16:48,320 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:48,320 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/snapshot-0000000068639970-129FAB32.v1 08:16:48,320 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/TermInfo.properties 08:16:48,320 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/snapshot-0000000068639970-12E88735.v1 08:16:48,320 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:48.312453938Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/snapshot-0000000068639970-129FAB32.v1, size=64, entryCompress=NONE, stateCompress=NONE} 08:16:48,320 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:48.317228853Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/snapshot-0000000068639970-12E88735.v1, size=97, entryCompress=NONE, stateCompress=NONE} 08:16:48,320 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 08:16:48,320 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=follower, address=null, votingState=VOTING]] 08:16:48,320 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Log size is now 1 08:16:48,320 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=3, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:48,320 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 2) 08:16:48,320 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 3, nextIndex: 4 08:16:48,320 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 08:16:48,320 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): Commit index set to 3 [WARN] [07/01/2025 08:16:48.320] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 08:16:48,321 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 08:16:48,321 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 08:16:48,321 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 3 08:16:48,321 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 2 to 3 08:16:48,321 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Applying state for log index 3 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 08:16:48,448 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Commit index set to 3 08:16:48,448 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 08:16:48,448 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 08:16:48,448 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 08:16:48,448 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 08:16:48,448 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 2 to 3 08:16:48,448 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 2 for term 1 08:16:48,455 AM [main] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/snapshot-0000000068639970-12DDBF73.v1 08:16:48,455 AM [main] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/TermInfo.properties 08:16:48,455 AM [main] [DEBUG] RaftStorage - leader: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:48.316522355Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/leader/snapshot-0000000068639970-12DDBF73.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 08:16:48,456 AM [main] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/TermInfo.properties 08:16:48,456 AM [main] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/snapshot-0000000068639970-12E88735.v1 08:16:48,456 AM [main] [DEBUG] RaftStorage - new-server: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T08:16:48.317228853Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4219003320612193597/new-server/snapshot-0000000068639970-12E88735.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 08:16:48,456 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower ending 08:16:48,456 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower192] 08:16:48,458 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector193#-1248375929] 08:16:48,458 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server194] 08:16:48,458 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:48,458 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:48,459 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader195] 08:16:48,459 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:48,459 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:48,459 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector196] 08:16:48,461 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader starting 08:16:48,464 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:48,464 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor 08:16:48,464 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: started executor [WARN] [07/01/2025 08:16:48.464] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server199]: org.opendaylight.controller.cluster.common.actor.Monitor@6b849a2e 08:16:48,467 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11649424170707150676/new-server/TermInfo.properties does not exist 08:16:48,467 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:48,467 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:48,469 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:48,469 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:48,469 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4ec3a68e 08:16:48,470 AM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:48.471] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower201]: org.opendaylight.controller.cluster.common.actor.Monitor@66e76ded 08:16:48,472 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:16:48,472 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 08:16:48,472 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 08:16:48,473 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11649424170707150676/follower/TermInfo.properties does not exist 08:16:48,473 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: no eligible files found 08:16:48,473 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:48,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:16:48,476 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:16:48,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5cf5e1da 08:16:48,476 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 08:16:48,478 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:16:48,479 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 08:16:48,479 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:48,479 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 [WARN] [07/01/2025 08:16:48.479] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower201] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:16:48,487 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - follower: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server199, votingMember=true], state: Idle 08:16:48,487 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader200 08:16:48,487 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader200)] 08:16:48,537 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader ending 08:16:48,537 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower197] 08:16:48,548 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector198#1186686162] 08:16:48,548 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server199] 08:16:48,549 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:48,549 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:48,549 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader200#2055547247] 08:16:48,549 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower201] 08:16:48,550 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:48,550 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:48,552 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader starting [WARN] [07/01/2025 08:16:48.554] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower204]: org.opendaylight.controller.cluster.common.actor.Monitor@585800e9 08:16:48,556 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 08:16:48,556 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 08:16:48,556 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 08:16:48,558 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16523709677745037388/follower/TermInfo.properties does not exist 08:16:48,558 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: no eligible files found 08:16:48,558 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:48,561 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 08:16:48,561 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 08:16:48,561 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@34f0a9e 08:16:48,562 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - follower (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 08:16:48,564 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 08:16:48,564 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 08:16:48,564 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:48,564 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/01/2025 08:16:48.564] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower204] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 08:16:48,572 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - follower: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 08:16:48,572 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader203 08:16:48,572 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader203)] 08:16:48,622 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader ending 08:16:48,622 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower202] 08:16:48,633 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader203] 08:16:48,634 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower204] 08:16:48,634 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:48,634 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 08:16:48,636 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer starting [WARN] [07/01/2025 08:16:48.638] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader206]: org.opendaylight.controller.cluster.common.actor.Monitor@78bb1dd9 08:16:48,639 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:48,639 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:48,639 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:48,639 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:48,642 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6990265224476308710/leader/TermInfo.properties does not exist 08:16:48,642 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 08:16:48,642 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:48,645 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:48,645 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:48,645 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6b76fb20 08:16:48,646 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 08:16:48,646 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:16:48,650 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true], state: Idle 08:16:48,650 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 08:16:48,650 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning ALREADY_EXISTS for operation AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 08:16:48,650 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer ending 08:16:48,650 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower205] 08:16:48,661 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader206] 08:16:48,661 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:48,661 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:48,664 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout starting [WARN] [07/01/2025 08:16:48.666] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@3f78cd91 08:16:48,667 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 08:16:48,667 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: started executor 08:16:48,667 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 08:16:48.669] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@770331b9 08:16:48,670 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10600868292244023904/node1/TermInfo.properties does not exist 08:16:48,670 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: no eligible files found 08:16:48,670 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:16:48,670 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:16:48,670 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:16:48,670 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:16:48,670 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 08:16:48,670 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: started executor 08:16:48,670 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: started executor 08:16:48,672 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10600868292244023904/node2/TermInfo.properties does not exist 08:16:48,673 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: no eligible files found 08:16:48,673 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:16:48,673 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:16:48,673 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 08:16:48,673 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 08:16:48,673 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:16:48,673 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6675f93e 08:16:48,673 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - node2: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:16:48,676 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 08:16:48,676 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 08:16:48,676 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@11a7c063 08:16:48,681 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]], state: Idle 08:16:48,681 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:48,681 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:16:48,682 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:16:48,682 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:48,682 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:16:48,682 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:16:48,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 08:16:48,684 AM [test-pekko.actor.default-dispatcher-6] [INFO] Candidate - node1 (Candidate): Starting new election term 2 08:16:48,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 08:16:48,685 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:16:48,797 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 08:16:48,797 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 08:16:48,798 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 08:16:48,798 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 08:16:48,799 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout ending 08:16:48,799 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower207] 08:16:48,810 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector208#-1344989804] 08:16:48,810 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 08:16:48,810 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:48,811 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:48,811 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector209#-104870313] 08:16:48,811 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 08:16:48,811 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:48,811 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:48,814 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader starting [WARN] [07/01/2025 08:16:48.816] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@f135ff7 08:16:48,817 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 08:16:48,817 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: started executor 08:16:48,817 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: started executor 08:16:48,819 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3546445800893494156/node1/TermInfo.properties does not exist 08:16:48,820 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: no eligible files found 08:16:48,820 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 [WARN] [07/01/2025 08:16:48.820] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@47b50f6b 08:16:48,820 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 163 08:16:48,820 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode2, address=null, votingState=VOTING], PeerInfo [id=downNode1, address=null, votingState=VOTING]] 08:16:48,820 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - node1: Received apply journal entries for recovery, applying to state: 0 to 0 08:16:48,820 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 08:16:48,820 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 08:16:48,820 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: started executor 08:16:48,820 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - node1: Recovery completed in 50.53 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:16:48,820 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: started executor 08:16:48,822 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3546445800893494156/node2/TermInfo.properties does not exist 08:16:48,822 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - node2: no eligible files found 08:16:48,822 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 08:16:48,822 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 163 08:16:48,822 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node2: Updated server config: isVoting: false, peers: [PeerInfo [id=downNode2, address=null, votingState=VOTING], PeerInfo [id=downNode1, address=null, votingState=VOTING], PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 08:16:48,822 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 0 08:16:48,822 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 08:16:48,822 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node2: Recovery completed in 59.55 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:16:48,825 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 08:16:48,825 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode1} 08:16:48,825 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@540ae0df 08:16:48,825 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 08:16:48,825 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode2} 08:16:48,825 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@40be889e 08:16:48,836 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 08:16:48,837 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:48,837 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:16:48,837 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING], PeerInfo [id=downNode2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode1, address=null, votingState=NON_VOTING]] 08:16:48,837 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:16:48,837 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:16:48,837 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:16:48,839 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 08:16:48,839 AM [test-pekko.actor.default-dispatcher-12] [INFO] Candidate - node1 (Candidate): Starting new election term 2 08:16:48,839 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:16:49,347 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 08:16:49,347 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode2, address=null, votingState=VOTING], PeerInfo [id=downNode1, address=null, votingState=VOTING]] 08:16:49,348 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 08:16:49,348 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 08:16:49,349 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader downNode1, need to catch up to 0 [WARN] [07/01/2025 08:16:49.349] [test-pekko.actor.default-dispatcher-6] [pekko://test/deadLetters] received dead letter from TestActor[pekko://test/user/node1]: AppendEntriesReply{term=2, success=true, followerId=node1, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} [WARN] [07/01/2025 08:16:49.350] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 08:16:50,6 AM [main] [INFO] PeerInfos - node1: Peer address for peer node2 set to pekko://test/user/node2 08:16:50,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 08:16:50,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 08:16:50,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 08:16:50,7 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], PeerInfo [id=downNode2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode1, address=null, votingState=NON_VOTING]] 08:16:50,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 08:16:50,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:16:50,10 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node1 08:16:50,11 AM [test-pekko.actor.default-dispatcher-6] [INFO] Candidate - node1 (Candidate): Starting new election term 3 08:16:50,11 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 08:16:50,11 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 08:16:50,11 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:16:50,11 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 08:16:50,11 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 08:16:50,11 AM [test-pekko.actor.default-dispatcher-15] [INFO] Follower - node2 (Follower): Term 3 in "RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1}" message is greater than follower's term 1 - updating term 08:16:50,14 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=null 08:16:50,14 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 08:16:50,17 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node1 08:16:50,17 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 08:16:50,17 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 08:16:50,17 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 08:16:50,17 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): Election: Leader has following peers: [node2, downNode2, downNode1] 08:16:50,17 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:16:50,17 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:16:50,17 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node1 elected 08:16:50,17 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: New server configuration : [ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]] 08:16:50,17 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - node2: Last sync leader does not match current leader node1, need to catch up to -1 08:16:50,18 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Persist data index=1 term=3 command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} 08:16:50,18 AM [test-pekko.actor.default-dispatcher-6] [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/01/2025 08:16:50.018] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=false] 08:16:50,18 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=f4fccef5-ed9b-419a-b7c0-75911f91a8d5}, logIndex: 1, isSendImmediate: true 08:16:50,18 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:50,18 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node2: Lagging -1 entries behind leader node1 and reached 0 (of expected -1) [WARN] [07/01/2025 08:16:50.018] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=true] 08:16:50,18 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 08:16:50,19 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 0, nextIndex: 1 08:16:50,19 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:50,19 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 08:16:50,19 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): Sending AppendEntries to follower node2: AppendEntries{term=3, leaderId=node1, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=true}]} 08:16:50,19 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node2 (Follower): handleAppendEntries: AppendEntries{term=3, leaderId=node1, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=true}]} 08:16:50,19 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node2 (Follower): Number of entries to be appended = 1 08:16:50,19 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:16:50,19 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} 08:16:50,19 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=true} 08:16:50,19 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=downNode2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode1, address=null, votingState=NON_VOTING], PeerInfo [id=node1, address=null, votingState=VOTING]] 08:16:50,19 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node2 (Follower): Log size is now 2 08:16:50,19 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node2 (Follower): handleAppendEntries returning : AppendEntriesReply{term=3, success=true, followerId=node2, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:16:50,19 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 0 (of expected -1) 08:16:50,19 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 08:16:50,19 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 1, nextIndex: 2 08:16:50,19 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:16:50,20 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=false} 08:16:50,20 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 08:16:50,20 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node1 (Leader): Setting last applied to 1 08:16:50,20 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 08:16:50,20 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} 08:16:50,20 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 08:16:50,20 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - node2: persist complete JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=false} 08:16:50,20 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - node1: VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} has been successfully replicated to a majority of followers 08:16:50,137 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node2 (Follower): Commit index set to 1 08:16:50,137 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 08:16:50,137 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:16:50,138 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - node2 (Follower): Setting last applied to 1 08:16:50,138 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 08:16:50,138 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} 08:16:50,138 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 08:16:50,221 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader ending 08:16:50,222 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower210] 08:16:50,233 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector211#24047626] 08:16:50,233 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 08:16:50,233 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:50,233 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 08:16:50,234 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector212#1212684919] 08:16:50,234 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 08:16:50,234 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:50,234 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 08:16:50,237 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout starting [WARN] [07/01/2025 08:16:50.239] [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@1bbc7eff 08:16:50,240 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 08:16:50,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 08:16:50,240 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: started executor 08:16:50,242 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16614639962342891725/new-server/TermInfo.properties does not exist 08:16:50,242 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 08:16:50,242 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:50,245 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 08:16:50,245 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 08:16:50,245 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3745b991 08:16:50,246 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 08:16:50.247] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader216]: org.opendaylight.controller.cluster.common.actor.Monitor@71060806 08:16:50,247 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:50,248 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 08:16:50,248 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:50,248 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 08:16:50,249 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest16614639962342891725/leader/TermInfo.properties does not exist 08:16:50,249 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - leader: no eligible files found 08:16:50,249 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:16:50,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 08:16:50,252 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 08:16:50,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@e955c42 08:16:50,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 08:16:50,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 08:16:50,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:16:50,252 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] 08:16:50,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 08:16:50,252 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 08:16:50,252 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - leader: support() called 08:16:50,253 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 08:16:50,253 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:16:50,259 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true], state: Idle 08:16:50,259 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 08:16:50,260 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: captureToInstall should not be called in state PersistCapture[lastSequenceNumber=-1, request=CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true]] 08:16:50,260 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 08:16:50,378 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 08:16:50,381 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 08:16:50,381 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:16:50,382 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 08:16:50,382 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 08:16:50.382] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/new-server215] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 08:16:50,478 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:16:50,478 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 08:16:50,479 AM [test-pekko.actor.default-dispatcher-11] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 08:16:50,479 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout ending 08:16:50,479 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower213] 08:16:50,490 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector214#538185509] 08:16:50,490 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server215] 08:16:50,491 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:50,491 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 08:16:50,491 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader216] 08:16:50,491 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 08:16:50,491 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks [INFO] [07/01/2025 08:16:50.493] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:16:50,493 AM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/01/2025 08:16:50.494] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.123:17355) 08:16:50,497 AM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - Exiting completed 08:16:50,497 AM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - Shutting down... 08:16:50,497 AM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - Successfully shut down [INFO] [07/01/2025 08:16:50.495] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - Exiting completed [INFO] [07/01/2025 08:16:50.495] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - Shutting down... [INFO] [07/01/2025 08:16:50.495] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - Successfully shut down 08:16:50,498 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/01/2025 08:16:50.498] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.123:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [07/01/2025 08:16:50.498] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.123:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 08:16:50,498 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 08:16:50,500 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [07/01/2025 08:16:50.500] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.123:17355/system/remoting-terminator] Remoting shut down.