[DEBUG] [07/01/2025 10:02:38.415] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 10:02:38,415 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/01/2025 10:02:38.415] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/01/2025 10:02:38.415] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/01/2025 10:02:38.428] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.247:17355] with UID [-4309190237430182545] [INFO] [07/01/2025 10:02:38.429] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.247:17355] - Starting up, Pekko version [1.0.3] ... 10:02:38,429 AM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.247:17355] with UID [-4309190237430182545] 10:02:38,429 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.247:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/01/2025 10:02:38.433] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.247:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 10:02:38,433 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.247:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/01/2025 10:02:38.433] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.247:17355] - Started up successfully 10:02:38,433 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.247:17355] - Started up successfully [INFO] [07/01/2025 10:02:38.434] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.247: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 10:02:38.434] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.247:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:02:38,434 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.247:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 10:02:38,435 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.247:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:02:38,449 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress starting 10:02:38,453 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 10:02:38,453 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor 10:02:38,453 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - new-server: started executor [WARN] [07/01/2025 10:02:38.453] [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@5b54adcb [INFO] [pekkoDeadLetter][07/01/2025 10:02:38.453] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/new-server109] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:02:38,454 AM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/new-server109] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:02:38,456 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/TermInfo.properties does not exist 10:02:38,456 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: no eligible files found 10:02:38,457 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 10:02:38,460 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 10:02:38,460 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 10:02:38,460 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2cbff57d 10:02:38,462 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 10:02:38.463] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader110]: org.opendaylight.controller.cluster.common.actor.Monitor@72e73093 [INFO] [pekkoDeadLetter][07/01/2025 10:02:38.463] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/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'. 10:02:38,464 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader110] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:02:38,464 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:38,465 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:38,465 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 10:02:38,465 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 10:02:38,467 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/TermInfo.properties does not exist 10:02:38,467 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 10:02:38,467 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 10:02:38,470 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:38,470 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:38,470 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1510ea62 10:02:38,470 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 10:02:38,478 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true], state: Idle 10:02:38,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 10:02:38,489 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:02:38,489 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 10:02:38,489 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 10:02:38,489 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 10:02:38,489 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 10:02:38,490 AM [leader-%d63180] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:38,492 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:38,492 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 10:02:38,492 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 10:02:38,492 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:02:38,492 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 10:02:38,492 AM [leader-%d63181] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-1D5F9E86.tmp 10:02:38,493 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 10:02:38,493 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 10:02:38,493 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 10:02:38,493 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server109), Chunk: 1/1 10:02:38,495 AM [leader-%d63181] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-1D5F9E86.v1 10:02:38,495 AM [leader-%d63181] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-1D5F9E86.v1 10:02:38,495 AM [leader-%d63181] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/TermInfo.properties 10:02:38,495 AM [leader-%d63181] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:38.492805766Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-1D5F9E86.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:38,495 AM [leader-%d63181] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:38,495 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:38,496 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T10:02:38.492805766Z 10:02:38,496 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 10:02:38,496 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 10:02:38,539 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false], state: InstallingSnapshot 10:02:38,539 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 10:02:38,539 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 10:02:38,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 10:02:38,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 10:02:38,542 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 10:02:38,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:02:38,542 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 10:02:38,542 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 10:02:38,542 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 10:02:38.542] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 10:02:38.542] [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'. 10:02:38,542 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'. 10:02:38,543 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 10:02:38,543 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 10:02:38,543 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 10:02:38,543 AM [new-server-%d572636] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-20686020.tmp 10:02:38,545 AM [new-server-%d572636] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-20686020.v1 10:02:38,546 AM [new-server-%d572636] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-20686020.v1 10:02:38,546 AM [new-server-%d572636] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/TermInfo.properties 10:02:38,546 AM [new-server-%d572636] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:38.543711264Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-20686020.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:38,546 AM [new-server-%d572636] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 10:02:38,546 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 10:02:38,546 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T10:02:38.543711264Z 10:02:38,546 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 10:02:38,547 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called 10:02:38,547 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: applySnapshot called 10:02:38,547 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 10:02:38,547 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 10:02:38,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 10:02:38,548 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 10:02:38,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 10:02:38,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 10:02:38,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:02:38,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:38,548 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 10:02:38,549 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=ac4f7f63-0249-42dc-8b77-38775eaa6e11}, logIndex: 0, isSendImmediate: true 10:02:38,549 AM [leader-%d63182] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-20BF57CB.tmp 10:02:38,549 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:38,549 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:38,549 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:02:38,549 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 10:02:38,550 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 10:02:38,550 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 10:02:38,550 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:02:38,550 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]]} 10:02:38,550 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 10:02:38,550 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-20CF3BF5.tmp 10:02:38,551 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server109, votingMember=true] 10:02:38,551 AM [leader-%d63182] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-20BF57CB.v1 10:02:38,552 AM [leader-%d63182] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-1D5F9E86.v1 10:02:38,552 AM [leader-%d63182] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-20BF57CB.v1 10:02:38,552 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-20CF3BF5.v1 10:02:38,552 AM [leader-%d63182] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/TermInfo.properties 10:02:38,552 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-20686020.v1 10:02:38,552 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-20CF3BF5.v1 10:02:38,552 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/TermInfo.properties 10:02:38,552 AM [leader-%d63182] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:38.492805766Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-1D5F9E86.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:38,553 AM [leader-%d63182] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:38.549410763Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-20BF57CB.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:38,553 AM [leader-%d63182] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:38,553 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:38.543711264Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-20686020.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:38,553 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:38.550452213Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-20CF3BF5.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:38,553 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:38,553 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 10:02:38,553 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 10:02:38,553 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Log size is now 1 10:02:38,553 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:02:38,553 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) [WARN] [07/01/2025 10:02:38.553] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server109] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] [INFO] [pekkoDeadLetter][07/01/2025 10:02:38.553] [test-pekko.actor.default-dispatcher-15] [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'. 10:02:38,553 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 10:02:38,553 AM [test-pekko.actor.default-dispatcher-13] [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'. 10:02:38,553 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 10:02:38,554 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 10:02:38,554 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 10:02:38,554 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]]} 10:02:38,554 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 10:02:38,554 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Commit index set to 0 10:02:38,554 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:38,554 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:02:38,554 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 10:02:38,554 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 10:02:38,554 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:38,554 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} 10:02:38,554 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 10:02:38,554 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower107, votingMember=false] 10:02:38,554 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 10:02:38,554 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]] 10:02:38,554 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]]} 10:02:38,554 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} 10:02:38,555 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=5e7a7071-5f14-4914-b703-d5f332bd7e71}, logIndex: 1, isSendImmediate: true 10:02:38,555 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 10:02:38,555 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 10:02:38,555 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}]} 10:02:38,555 AM [leader-%d63183] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-2114DA37.tmp 10:02:38,555 AM [test-pekko.actor.default-dispatcher-13] [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}]} 10:02:38,555 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 10:02:38,555 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:02:38,555 AM [test-pekko.actor.default-dispatcher-13] [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]]} 10:02:38,555 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:38,555 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-211BCF9E.tmp 10:02:38,555 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 10:02:38,555 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] 10:02:38,555 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 10:02:38,556 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 10:02:38,556 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 10:02:38,556 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}]} 10:02:38,557 AM [leader-%d63183] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-2114DA37.v1 10:02:38,557 AM [leader-%d63183] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-20BF57CB.v1 10:02:38,557 AM [leader-%d63183] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-2114DA37.v1 10:02:38,557 AM [leader-%d63183] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/TermInfo.properties 10:02:38,557 AM [leader-%d63183] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:38.549410763Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-20BF57CB.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-211BCF9E.v1 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-20CF3BF5.v1 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-211BCF9E.v1 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/TermInfo.properties 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:38.550452213Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-20CF3BF5.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:38.555470750Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/new-server/snapshot-000000006863B23E-211BCF9E.v1, size=100, entryCompress=NONE, stateCompress=NONE} 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [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]] 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Log size is now 2 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:02:38,558 AM [leader-%d63183] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:38.555014711Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13792764800753264255/leader/snapshot-000000006863B23E-2114DA37.v1, size=100, entryCompress=NONE, stateCompress=NONE} 10:02:38,558 AM [leader-%d63183] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:38,558 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:38,559 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:38,559 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 10:02:38,559 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 10:02:38,559 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 10:02:38,559 AM [test-pekko.actor.default-dispatcher-13] [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]]} 10:02:38,559 AM [test-pekko.actor.default-dispatcher-13] [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 10:02:38,563 AM [test-pekko.actor.default-dispatcher-13] [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 10:02:38.562] [test-pekko.actor.internal-dispatcher-3] [pekko://test/user/follower107] Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:626) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.performSnapshotWithoutCapture(RaftActorBehavior.java:438) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:221) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.appendEntries(RaftActorBehavior.java:152) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.handleMessage(RaftActorBehavior.java:375) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:500) at org.opendaylight.controller.cluster.raft@11.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:341) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.AbstractActor.aroundReceive(AbstractActor.scala:229) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:02:38,722 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 10:02:38,722 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=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}, JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 10:02:38,723 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Commit index set to 1 10:02:38,723 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 10:02:38,723 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:02:38,723 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 10:02:38,723 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 10:02:38,723 AM [test-pekko.actor.default-dispatcher-15] [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]]} 10:02:38,757 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithOperationInProgress ending 10:02:38,757 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower107] 10:02:38,769 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector108#-1612166724] 10:02:38,769 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server109] 10:02:38,769 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:38,769 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:38,770 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader110] 10:02:38,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:38,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:38,770 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector111] 10:02:38,774 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer starting [WARN] [07/01/2025 10:02:38.775] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader113]: org.opendaylight.controller.cluster.common.actor.Monitor@54a45aad [INFO] [pekkoDeadLetter][07/01/2025 10:02:38.775] [test-pekko.actor.default-dispatcher-13] [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'. 10:02:38,775 AM [test-pekko.actor.default-dispatcher-13] [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'. 10:02:38,776 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:38,776 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:38,777 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 10:02:38,777 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 10:02:38,782 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15740098291625040638/leader/TermInfo.properties does not exist 10:02:38,782 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 10:02:38,782 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 10:02:38,784 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:38,784 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:38,784 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@29e4b391 10:02:38,785 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 10:02:38,785 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:02:38,788 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='new-server'}, state: Idle 10:02:38,788 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerNonExistentServer ending 10:02:38,788 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower112] 10:02:38,799 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader113] 10:02:38,799 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:38,799 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:38,902 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader starting 10:02:38,904 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:38,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:38,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor [WARN] [07/01/2025 10:02:38.904] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader115]: org.opendaylight.controller.cluster.common.actor.Monitor@1e7f8f32 [INFO] [pekkoDeadLetter][07/01/2025 10:02:38.905] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader115] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:02:38,905 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'. 10:02:38,906 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6893660599949460720/leader/TermInfo.properties does not exist 10:02:38,906 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 10:02:38,906 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 10:02:38,909 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 10:02:38,909 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 10:02:38,909 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6b07e42f 10:02:38,911 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 10:02:38,911 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 10:02:38,911 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerWithNoLeader ending 10:02:38,911 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower114] 10:02:38,912 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader115] 10:02:38,912 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:38,912 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:38,913 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader starting [WARN] [07/01/2025 10:02:38.914] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader118]: org.opendaylight.controller.cluster.common.actor.Monitor@50156df7 [INFO] [pekkoDeadLetter][07/01/2025 10:02:38.914] [test-pekko.actor.default-dispatcher-11] [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'. 10:02:38,914 AM [test-pekko.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader118] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:02:38,914 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:38,915 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:38,915 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:38,915 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:38,916 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10665924529937123810/leader/TermInfo.properties does not exist 10:02:38,916 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: no eligible files found 10:02:38,916 AM [test-pekko.actor.default-dispatcher-13] [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 10:02:38,918 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:38,918 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:38,918 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@46b2874f 10:02:38,918 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 10:02:38,918 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 10:02:38.919] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower117]: org.opendaylight.controller.cluster.common.actor.Monitor@21b9a079 [INFO] [pekkoDeadLetter][07/01/2025 10:02:38.919] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower117] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 10:02:38,920 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 10:02:38,920 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: started executor 10:02:38,920 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: started executor 10:02:38,921 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10665924529937123810/follower/TermInfo.properties does not exist 10:02:38,921 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: no eligible files found 10:02:38,921 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 10:02:38,921 AM [test-pekko.actor.default-dispatcher-6] [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'. 10:02:38,923 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 10:02:38,923 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 10:02:38,923 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6df87df 10:02:38,923 AM [test-pekko.actor.default-dispatcher-16] [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 10:02:38,925 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 10:02:38,925 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 10:02:38,925 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 [WARN] [07/01/2025 10:02:38.925] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 10:02:38.925] [test-pekko.actor.default-dispatcher-16] [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'. 10:02:38,925 AM [test-pekko.actor.default-dispatcher-16] [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'. 10:02:38,926 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:02:38,931 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 10:02:38,933 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true]] 10:02:38,933 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 10:02:38,933 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=true} 10:02:38,933 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=bbbe9def-d80a-4f83-baeb-c3ea1c42c4c4}, logIndex: 0, isSendImmediate: true 10:02:38,933 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:38,933 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:38,933 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 10:02:38,933 AM [leader-%d940169] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10665924529937123810/leader/snapshot-000000006863B23E-37A26ED7.tmp 10:02:38,933 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-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}]} 10:02:38,933 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='leader'} 10:02:38,934 AM [test-pekko.actor.default-dispatcher-16] [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}]} 10:02:38,934 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:02:38,934 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:02:38,934 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 10:02:38,934 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=follower, isVoting=true]]}, pending=true} 10:02:38,934 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10665924529937123810/follower/snapshot-000000006863B23E-37B1FFF5.tmp 10:02:38,936 AM [leader-%d940169] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10665924529937123810/leader/snapshot-000000006863B23E-37A26ED7.v1 10:02:38,936 AM [leader-%d940169] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10665924529937123810/leader/snapshot-000000006863B23E-37A26ED7.v1 10:02:38,936 AM [leader-%d940169] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10665924529937123810/leader/TermInfo.properties 10:02:38,936 AM [leader-%d940169] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:38.933392087Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10665924529937123810/leader/snapshot-000000006863B23E-37A26ED7.v1, size=75, entryCompress=NONE, stateCompress=NONE} 10:02:38,936 AM [leader-%d940169] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:38,936 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:38,936 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 10:02:38,937 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10665924529937123810/follower/snapshot-000000006863B23E-37B1FFF5.v1 10:02:38,937 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10665924529937123810/follower/snapshot-000000006863B23E-37B1FFF5.v1 10:02:38,937 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10665924529937123810/follower/TermInfo.properties 10:02:38,937 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:38.934412277Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10665924529937123810/follower/snapshot-000000006863B23E-37B1FFF5.v1, size=75, entryCompress=NONE, stateCompress=NONE} 10:02:38,937 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]}, pending=false} 10:02:38,937 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [] 10:02:38,937 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Log size is now 1 10:02:38,937 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=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:02:38,937 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) [WARN] [07/01/2025 10:02:38.937] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower117] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 10:02:38,938 AM [test-pekko.actor.default-dispatcher-15] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower117] was unhandled. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][07/01/2025 10:02:38.937] [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'. 10:02:38,938 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 10:02:38,938 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 10:02:38,938 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 10:02:38,938 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 10:02:38,938 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} 10:02:38,938 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:38,938 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} has been successfully replicated to a majority of followers 10:02:38,938 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Commit index set to 0 10:02:38,938 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:38,938 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:02:38,938 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:02:38,938 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 10:02:38,938 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true]]} [WARN] [07/01/2025 10:02:38.940] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/leader118] unhandled message from TestActor[pekko://test/user/leader118]: ServerRemoved [serverId=leader] 10:02:38,984 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeader ending 10:02:38,984 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower116] 10:02:38,995 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader118] 10:02:38,996 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:38,996 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:38,998 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector119] 10:02:38,998 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector120#2030176579] 10:02:38,999 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower117] 10:02:38,999 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 10:02:38,999 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 10:02:39,2 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot starting [WARN] [07/01/2025 10:02:39.004] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server123]: org.opendaylight.controller.cluster.common.actor.Monitor@7841e6ea 10:02:39,5 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 10:02:39,5 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 10:02:39,5 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: started executor 10:02:39,6 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14961871341439206939/new-server/TermInfo.properties does not exist 10:02:39,6 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 10:02:39,6 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 10:02:39,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 10:02:39,9 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 10:02:39,9 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@13cbe6a4 10:02:39,9 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 10:02:39.010] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader124]: org.opendaylight.controller.cluster.common.actor.Monitor@4978c88b 10:02:39,11 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:39,11 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:39,11 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 10:02:39,11 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 10:02:39,13 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14961871341439206939/leader/TermInfo.properties does not exist 10:02:39,13 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 10:02:39,13 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 10:02:39,15 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:39,15 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:39,15 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@68db7edb 10:02:39,16 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 10:02:39,22 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 10:02:39,23 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 10:02:39,23 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:02:39,23 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 10:02:39,23 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 10:02:39,23 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 10:02:39,23 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 10:02:39,23 AM [leader-%d364001] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:39,23 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:39,23 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 10:02:39,23 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - leader: support() called 10:02:39,24 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:02:39,24 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 10:02:39,24 AM [leader-%d364002] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14961871341439206939/leader/snapshot-000000006863B23F-016DCC45.tmp 10:02:39,24 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 10:02:39,24 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 10:02:39,24 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 10:02:39,24 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server123), Chunk: 1/1 10:02:39,24 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 10:02:39,25 AM [leader-%d364002] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14961871341439206939/leader/snapshot-000000006863B23F-016DCC45.v1 10:02:39,25 AM [leader-%d364002] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14961871341439206939/leader/snapshot-000000006863B23F-016DCC45.v1 10:02:39,26 AM [leader-%d364002] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14961871341439206939/leader/TermInfo.properties 10:02:39,26 AM [leader-%d364002] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:39.023972933Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14961871341439206939/leader/snapshot-000000006863B23F-016DCC45.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:39,26 AM [leader-%d364002] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:39,26 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:39,26 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T10:02:39.023972933Z 10:02:39,26 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 10:02:39,26 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 10:02:39,26 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 10:02:39,26 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]} 10:02:39,26 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 10:02:39,26 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:02:39,26 AM [test-pekko.actor.default-dispatcher-15] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 10:02:39,26 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 10:02:39,27 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 10:02:39.027] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/new-server123] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 10:02:39,27 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 10:02:39,27 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 10:02:39,27 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called 10:02:39,27 AM [new-server-%d899327] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14961871341439206939/new-server/snapshot-000000006863B23F-01A3A8B2.tmp 10:02:39,29 AM [new-server-%d899327] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14961871341439206939/new-server/snapshot-000000006863B23F-01A3A8B2.v1 10:02:39,29 AM [new-server-%d899327] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14961871341439206939/new-server/snapshot-000000006863B23F-01A3A8B2.v1 10:02:39,29 AM [new-server-%d899327] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14961871341439206939/new-server/TermInfo.properties 10:02:39,29 AM [new-server-%d899327] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:39.027502770Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest14961871341439206939/new-server/snapshot-000000006863B23F-01A3A8B2.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:39,29 AM [new-server-%d899327] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 10:02:39,29 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 10:02:39,29 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T10:02:39.027502770Z 10:02:39,29 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 10:02:39,29 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: support() called 10:02:39,30 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - new-server: applySnapshot called 10:02:39,30 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 10:02:39,30 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 10:02:39,30 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 10:02:39,30 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 10:02:39,30 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 10:02:39,73 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 10:02:39,73 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server new-server: not leader 10:02:40,642 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 10:02:40,642 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server123, votingMember=true] 10:02:40,642 AM [test-pekko.actor.default-dispatcher-16] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 10:02:40,642 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot ending 10:02:40,642 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower121] 10:02:40,654 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector122#-380526804] 10:02:40,654 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server123] 10:02:40,654 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:40,654 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:40,655 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader124] 10:02:40,655 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:40,655 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:40,655 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector125] 10:02:40,658 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected starting [WARN] [07/01/2025 10:02:40.660] [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@dcc0077 10:02:40,662 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 10:02:40,662 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: started executor 10:02:40,662 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 10:02:40.663] [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@1ddb3f01 10:02:40,664 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 10:02:40,664 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: started executor 10:02:40,664 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: started executor 10:02:40,665 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15509574602370009472/node1/TermInfo.properties does not exist 10:02:40,665 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: no eligible files found 10:02:40,665 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 10:02:40,666 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 10:02:40,666 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 10:02:40,666 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 10:02:40,666 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest15509574602370009472/node2/TermInfo.properties does not exist 10:02:40,666 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - node2: no eligible files found 10:02:40,666 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 10:02:40,666 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 10:02:40,666 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 10:02:40,666 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 10:02:40,669 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 10:02:40,669 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 10:02:40,669 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@c5e78bc 10:02:40,670 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 10:02:40,670 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 10:02:40,670 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@43756c1d 10:02:40,675 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 10:02:40,679 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 10:02:40,679 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 10:02:40,680 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 10:02:40,680 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:40,680 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 10:02:40,680 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 10:02:40,682 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 10:02:40,682 AM [test-pekko.actor.default-dispatcher-17] [INFO] Candidate - node1 (Candidate): Starting new election term 2 10:02:40,683 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 10:02:40,683 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:02:40,725 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 10:02:40,725 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [] 10:02:40,730 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=node2 10:02:40,730 AM [test-pekko.actor.default-dispatcher-17] [INFO] Candidate - node2 (Candidate): Starting new election term 2 10:02:40,730 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:02:40,730 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node2 (Candidate): Received ElectionTimeout 10:02:40,731 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 10:02:40,731 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:40,731 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:02:40,731 AM [test-pekko.actor.default-dispatcher-16] [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 10:02:40,731 AM [test-pekko.actor.default-dispatcher-16] [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==[]} 10:02:40,731 AM [test-pekko.actor.default-dispatcher-16] [INFO] Candidate - node1 (Candidate): New Leader node2 sent an AppendEntries to Candidate for term 2 - will switch to Follower 10:02:40,731 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 10:02:40,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 10:02:40,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node2 elected 10:02:40,842 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 10:02:40,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: Forwarding ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] to new leader 10:02:40,842 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 10:02:40,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=VOTING]] 10:02:40,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: getLeaderAddress leaderId = node2 peerAddress = pekko://test/user/node2 10:02:40,842 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:40,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - node1: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/node2)] 10:02:40,843 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle [WARN] [07/01/2025 10:02:40.843] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 10:02:40,843 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 10:02:40,843 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=pekko://test/user/node1, votingState=VOTING]] 10:02:40,843 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 10:02:40,843 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Persist data index=1 term=2 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 10:02:40,843 AM [test-pekko.actor.default-dispatcher-17] [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} 10:02:40,843 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=078bc517-ae17-4e53-8b13-a19ccc022010}, logIndex: 1, isSendImmediate: true 10:02:40,844 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:02:40,844 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 10:02:40,844 AM [test-pekko.actor.default-dispatcher-17] [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}]} 10:02:40,844 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 10:02:40,844 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true}]} 10:02:40,844 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 1 10:02:40,844 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:02:40,844 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 10:02:40,844 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true} 10:02:40,844 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]] 10:02:40,844 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Log size is now 2 10:02:40,844 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=node1, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:02:40,844 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 10:02:40,845 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 1, nextIndex: 2 10:02:40,845 AM [test-pekko.actor.default-dispatcher-17] [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 10:02:40,845 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:02:40,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - node2: persist complete JournaledLogEntry{index=1, term=2, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 10:02:40,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 10:02:40,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 10:02:40,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 0 10:02:40,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 10:02:40,846 AM [test-pekko.actor.default-dispatcher-6] [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} 10:02:40,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node2: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 10:02:40,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 1 10:02:40,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 10:02:40,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node2: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 10:02:40,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 10:02:40,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 2 [WARN] [07/01/2025 10:02:40.846] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 10:02:40,846 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActorVotingConfigSupport - node2: VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} has been successfully replicated to a majority of followers 10:02:40,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): Commit index set to 1 10:02:40,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 10:02:40,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:02:40,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 10:02:40,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 10:02:40,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]} 10:02:40,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 10:02:40,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 10:02:40,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 10:02:40,962 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 10:02:40,963 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 2 10:02:41,82 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 10:02:41,149 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected ending 10:02:41,149 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower126] 10:02:41,151 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector127#360503786] 10:02:41,152 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 10:02:41,154 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 10:02:41,154 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 10:02:41,154 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector128#1661927988] 10:02:41,156 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 10:02:41,156 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 10:02:41,156 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 10:02:41,158 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout starting [WARN] [07/01/2025 10:02:41.159] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server131]: org.opendaylight.controller.cluster.common.actor.Monitor@1153ca80 10:02:41,160 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 10:02:41,161 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 10:02:41,161 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 10:02:41,163 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13096418433639674974/new-server/TermInfo.properties does not exist 10:02:41,163 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: no eligible files found 10:02:41,163 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:02:41,168 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 10:02:41,168 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 10:02:41,168 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3776df13 10:02:41,168 AM [test-pekko.actor.default-dispatcher-17] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 10:02:41.169] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader132]: org.opendaylight.controller.cluster.common.actor.Monitor@18641329 10:02:41,169 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:41,170 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:41,170 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 10:02:41,170 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 10:02:41,171 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13096418433639674974/leader/TermInfo.properties does not exist 10:02:41,171 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 10:02:41,171 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 10:02:41,173 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:41,173 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:41,173 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@84aebe 10:02:41,174 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 10:02:41,180 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true], state: Idle 10:02:41,181 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 10:02:41,181 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:02:41,181 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 10:02:41,181 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 10:02:41,181 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - leader: support() called 10:02:41,181 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 10:02:41,181 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=bogus] 10:02:41,181 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server bogus: server Id doesn't match 10:02:41,181 AM [leader-%d611430] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:41,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:41,182 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 10:02:41,182 AM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - leader: support() called 10:02:41,182 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:02:41,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 10:02:41,182 AM [leader-%d611431] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13096418433639674974/leader/snapshot-000000006863B241-0ADF96ED.tmp 10:02:41,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 10:02:41,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 10:02:41,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 10:02:41,182 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server131), Chunk: 1/1 10:02:41,184 AM [leader-%d611431] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13096418433639674974/leader/snapshot-000000006863B241-0ADF96ED.v1 10:02:41,184 AM [leader-%d611431] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13096418433639674974/leader/TermInfo.properties 10:02:41,184 AM [leader-%d611431] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13096418433639674974/leader/snapshot-000000006863B241-0ADF96ED.v1 10:02:41,185 AM [leader-%d611431] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:41.182425325Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13096418433639674974/leader/snapshot-000000006863B241-0ADF96ED.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:41,185 AM [leader-%d611431] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:41,185 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:41,185 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T10:02:41.182425325Z 10:02:41,185 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 10:02:41,185 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 10:02:41,292 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - new-server (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 10:02:41,295 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 10:02:41,295 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 10:02:41,295 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 [WARN] [07/01/2025 10:02:41.295] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server131] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 10:02:41,391 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 10:02:41,391 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server131, votingMember=true] 10:02:41,391 AM [test-pekko.actor.default-dispatcher-16] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while installing snapshot 10:02:41,392 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithInstallSnapshotTimeout ending 10:02:41,392 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower129] 10:02:41,403 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector130#-1043004597] 10:02:41,403 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server131] 10:02:41,403 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:41,404 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:41,404 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader132] 10:02:41,404 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:41,404 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:41,407 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower starting [WARN] [07/01/2025 10:02:41.408] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server135]: org.opendaylight.controller.cluster.common.actor.Monitor@120193d0 10:02:41,409 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 10:02:41,409 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 10:02:41,409 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 10:02:41,411 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/TermInfo.properties does not exist 10:02:41,411 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 10:02:41,411 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 10:02:41,415 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 10:02:41,415 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 10:02:41,415 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1208f70b 10:02:41,416 AM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 10:02:41,416 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 [WARN] [07/01/2025 10:02:41.417] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader136]: org.opendaylight.controller.cluster.common.actor.Monitor@70008d8d 10:02:41,417 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:41,418 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:41,418 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:41,418 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:41,419 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/TermInfo.properties does not exist 10:02:41,419 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 10:02:41,419 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 10:02:41,421 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:41,421 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:41,421 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@20cb63ef 10:02:41,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 10:02:41,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true], state: Idle 10:02:41,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 10:02:41,422 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 10:02:41,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 10:02:41,422 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 10:02:41,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 10:02:41,423 AM [leader-%d899804] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:41,423 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:41,423 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 10:02:41,423 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 10:02:41,423 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:02:41,423 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 10:02:41,423 AM [leader-%d899805] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/snapshot-000000006863B241-193D8872.tmp 10:02:41,423 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 10:02:41,423 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 10:02:41,423 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 10:02:41,423 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server135), Chunk: 1/1 10:02:41,423 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 10:02:41,425 AM [leader-%d899805] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/snapshot-000000006863B241-193D8872.v1 10:02:41,426 AM [leader-%d899805] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/snapshot-000000006863B241-193D8872.v1 10:02:41,426 AM [leader-%d899805] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/TermInfo.properties 10:02:41,426 AM [leader-%d899805] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:41.423463026Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/snapshot-000000006863B241-193D8872.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:41,426 AM [leader-%d899805] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:41,426 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:41,426 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T10:02:41.423463026Z 10:02:41,426 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 10:02:41,426 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 10:02:41,426 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 10:02:41,426 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 10:02:41,426 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 10:02:41,426 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:02:41,426 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 10:02:41,427 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 10:02:41,427 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 10:02:41.427] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 10:02:41,427 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 10:02:41,427 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 10:02:41,427 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 10:02:41,427 AM [new-server-%d538141] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/snapshot-000000006863B241-197FE7D2.tmp 10:02:41,429 AM [new-server-%d538141] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/snapshot-000000006863B241-197FE7D2.v1 10:02:41,429 AM [new-server-%d538141] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/snapshot-000000006863B241-197FE7D2.v1 10:02:41,429 AM [new-server-%d538141] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/TermInfo.properties 10:02:41,429 AM [new-server-%d538141] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:41.427812818Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/snapshot-000000006863B241-197FE7D2.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:41,430 AM [new-server-%d538141] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T10:02:41.427812818Z 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: support() called 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - new-server: applySnapshot called 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 1, nextIndex set to 2 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - leader: Persist data index=2 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:41,430 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:41,431 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=bbda5ee9-ada2-45c9-aff3-811030099f5b}, logIndex: 2, isSendImmediate: true 10:02:41,431 AM [leader-%d899806] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/snapshot-000000006863B241-19B0D8F6.tmp 10:02:41,431 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:41,431 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 10:02:41,431 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 2 is present for follower new-server 10:02:41,431 AM [test-pekko.actor.default-dispatcher-13] [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}]} 10:02:41,431 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server135, votingMember=true] 10:02:41,431 AM [test-pekko.actor.default-dispatcher-13] [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}]} 10:02:41,431 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 10:02:41,431 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:02:41,431 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:41,431 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:41,431 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/snapshot-000000006863B241-19B9BADF.tmp 10:02:41,434 AM [leader-%d899806] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/snapshot-000000006863B241-19B0D8F6.v1 10:02:41,434 AM [leader-%d899806] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/snapshot-000000006863B241-19B0D8F6.v1 10:02:41,434 AM [leader-%d899806] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/snapshot-000000006863B241-193D8872.v1 10:02:41,434 AM [leader-%d899806] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/TermInfo.properties 10:02:41,434 AM [leader-%d899806] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:41.423463026Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/snapshot-000000006863B241-193D8872.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:41,434 AM [leader-%d899806] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:41.431020278Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/leader/snapshot-000000006863B241-19B0D8F6.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:41,434 AM [leader-%d899806] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:41,435 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:41,435 AM [test-pekko.actor.default-dispatcher-17] [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} 10:02:41,435 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/snapshot-000000006863B241-19B9BADF.v1 10:02:41,435 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/snapshot-000000006863B241-19B9BADF.v1 10:02:41,435 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/snapshot-000000006863B241-197FE7D2.v1 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/TermInfo.properties 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:41.427812818Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/snapshot-000000006863B241-197FE7D2.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:41.431602399Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11366949548555545912/new-server/snapshot-000000006863B241-19B9BADF.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Log size is now 1 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected 1) 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 2, nextIndex: 3 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 2 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 1 to 2 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - leader: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [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 [WARN] [07/01/2025 10:02:41.436] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/new-server135] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): Commit index set to 2 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 2 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 1 to 2 10:02:41,436 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - new-server: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:41,471 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoExistingFollower ending 10:02:41,471 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower133] 10:02:41,472 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector134#-250247857] 10:02:41,472 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server135] 10:02:41,473 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:41,473 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:41,473 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader136] 10:02:41,473 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:41,473 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:41,473 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector137] 10:02:41,477 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout starting [WARN] [07/01/2025 10:02:41.480] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@228b5983 10:02:41,481 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 10:02:41,481 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: started executor 10:02:41,481 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node1: started executor 10:02:41,483 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13157262914927527981/node1/TermInfo.properties does not exist 10:02:41,484 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: no eligible files found 10:02:41,484 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 [WARN] [07/01/2025 10:02:41.484] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@6006c687 10:02:41,484 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 10:02:41,484 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING]] 10:02:41,484 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 10:02:41,485 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 10:02:41,485 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: started executor 10:02:41,485 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - node2: started executor 10:02:41,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 10:02:41,488 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 10:02:41,488 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13157262914927527981/node2/TermInfo.properties does not exist 10:02:41,488 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3609bd05 10:02:41,488 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - node2: no eligible files found 10:02:41,488 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 10:02:41,488 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 10:02:41,488 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PeerInfos - node2: Updated server config: isVoting: false, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 10:02:41,488 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 1, size: 1 10:02:41,488 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 1 10:02:41,488 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 1 10:02:41,489 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - node2: Recovery completed in 83.12 μs - Switching actor to Follower - last log index = 1, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 2 10:02:41,491 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 10:02:41,491 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 10:02:41,491 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@116147b3 10:02:41,496 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 10:02:41,496 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 10:02:41,496 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 10:02:41,496 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 10:02:41,496 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:41,496 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 10:02:41,496 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 10:02:41,498 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 10:02:41,498 AM [test-pekko.actor.default-dispatcher-17] [INFO] Candidate - node1 (Candidate): Starting new election term 2 10:02:41,498 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 10:02:41,498 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:02:41,498 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:02:41,498 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 10:02:41,498 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 10:02:41,498 AM [test-pekko.actor.default-dispatcher-13] [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 10:02:41,500 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=2, votedFor=null 10:02:41,500 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 1, lastTerm: 1 10:02:41,500 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 10:02:41,500 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=false}, my term is 2 10:02:41,500 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=false}, current voteCount: 1 10:02:41,811 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 10:02:41,811 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=pekko://test/user/node2, votingState=NON_VOTING]] 10:02:41,812 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 10:02:41,812 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: Found server ActorSelection[Anchor(pekko://test/), Path(/user/node2)] to forward to 10:02:41,812 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]], state: Idle 10:02:41,812 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 10:02:41,812 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node2: Sending local ElectionTimeout to start leader election 10:02:41,812 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=VOTING]] 10:02:41,812 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node2 (Follower): Received TimeoutNow - switching to Candidate 10:02:41,813 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node2 (Candidate): Election: Candidate has following voting peers: [node1] 10:02:41,815 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node2 10:02:41,815 AM [test-pekko.actor.default-dispatcher-6] [INFO] Candidate - node2 (Candidate): Starting new election term 3 10:02:41,815 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Candidate - node2 (Candidate): Sending RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} to peer node1 10:02:41,816 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorBehavior - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 10:02:41,816 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:02:41,816 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): Cluster state: [] 10:02:41,816 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} with higher term appears reachable, updating term. 10:02:41,816 AM [test-pekko.actor.default-dispatcher-17] [INFO] Follower - node1 (Follower): Term 3 in "RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1}" message is greater than follower's term 2 - updating term 10:02:41,818 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=null 10:02:41,818 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): In requestVote: RequestVote{term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 10:02:41,820 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node2 10:02:41,820 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node1 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 10:02:41,820 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node2 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 10:02:41,820 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - node2 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 10:02:41,820 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Election: Leader has following peers: [node1] 10:02:41,820 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:02:41,821 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:02:41,821 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node2: New leader node2 elected 10:02:41,821 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 10:02:41,821 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 10:02:41,821 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Persist data index=2 term=3 command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 10:02:41,821 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true} [WARN] [07/01/2025 10:02:41.821] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 10:02:41,821 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=d2899be2-333d-40ef-93c5-9811d702d0d2}, logIndex: 2, isSendImmediate: true 10:02:41,821 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 10:02:41,821 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]] 10:02:41,822 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) [WARN] [07/01/2025 10:02:41.822] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=true] 10:02:41,823 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 10:02:41,823 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 0 for term 3 10:02:41,823 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 10:02:41,823 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 10:02:41,823 AM [test-pekko.actor.default-dispatcher-17] [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}]} 10:02:41,823 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): sendAppendEntries: 1 is present for follower node1 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): handleAppendEntries: AppendEntries{term=3, leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=2, pending=false}, JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=true}]} 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Number of entries to be appended = 2 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Append entry to log 2 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=1, term=1, command=2, pending=false} 10:02:41,823 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - node2: persist complete JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - node1: Append log entry and persist JournaledLogEntry{index=2, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]}, pending=false} 10:02:41,823 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]] 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Log size is now 3 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Commit index set to 1 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): handleAppendEntries returning : AppendEntriesReply{term=3, success=true, followerId=node1, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 0 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 10:02:41,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=false]]} 10:02:41,824 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 1 10:02:41,824 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 10:02:41,824 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Applying state for log index 1 data 2 10:02:41,824 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 2, nextIndex: 3 10:02:41,824 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - node1: applyState called: 2 10:02:41,824 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 10:02:41,824 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - node2 (Leader): Setting last applied to 2 10:02:41,824 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 1 to 2 10:02:41,824 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 10:02:41,824 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 10:02:41,824 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=2 10:02:41,824 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 0 for term 3 10:02:41,824 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - node2: fakeSnapshot purging log to 1 for term 3 10:02:41,824 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 10:02:41,824 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorVotingConfigSupport - node2: VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} has been successfully replicated to a majority of followers 10:02:41,824 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - node1: persist complete JournaledLogEntry{index=1, term=1, command=2, pending=false} 10:02:41,824 AM [test-pekko.actor.default-dispatcher-6] [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} 10:02:41,825 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): Commit index set to 2 10:02:41,825 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 10:02:41,825 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:02:41,825 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node1 (Follower): Setting last applied to 2 10:02:41,825 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 1 to 2 10:02:41,825 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Applying state for log index 2 data VotingConfig{serverInfo=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]} 10:02:41,825 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=2 10:02:41,825 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - node1: fakeSnapshot purging log to 1 for term 3 10:02:41,932 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 10:02:42,26 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout ending 10:02:42,26 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower138] 10:02:42,38 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector139#-661398888] 10:02:42,38 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 10:02:42,38 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 10:02:42,38 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 10:02:42,39 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector140#292542919] 10:02:42,39 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 10:02:42,39 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 10:02:42,39 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 10:02:42,42 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached starting [WARN] [07/01/2025 10:02:42.044] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server143]: org.opendaylight.controller.cluster.common.actor.Monitor@10b2ed29 10:02:42,44 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 10:02:42,45 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 10:02:42,45 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 10:02:42,46 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/new-server/TermInfo.properties does not exist 10:02:42,47 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 10:02:42,47 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 10:02:42,50 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 10:02:42,50 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 10:02:42,50 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@f114920 10:02:42,50 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 10:02:42.051] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader144]: org.opendaylight.controller.cluster.common.actor.Monitor@7ab8448d 10:02:42,51 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:42,51 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:42,51 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 10:02:42,51 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 10:02:42,52 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/TermInfo.properties does not exist 10:02:42,52 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 10:02:42,52 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 10:02:42,54 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:42,54 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:42,54 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6149f697 10:02:42,54 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 10:02:42,63 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true], state: Idle 10:02:42,64 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 10:02:42,64 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:02:42,64 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 10:02:42,64 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 10:02:42,64 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 10:02:42,64 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 10:02:42,64 AM [leader-%d167144] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:42,64 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:42,64 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 10:02:42,65 AM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: support() called 10:02:42,65 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:02:42,65 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 10:02:42,65 AM [leader-%d167145] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/snapshot-000000006863B242-03E49635.tmp 10:02:42,65 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 10:02:42,65 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 10:02:42,65 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 10:02:42,65 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server143), Chunk: 1/1 10:02:42,65 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 10:02:42,67 AM [leader-%d167145] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/snapshot-000000006863B242-03E49635.v1 10:02:42,68 AM [leader-%d167145] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/snapshot-000000006863B242-03E49635.v1 10:02:42,68 AM [leader-%d167145] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/TermInfo.properties 10:02:42,68 AM [leader-%d167145] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:42.065312309Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/snapshot-000000006863B242-03E49635.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:42,68 AM [leader-%d167145] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:42,68 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:42,68 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T10:02:42.065312309Z 10:02:42,68 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 10:02:42,68 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 10:02:42,68 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 10:02:42,68 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 10:02:42,68 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 10:02:42,68 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:02:42,68 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 10:02:42,69 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 10:02:42,69 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 10:02:42.069] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server143] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 10:02:42,69 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 10:02:42,70 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 10:02:42,70 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 10:02:42,70 AM [new-server-%d960015] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/new-server/snapshot-000000006863B242-04310E14.tmp 10:02:42,72 AM [new-server-%d960015] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/new-server/snapshot-000000006863B242-04310E14.v1 10:02:42,72 AM [new-server-%d960015] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/new-server/snapshot-000000006863B242-04310E14.v1 10:02:42,72 AM [new-server-%d960015] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/new-server/TermInfo.properties 10:02:42,72 AM [new-server-%d960015] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:42.070323732Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/new-server/snapshot-000000006863B242-04310E14.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:42,72 AM [new-server-%d960015] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 10:02:42,72 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 10:02:42,72 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T10:02:42.070323732Z 10:02:42,72 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 10:02:42,73 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 10:02:42,73 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: applySnapshot called 10:02:42,73 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 10:02:42,73 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 10:02:42,73 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 10:02:42,73 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 10:02:42,73 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 10:02:42,114 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 10:02:42,114 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:02:42,114 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:42,114 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=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 10:02:42,114 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=3e2c8379-e218-45ff-b2b2-51a980c7b8b1}, logIndex: 0, isSendImmediate: true 10:02:42,114 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:42,114 AM [leader-%d167146] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/snapshot-000000006863B242-06D4FCD6.tmp 10:02:42,114 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:42,114 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:02:42,114 AM [test-pekko.actor.default-dispatcher-16] [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}]} 10:02:42,115 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server143, votingMember=true] 10:02:42,116 AM [leader-%d167146] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/snapshot-000000006863B242-06D4FCD6.v1 10:02:42,116 AM [leader-%d167146] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/snapshot-000000006863B242-03E49635.v1 10:02:42,117 AM [leader-%d167146] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/snapshot-000000006863B242-06D4FCD6.v1 10:02:42,117 AM [leader-%d167146] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/TermInfo.properties 10:02:42,117 AM [leader-%d167146] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:42.065312309Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/snapshot-000000006863B242-03E49635.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:42,117 AM [leader-%d167146] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:42.114621654Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4687989730856863554/leader/snapshot-000000006863B242-06D4FCD6.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:42,117 AM [leader-%d167146] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:42,117 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:42,117 AM [test-pekko.actor.default-dispatcher-16] [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} 10:02:42,164 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 10:02:42,164 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 10:02:42,182 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:02:42,301 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:02:42,301 AM [test-pekko.actor.default-dispatcher-16] [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}]} 10:02:42,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:02:42,422 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 10:02:42,542 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:02:42,542 AM [test-pekko.actor.default-dispatcher-16] [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}]} 10:02:42,662 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:02:42,662 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 10:02:42,782 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:02:42,782 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 10:02:42,902 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:02:42,902 AM [test-pekko.actor.default-dispatcher-16] [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}]} 10:02:43,21 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:02:43,21 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 10:02:44,132 AM [test-pekko.actor.default-dispatcher-16] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured while replicating the new server configuration for new-server 10:02:44,132 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 10:02:44,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 10:02:44,133 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 10:02:44,133 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoConsensusReached ending 10:02:44,133 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower141] 10:02:44,144 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector142#443184870] 10:02:44,144 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server143] 10:02:44,144 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:44,144 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:44,144 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader144] 10:02:44,145 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:44,145 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:44,145 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector145] 10:02:44,145 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-serverCollector146] 10:02:44,147 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers starting [WARN] [07/01/2025 10:02:44.147] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader148]: org.opendaylight.controller.cluster.common.actor.Monitor@524692e3 10:02:44,148 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:44,148 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:44,148 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 10:02:44,149 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 10:02:44,150 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1689864201857523903/leader/TermInfo.properties does not exist 10:02:44,150 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 10:02:44,150 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 10:02:44,153 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:44,153 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:44,153 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@113910d5 10:02:44,153 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 10:02:44,159 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 10:02:44,159 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerLeaderWithNoFollowers ending 10:02:44,159 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower147] 10:02:44,170 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader148] 10:02:44,171 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:44,171 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:44,173 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete starting [WARN] [07/01/2025 10:02:44.177] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server151]: org.opendaylight.controller.cluster.common.actor.Monitor@6a80bd85 10:02:44,177 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 10:02:44,177 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 10:02:44,177 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: started executor 10:02:44,179 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13822312355734639778/new-server/TermInfo.properties does not exist 10:02:44,179 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 10:02:44,179 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 10:02:44,182 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 10:02:44,182 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 10:02:44,182 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@59d081bd 10:02:44,182 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 10:02:44.183] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader152]: org.opendaylight.controller.cluster.common.actor.Monitor@3ee75b99 10:02:44,184 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:44,184 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:44,185 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 10:02:44,185 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: started executor 10:02:44,186 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13822312355734639778/leader/TermInfo.properties does not exist 10:02:44,186 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 10:02:44,186 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 10:02:44,189 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:44,189 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:44,189 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3db8718 10:02:44,189 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 10:02:44,189 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 10:02:44,189 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:02:44,189 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 10:02:44,189 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 10:02:44,189 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 10:02:44,189 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 10:02:44,190 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 10:02:44,190 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:02:44,190 AM [leader-%d737743] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13822312355734639778/leader/snapshot-000000006863B244-0B5A9594.tmp 10:02:44,192 AM [leader-%d737743] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13822312355734639778/leader/snapshot-000000006863B244-0B5A9594.v1 10:02:44,192 AM [leader-%d737743] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13822312355734639778/leader/snapshot-000000006863B244-0B5A9594.v1 10:02:44,192 AM [leader-%d737743] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13822312355734639778/leader/TermInfo.properties 10:02:44,192 AM [leader-%d737743] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:44.190485908Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest13822312355734639778/leader/snapshot-000000006863B244-0B5A9594.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:44,192 AM [leader-%d737743] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:44,192 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:44,196 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true], state: Idle 10:02:44,196 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 10:02:44,196 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: captureToInstall should not be called in state PersistCapture[lastSequenceNumber=-1, request=CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true]] 10:02:44,196 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 10:02:44,300 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:44,300 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:44,300 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T10:02:44.190485908Z 10:02:44,300 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 10:02:44,300 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 10:02:44,300 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: No longer the leader 10:02:44,300 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 10:02:44,300 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 10:02:44,300 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server151, votingMember=true] 10:02:44,301 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 10:02:44,301 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete ending 10:02:44,301 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower149] 10:02:44,312 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector150#-1906436621] 10:02:44,312 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server151] 10:02:44,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:44,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:44,313 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader152] 10:02:44,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:44,313 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:44,315 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting starting [WARN] [07/01/2025 10:02:44.317] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server155]: org.opendaylight.controller.cluster.common.actor.Monitor@675d6a80 10:02:44,318 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 10:02:44,318 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 10:02:44,318 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 10:02:44,320 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/TermInfo.properties does not exist 10:02:44,320 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: no eligible files found 10:02:44,320 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 10:02:44,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 10:02:44,323 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 10:02:44,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7bb93dcd 10:02:44,323 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 10:02:44.324] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader156]: org.opendaylight.controller.cluster.common.actor.Monitor@49ae5fd4 10:02:44,325 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:44,325 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:44,325 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 10:02:44,325 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 10:02:44,326 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/TermInfo.properties does not exist 10:02:44,327 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 10:02:44,327 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 10:02:44,329 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:44,329 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:44,329 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@75b90036 10:02:44,329 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 10:02:44,437 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false], state: Idle 10:02:44,437 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 10:02:44,437 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 10:02:44,437 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 10:02:44,437 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 10:02:44,438 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 10:02:44,438 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=afca4f02-9dd0-4e80-96ec-3004e42c0ccc}, logIndex: 0, isSendImmediate: true 10:02:44,438 AM [leader-%d896411] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/snapshot-000000006863B244-1A1EC62E.tmp 10:02:44,438 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 10:02:44,438 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 10:02:44,438 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 10:02:44,438 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:44,438 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server155, votingMember=false] 10:02:44,438 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - new-server (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 10:02:44,439 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 10:02:44,441 AM [leader-%d896411] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/snapshot-000000006863B244-1A1EC62E.v1 10:02:44,441 AM [leader-%d896411] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/snapshot-000000006863B244-1A1EC62E.v1 10:02:44,441 AM [leader-%d896411] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/TermInfo.properties 10:02:44,441 AM [leader-%d896411] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:44.438224430Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/snapshot-000000006863B244-1A1EC62E.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:44,441 AM [leader-%d896411] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:44,441 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:44,441 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 10:02:44,442 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 10:02:44,442 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 10:02:44,442 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 [WARN] [07/01/2025 10:02:44.442] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 10:02:44,442 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:44,442 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:02:44,442 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false}]} 10:02:44,442 AM [test-pekko.actor.default-dispatcher-17] [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}]} 10:02:44,443 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 10:02:44,443 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:02:44,443 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 10:02:44,443 AM [test-pekko.actor.default-dispatcher-17] [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} 10:02:44,443 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/snapshot-000000006863B244-1A6A094A.tmp 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/snapshot-000000006863B244-1A6A094A.v1 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/snapshot-000000006863B244-1A6A094A.v1 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/TermInfo.properties 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:44.443156810Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/snapshot-000000006863B244-1A6A094A.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [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} 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Log size is now 1 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Commit index set to 0 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [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} 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 10:02:44,447 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 10:02:44,448 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 10:02:44.448] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/new-server155] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 10:02:44,552 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:44,672 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:44,791 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:44,912 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:44,993 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false], state: Idle 10:02:44,993 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 10:02:44,993 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New follower is non-voting - directly persisting new server configuration 10:02:44,993 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 10:02:44,993 AM [test-pekko.actor.default-dispatcher-6] [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]]} 10:02:44,993 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=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 10:02:44,994 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=b21f3185-fa54-4ffb-b237-139a1208256a}, logIndex: 1, isSendImmediate: true 10:02:44,994 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 10:02:44,994 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 10:02:44,994 AM [leader-%d896412] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/snapshot-000000006863B244-3B3E6758.tmp 10:02:44,994 AM [test-pekko.actor.default-dispatcher-6] [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]]} 10:02:44,994 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 10:02:44,994 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower new-server 10:02:44,994 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=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}]} 10:02:44,994 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 10:02:44,994 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 10:02:44,994 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:02:44,994 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 10:02:44,994 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - new-server: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 10:02:44,994 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/snapshot-000000006863B244-3B4BC5AC.tmp 10:02:44,995 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 10:02:44,995 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=pekko://test/user/follower153, votingMember=false] 10:02:44,995 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server2: Last sync leader does not match current leader leader, need to catch up to -1 10:02:44,995 AM [test-pekko.actor.default-dispatcher-6] [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 10:02:44,995 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server2 10:02:44,995 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=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}]} 10:02:44,996 AM [test-pekko.actor.default-dispatcher-13] [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) 10:02:44,996 AM [leader-%d896412] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/snapshot-000000006863B244-3B3E6758.v1 10:02:44,997 AM [leader-%d896412] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/snapshot-000000006863B244-1A1EC62E.v1 10:02:44,997 AM [leader-%d896412] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/snapshot-000000006863B244-3B3E6758.v1 10:02:44,997 AM [leader-%d896412] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/TermInfo.properties 10:02:44,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/snapshot-000000006863B244-3B4BC5AC.v1 10:02:44,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/snapshot-000000006863B244-1A6A094A.v1 10:02:44,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/snapshot-000000006863B244-3B4BC5AC.v1 [ERROR] [07/01/2025 10:02:44.996] [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) 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/TermInfo.properties 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:44.443156810Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/snapshot-000000006863B244-1A6A094A.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:44,998 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServersAsNonVoting ending 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:44.994821548Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/new-server/snapshot-000000006863B244-3B4BC5AC.v1, size=100, entryCompress=NONE, stateCompress=NONE} 10:02:44,998 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower153] 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - new-server: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=new-server2, address=null, votingState=NON_VOTING]] 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Log size is now 2 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): Commit index set to 1 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=new-server, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 1 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 0 to 1 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - new-server: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]} 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 10:02:44,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:02:44,999 AM [leader-%d896412] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:44.438224430Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/snapshot-000000006863B244-1A1EC62E.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:44,999 AM [leader-%d896412] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:44.993945432Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest83426761788642562/leader/snapshot-000000006863B244-3B3E6758.v1, size=100, entryCompress=NONE, stateCompress=NONE} 10:02:44,999 AM [leader-%d896412] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:44,999 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:44,999 AM [test-pekko.actor.default-dispatcher-17] [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} 10:02:44,999 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector154#-1440504505] 10:02:45,0 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server155] 10:02:45,0 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:45,0 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:45,0 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader156] 10:02:45,0 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,0 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,1 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector157] 10:02:45,4 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress starting [WARN] [07/01/2025 10:02:45.006] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server160]: org.opendaylight.controller.cluster.common.actor.Monitor@6d820ee9 10:02:45,6 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 10:02:45,6 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 10:02:45,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 10:02:45,8 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/TermInfo.properties does not exist 10:02:45,8 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 10:02:45,8 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 10:02:45,10 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 10:02:45,10 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 10:02:45,10 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5a746ec1 10:02:45,10 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 10:02:45.011] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader161]: org.opendaylight.controller.cluster.common.actor.Monitor@4cae0a1a 10:02:45,11 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:45,11 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:45,11 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:45,11 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:45,12 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/TermInfo.properties does not exist 10:02:45,12 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 10:02:45,12 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 10:02:45,14 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:45,14 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:45,14 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@114d6da1 10:02:45,14 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 10:02:45,14 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 10:02:45,14 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:02:45,14 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 10:02:45,14 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 10:02:45,14 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 10:02:45,14 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 10:02:45,15 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 10:02:45,15 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:02:45,15 AM [leader-%d367587] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-00E6610E.tmp 10:02:45,16 AM [leader-%d367587] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-00E6610E.v1 10:02:45,16 AM [leader-%d367587] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-00E6610E.v1 10:02:45,16 AM [leader-%d367587] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/TermInfo.properties 10:02:45,17 AM [leader-%d367587] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.015098126Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-00E6610E.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:45,17 AM [leader-%d367587] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:45,17 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:45,124 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true], state: Idle 10:02:45,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 10:02:45,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: captureToInstall should not be called in state PersistCapture[lastSequenceNumber=-1, request=CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true]] 10:02:45,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 10:02:45,125 AM [main] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:45,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:45,125 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T10:02:45.015098126Z 10:02:45,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 10:02:45,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onSnapshotComplete 10:02:45,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:02:45,125 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 10:02:45,125 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 10:02:45,125 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 10:02:45,126 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 10:02:45,126 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 10:02:45,126 AM [leader-%d367588] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:45,126 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:45,126 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 10:02:45,126 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: support() called 10:02:45,126 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:02:45,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 10:02:45,127 AM [leader-%d367589] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-0790747F.tmp 10:02:45,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 10:02:45,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 10:02:45,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 10:02:45,127 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server160), Chunk: 1/1 10:02:45,127 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 10:02:45,129 AM [leader-%d367589] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-0790747F.v1 10:02:45,129 AM [leader-%d367589] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-00E6610E.v1 10:02:45,129 AM [leader-%d367589] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-0790747F.v1 10:02:45,130 AM [leader-%d367589] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/TermInfo.properties 10:02:45,130 AM [leader-%d367589] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.015098126Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-00E6610E.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:45,130 AM [leader-%d367589] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.126907519Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-0790747F.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:45,130 AM [leader-%d367589] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:45,130 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:45,130 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 10:02:45,130 AM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T10:02:45.126907519Z 10:02:45,130 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 10:02:45,130 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 10:02:45,130 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 10:02:45,130 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 10:02:45,130 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:02:45,130 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 10:02:45,131 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 10:02:45,131 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 10:02:45.131] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 10:02:45,133 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 10:02:45,133 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 10:02:45,133 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 10:02:45,133 AM [new-server-%d190281] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/snapshot-000000006863B245-07F52451.tmp 10:02:45,135 AM [new-server-%d190281] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/snapshot-000000006863B245-07F52451.v1 10:02:45,135 AM [new-server-%d190281] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/snapshot-000000006863B245-07F52451.v1 10:02:45,135 AM [new-server-%d190281] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/TermInfo.properties 10:02:45,135 AM [new-server-%d190281] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.133506129Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/snapshot-000000006863B245-07F52451.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:45,135 AM [new-server-%d190281] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 10:02:45,135 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 10:02:45,135 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T10:02:45.133506129Z 10:02:45,136 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 10:02:45,136 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: support() called 10:02:45,136 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - new-server: applySnapshot called 10:02:45,136 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 10:02:45,136 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 10:02:45,136 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 10:02:45,136 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 10:02:45,136 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 10:02:45,136 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 10:02:45,136 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:02:45,136 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:45,137 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 10:02:45,137 AM [leader-%d367590] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-082CA20A.tmp 10:02:45,137 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=67857da5-712f-430d-8a67-46df95047d42}, logIndex: 0, isSendImmediate: true 10:02:45,137 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:45,137 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,137 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:02:45,137 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 10:02:45,137 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server160, votingMember=true] 10:02:45,137 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-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}]} 10:02:45,137 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 10:02:45,137 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:02:45,137 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:45,137 AM [test-pekko.actor.default-dispatcher-16] [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} 10:02:45,137 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/snapshot-000000006863B245-0837CEAE.tmp 10:02:45,139 AM [leader-%d367590] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-082CA20A.v1 10:02:45,139 AM [leader-%d367590] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-082CA20A.v1 10:02:45,139 AM [leader-%d367590] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-0790747F.v1 10:02:45,139 AM [leader-%d367590] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/TermInfo.properties 10:02:45,139 AM [leader-%d367590] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.126907519Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-0790747F.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:45,139 AM [leader-%d367590] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.137142794Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/leader/snapshot-000000006863B245-082CA20A.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:45,139 AM [leader-%d367590] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:45,140 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:45,140 AM [test-pekko.actor.default-dispatcher-17] [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} 10:02:45,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/snapshot-000000006863B245-0837CEAE.v1 10:02:45,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/snapshot-000000006863B245-0837CEAE.v1 10:02:45,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/snapshot-000000006863B245-07F52451.v1 10:02:45,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/TermInfo.properties 10:02:45,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.133506129Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/snapshot-000000006863B245-07F52451.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:45,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.137875118Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest246377742590970965/new-server/snapshot-000000006863B245-0837CEAE.v1, size=86, entryCompress=NONE, stateCompress=NONE} 10:02:45,140 AM [test-pekko.actor.default-dispatcher-16] [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} 10:02:45,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 10:02:45,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Log size is now 1 10:02:45,140 AM [test-pekko.actor.default-dispatcher-16] [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} 10:02:45,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:02:45,140 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 10:02:45,140 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 10:02:45,140 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 10:02:45,140 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 10:02:45,140 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:45,140 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 10:02:45.140] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/new-server160] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 10:02:45,140 AM [test-pekko.actor.default-dispatcher-17] [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 10:02:45,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): Commit index set to 0 10:02:45,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:45,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:02:45,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 0 10:02:45,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from -1 to 0 10:02:45,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - new-server: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:45,188 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotInProgress ending 10:02:45,188 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower158] 10:02:45,199 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector159#-1121755423] 10:02:45,200 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server160] 10:02:45,200 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:45,200 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:45,200 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader161] 10:02:45,200 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,200 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,200 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector162] 10:02:45,204 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode starting [WARN] [07/01/2025 10:02:45.204] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader164]: org.opendaylight.controller.cluster.common.actor.Monitor@665be5d5 10:02:45,205 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:45,205 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:45,205 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:45,205 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:45,208 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4905599446630455569/leader/TermInfo.properties does not exist 10:02:45,208 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: no eligible files found 10:02:45,208 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:02:45,211 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:45,211 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:45,211 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1e4acc4f 10:02:45,211 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 10:02:45,216 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 10:02:45,216 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 10:02:45,216 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning INVALID_REQUEST for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 10:02:45,216 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVotingInSingleNode ending 10:02:45,216 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower163] 10:02:45,227 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader164] 10:02:45,228 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,228 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,231 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting starting [WARN] [07/01/2025 10:02:45.232] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader168]: org.opendaylight.controller.cluster.common.actor.Monitor@2634caa1 10:02:45,233 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:45,233 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:45,234 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:45,234 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:45,235 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/leader/TermInfo.properties does not exist 10:02:45,235 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - leader: no eligible files found 10:02:45,236 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [07/01/2025 10:02:45.236] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower166]: org.opendaylight.controller.cluster.common.actor.Monitor@3f1ab2f0 10:02:45,236 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 10:02:45,236 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 10:02:45,237 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 10:02:45,237 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/follower/TermInfo.properties does not exist 10:02:45,237 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: no eligible files found 10:02:45,237 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 10:02:45,238 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:45,238 AM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:45,238 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6ac97e5b 10:02:45,238 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 10:02:45,238 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:02:45,239 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:02:45,239 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 10:02:45,239 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 10:02:45,239 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4c6774d7 [WARN] [07/01/2025 10:02:45.239] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2167]: org.opendaylight.controller.cluster.common.actor.Monitor@3e69cfce 10:02:45,239 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 10:02:45,240 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 10:02:45,240 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: started executor 10:02:45,241 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: started executor 10:02:45,241 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 10:02:45,241 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 10:02:45,241 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 10:02:45,241 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 10:02:45.241] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 10:02:45,242 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/follower2/TermInfo.properties does not exist 10:02:45,242 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: no eligible files found 10:02:45,242 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:02:45,245 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 10:02:45,245 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 10:02:45,245 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@752319b6 10:02:45,245 AM [test-pekko.actor.default-dispatcher-16] [INFO] Follower - follower2 (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 10:02:45,247 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 10:02:45,247 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 10:02:45,247 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 10:02:45,247 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 10:02:45.247] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PeerInfos - leader: Updated server config: isVoting: false, peers: [PeerInfo [id=follower2, address=pekko://test/user/follower2167, votingState=VOTING], PeerInfo [id=follower, address=pekko://test/user/follower166, votingState=VOTING]] 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]] 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Persist data index=0 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=dd5f7ace-ab8b-4227-8b61-b1069b16b0de}, logIndex: 0, isSendImmediate: true 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-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}]} 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [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}]} 10:02:45,252 AM [test-pekko.actor.default-dispatcher-13] [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}]} 10:02:45,252 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 10:02:45,253 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 10:02:45,253 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:02:45,253 AM [test-pekko.actor.default-dispatcher-13] [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]]} 10:02:45,253 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:45,253 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/follower2/snapshot-000000006863B245-0F15C159.tmp 10:02:45,253 AM [leader-%d84405] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/leader/snapshot-000000006863B245-0F0DFB78.tmp 10:02:45,253 AM [test-pekko.actor.default-dispatcher-16] [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}]} 10:02:45,253 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:02:45,253 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:02:45,253 AM [test-pekko.actor.default-dispatcher-16] [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]]} 10:02:45,253 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=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]}, pending=true} 10:02:45,253 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/follower/snapshot-000000006863B245-0F1F0C7E.tmp 10:02:45,255 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/follower2/snapshot-000000006863B245-0F15C159.v1 10:02:45,255 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/follower2/TermInfo.properties 10:02:45,255 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/follower2/snapshot-000000006863B245-0F15C159.v1 10:02:45,255 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.253083993Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/follower2/snapshot-000000006863B245-0F15C159.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:45,255 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:45,255 AM [test-pekko.actor.default-dispatcher-13] [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]] 10:02:45,255 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - follower2 (Follower): Log size is now 1 10:02:45,255 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:45,256 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:02:45,256 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 10:02:45,256 AM [leader-%d84405] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/leader/snapshot-000000006863B245-0F0DFB78.v1 10:02:45,256 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 10:02:45.256] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 10:02:45,256 AM [leader-%d84405] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/leader/snapshot-000000006863B245-0F0DFB78.v1 10:02:45,256 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/follower/snapshot-000000006863B245-0F1F0C7E.v1 10:02:45,256 AM [leader-%d84405] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/leader/TermInfo.properties 10:02:45,256 AM [leader-%d84405] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.252574584Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/leader/snapshot-000000006863B245-0F0DFB78.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:45,256 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/follower/snapshot-000000006863B245-0F1F0C7E.v1 10:02:45,256 AM [leader-%d84405] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:45,256 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:45,257 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/follower/TermInfo.properties 10:02:45,257 AM [test-pekko.actor.default-dispatcher-11] [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} 10:02:45,257 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.253693054Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest1409267664120357188/follower/snapshot-000000006863B245-0F1F0C7E.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:45,257 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 10:02:45,257 AM [test-pekko.actor.default-dispatcher-16] [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} 10:02:45,257 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 10:02:45,257 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 10:02:45,257 AM [test-pekko.actor.default-dispatcher-16] [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]] 10:02:45,257 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower (Follower): Log size is now 1 10:02:45,257 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Applying state for log index 0 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 10:02:45,257 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} 10:02:45,257 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:02:45,257 AM [test-pekko.actor.default-dispatcher-11] [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 10:02:45,257 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - Leader changed to non-voting - trying leadership transfer [WARN] [07/01/2025 10:02:45.257] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower166] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 10:02:45,257 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Initiating leader transfer 10:02:45,258 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - follower2: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 10:02:45,258 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 10:02:45,260 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorLeadershipTransferCohort - leader: pauseLeader successfully completed - doing transfer 10:02:45,260 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Leader - leader (Leader): Attempting to transfer leadership 10:02:45,261 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,261 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,261 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 10:02:45,261 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 10:02:45,261 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:45,261 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:02:45,261 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=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}]} 10:02:45,261 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 10:02:45,261 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 10:02:45,261 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=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]} 10:02:45,261 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 10:02:45,261 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,261 AM [test-pekko.actor.default-dispatcher-17] [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}]} 10:02:45,261 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:02:45,261 AM [test-pekko.actor.default-dispatcher-17] [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 10:02:45,261 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Leader - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: 0, lastIndex: 0, isVoting: true 10:02:45,261 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 10:02:45,262 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Leader - leader (Leader): Follower's log matches - sending ElectionTimeout 10:02:45,262 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Log size is now 1 10:02:45,262 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Commit index set to 0 10:02:45,262 AM [test-pekko.actor.default-dispatcher-17] [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} 10:02:45,262 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,262 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:45,262 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:02:45,262 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:02:45,262 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 10:02:45,262 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,262 AM [test-pekko.actor.default-dispatcher-17] [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]]} 10:02:45,262 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Leader - leader (Leader): Leader transfer complete 10:02:45,262 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader transfer complete - waiting for new leader 10:02:45,262 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:45,262 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:45,262 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 10:02:45,262 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [follower2] 10:02:45,263 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:45,264 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=2, votedFor=follower 10:02:45,264 AM [test-pekko.actor.default-dispatcher-17] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:02:45,264 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - follower (Candidate): Sending RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} to peer follower2 10:02:45,264 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:02:45,264 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - follower2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:02:45,265 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - follower2 (Follower): Cluster state: [] 10:02:45,265 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - follower2 (Follower): Candidate in requestVote:RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 10:02:45,265 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - follower2 (Follower): Term 2 in "RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1}" message is greater than follower's term 1 - updating term 10:02:45,266 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=null 10:02:45,266 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - follower2 (Follower): In requestVote: RequestVote{term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1} - currentTerm: 2, votedFor: null, lastIndex: 0, lastTerm: 1 10:02:45,268 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=2, votedFor=follower 10:02:45,268 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - follower2 (Follower): requestVote returning: RequestVoteReply{term=2, voteGranted=true} 10:02:45,268 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - follower (Candidate): RaftRPC message received RequestVoteReply{term=2, voteGranted=true}, my term is 2 10:02:45,268 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] Candidate - follower (Candidate): handleRequestVoteReply: RequestVoteReply{term=2, voteGranted=true}, current voteCount: 1 10:02:45,268 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower (Leader): Election: Leader has following peers: [leader, follower2] 10:02:45,268 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower leader: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,268 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,268 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorBehavior - follower (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:02:45,268 AM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractLeader - leader (Leader): Term 2 in "AppendEntries{term=2, leaderId=follower, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than leader's term 1 - switching to Follower 10:02:45,268 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader follower, need to catch up to -1 10:02:45,269 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 10:02:45,269 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 10:02:45.269] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 10:02:45,269 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader follower and reached 0 (of expected -1) [WARN] [07/01/2025 10:02:45.269] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower2167] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 10:02:45,270 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=2, votedFor=null 10:02:45,270 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActorBehavior - leader (Leader) :- Switching from behavior Leader to Follower, election term: 2 10:02:45,782 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - leader: Last sync leader does not match current leader follower, need to catch up to -1 10:02:45,782 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - follower (Leader): handleAppendEntriesReply - FollowerLogInformation for leader updated: matchIndex: 0, nextIndex: 1 10:02:45,782 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader changed to follower 10:02:45,782 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - follower (Leader): Checking sendAppendEntries for follower leader: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,782 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader follower and reached 0 (of expected -1) 10:02:45,782 AM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActorLeadershipTransferCohort - leader: Successfully transferred leadership to follower in 523.8 ms 10:02:45,782 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - leader: leader transfer succeeded after change to non-voting 10:02:45,782 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - leader: Lagging 0 entries behind leader follower and reached 0 (of expected -1) [WARN] [07/01/2025 10:02:45.783] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=false] [WARN] [07/01/2025 10:02:45.783] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/leader168] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=leader, initialSyncDone=true] 10:02:45,805 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeLeaderToNonVoting ending 10:02:45,805 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower165] 10:02:45,816 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader168] 10:02:45,816 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,817 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,817 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector169] 10:02:45,817 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector170#-1004671087] 10:02:45,817 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower166] 10:02:45,817 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 10:02:45,817 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 10:02:45,818 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector171#802182869] 10:02:45,818 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2167] 10:02:45,818 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 10:02:45,818 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 10:02:45,819 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState starting [WARN] [07/01/2025 10:02:45.820] [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@45f382e9 10:02:45,821 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:45,821 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: started executor 10:02:45,821 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: started executor 10:02:45,821 AM [main] [INFO] RaftActorVotingConfigSupportTest - testOnApplyState ending 10:02:45,821 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower172] 10:02:45,822 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6649706844116416324/leader/TermInfo.properties does not exist 10:02:45,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 10:02:45,823 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 10:02:45,825 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 10:02:45,825 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 10:02:45,825 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@32cb5729 10:02:45,832 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader173] 10:02:45,832 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,832 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,835 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer starting [WARN] [07/01/2025 10:02:45.836] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader177]: org.opendaylight.controller.cluster.common.actor.Monitor@79cf6511 10:02:45,837 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:45,838 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:45,838 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:45,838 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: started executor 10:02:45,839 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/leader/TermInfo.properties does not exist 10:02:45,839 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: no eligible files found 10:02:45,839 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 10:02:45.841] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower175]: org.opendaylight.controller.cluster.common.actor.Monitor@1f4e3ae7 10:02:45,841 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 10:02:45,841 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 10:02:45,842 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 10:02:45,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:45,842 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:45,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@11fc4290 10:02:45,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower, downNode] 10:02:45,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:02:45,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [07/01/2025 10:02:45.842] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower2176] received dead letter from TestActor[pekko://test/user/leader177]: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 10:02:45,842 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/follower/TermInfo.properties does not exist 10:02:45,842 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:02:45,842 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: no eligible files found 10:02:45,842 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 [WARN] [07/01/2025 10:02:45.843] [test-pekko.actor.default-dispatcher-17] [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 10:02:45.844] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2176]: org.opendaylight.controller.cluster.common.actor.Monitor@7843b414 10:02:45,844 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 10:02:45,844 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 10:02:45,844 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@30d72fa0 10:02:45,845 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 10:02:45,845 AM [test-pekko.actor.default-dispatcher-18] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 10:02:45,845 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower2: started executor 10:02:45,845 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower2: started executor 10:02:45,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/follower2/TermInfo.properties does not exist 10:02:45,846 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: no eligible files found 10:02:45,846 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:02:45,847 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 10:02:45,847 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 10:02:45,847 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 [WARN] [07/01/2025 10:02:45.847] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower175] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 10:02:45,847 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:02:45,848 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 10:02:45,848 AM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 10:02:45,848 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@66bd65a 10:02:45,859 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 10:02:45,859 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:02:45,859 AM [test-pekko.actor.default-dispatcher-18] [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]]} 10:02:45,859 AM [test-pekko.actor.default-dispatcher-18] [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} 10:02:45,859 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=c4fc58b1-277e-4e43-aa7e-edc3773b1bd3}, logIndex: 0, isSendImmediate: true 10:02:45,859 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:45,859 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,859 AM [leader-%d828956] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/leader/snapshot-000000006863B245-333BFAC8.tmp 10:02:45,859 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,859 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation RemoveServer{serverId='follower'} 10:02:45,859 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - follower2 (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term [WARN] [07/01/2025 10:02:45.860] [test-pekko.actor.default-dispatcher-18] [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==[]} 10:02:45,861 AM [leader-%d828956] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/leader/snapshot-000000006863B245-333BFAC8.v1 10:02:45,861 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 10:02:45,861 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 10:02:45,861 AM [leader-%d828956] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/leader/snapshot-000000006863B245-333BFAC8.v1 10:02:45,861 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 10:02:45,861 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,861 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 10:02:45,861 AM [leader-%d828956] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/leader/TermInfo.properties [WARN] [07/01/2025 10:02:45.862] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 10:02:45,861 AM [test-pekko.actor.default-dispatcher-18] [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}]} 10:02:45,862 AM [leader-%d828956] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.859568840Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/leader/snapshot-000000006863B245-333BFAC8.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:45,862 AM [leader-%d828956] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:45,862 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}]} 10:02:45,862 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 10:02:45,862 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:02:45,862 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]]} 10:02:45,862 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:45,862 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} 10:02:45,862 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/follower2/snapshot-000000006863B245-33658ECD.tmp 10:02:45,862 AM [test-pekko.actor.default-dispatcher-18] [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} 10:02:45,865 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/follower2/snapshot-000000006863B245-33658ECD.v1 10:02:45,865 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/follower2/snapshot-000000006863B245-33658ECD.v1 10:02:45,865 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/follower2/TermInfo.properties 10:02:45,866 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.862293709Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest18391399378781257512/follower2/snapshot-000000006863B245-33658ECD.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:45,866 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} 10:02:45,866 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]] 10:02:45,866 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - follower2 (Follower): Log size is now 1 10:02:45,866 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} 10:02:45,866 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:02:45,866 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 10:02:45,866 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 10:02:45,866 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 10:02:45,866 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 10:02:45,866 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]]} 10:02:45,866 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 10:02:45.866] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/follower2176] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 10:02:45,866 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 10:02:45,866 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 10:02:45,866 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:45,866 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:02:45,866 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 10:02:45,866 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 10:02:45,866 AM [test-pekko.actor.default-dispatcher-11] [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 10:02:45.866] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower175] unhandled message from TestActor[pekko://test/user/leader177]: ServerRemoved [serverId=follower] 10:02:45,910 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServer ending 10:02:45,910 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower174] 10:02:45,921 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader177] 10:02:45,921 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,922 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,922 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector178] 10:02:45,922 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector179#1139726211] 10:02:45,923 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower175] 10:02:45,923 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 10:02:45,923 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 10:02:45,923 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector180#-2047935487] 10:02:45,923 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2176] 10:02:45,923 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 10:02:45,923 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 10:02:45,926 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader starting [WARN] [07/01/2025 10:02:45.927] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server183]: org.opendaylight.controller.cluster.common.actor.Monitor@6b65b480 10:02:45,928 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 10:02:45,928 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 10:02:45,928 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: started executor 10:02:45,930 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10603072620042798421/new-server/TermInfo.properties does not exist 10:02:45,930 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: no eligible files found 10:02:45,930 AM [test-pekko.actor.default-dispatcher-18] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:02:45,932 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 10:02:45,932 AM [test-pekko.actor.default-dispatcher-18] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 10:02:45,932 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@650b430b 10:02:45,933 AM [test-pekko.actor.default-dispatcher-18] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 10:02:45.933] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader184]: org.opendaylight.controller.cluster.common.actor.Monitor@3965c8a5 10:02:45,934 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:45,934 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 10:02:45,934 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 10:02:45,935 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10603072620042798421/leader/TermInfo.properties does not exist 10:02:45,935 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - leader: no eligible files found 10:02:45,935 AM [test-pekko.actor.default-dispatcher-18] [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 10:02:45,937 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=0, votedFor=null 10:02:45,937 AM [test-pekko.actor.default-dispatcher-18] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=0} 10:02:45,937 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7026a7e7 10:02:45,948 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server183, votingMember=true], state: Idle 10:02:45,948 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorVotingConfigSupport - leader: No leader - returning NO_LEADER reply 10:02:45,950 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithNoLeader ending 10:02:45,950 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower181] 10:02:45,950 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector182#-802155216] 10:02:45,951 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server183] 10:02:45,951 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:45,951 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:45,951 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader184] 10:02:45,951 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,951 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:45,953 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus starting [WARN] [07/01/2025 10:02:45.953] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader188]: org.opendaylight.controller.cluster.common.actor.Monitor@74e2a006 10:02:45,954 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:45,954 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:45,954 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 10:02:45,954 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - leader: started executor 10:02:45,955 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/TermInfo.properties does not exist 10:02:45,955 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - leader: no eligible files found 10:02:45,955 AM [test-pekko.actor.default-dispatcher-18] [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 10:02:45.957] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower186]: org.opendaylight.controller.cluster.common.actor.Monitor@14ef5e02 10:02:45,957 AM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 10:02:45,957 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: started executor 10:02:45,957 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - follower: started executor 10:02:45,958 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:45,958 AM [test-pekko.actor.default-dispatcher-18] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:45,958 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@e90f59 10:02:45,958 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower2, follower] 10:02:45,958 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:02:45,958 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/TermInfo.properties does not exist 10:02:45,958 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: no eligible files found 10:02:45,958 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 [WARN] [07/01/2025 10:02:45.959] [test-pekko.actor.default-dispatcher-16] [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 10:02:45.960] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower2187]: org.opendaylight.controller.cluster.common.actor.Monitor@29af525 10:02:45,960 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - follower2: Starting recovery with journal batch size 1000 10:02:45,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 10:02:45,960 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 10:02:45,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@46c58bac 10:02:45,960 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: started executor 10:02:45,960 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:02:45,960 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower2: started executor 10:02:45,961 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 10:02:45,962 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/TermInfo.properties does not exist 10:02:45,962 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower2: no eligible files found 10:02:45,962 AM [test-pekko.actor.default-dispatcher-13] [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 10:02:45,963 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 10:02:45,963 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 10:02:45.963] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 10:02:45,963 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 10:02:45,963 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:02:45,964 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=0, votedFor=null 10:02:45,964 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - follower2: Local TermInfo store seeded with TermInfo{term=0} 10:02:45,964 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - follower2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@17646ff2 10:02:45,971 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]], state: Idle 10:02:45,971 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 10:02:45,971 AM [test-pekko.actor.default-dispatcher-18] [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]] 10:02:45,971 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 10:02:45,971 AM [test-pekko.actor.default-dispatcher-18] [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]]} 10:02:45,972 AM [test-pekko.actor.default-dispatcher-18] [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} 10:02:45,972 AM [leader-%d743934] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/snapshot-000000006863B245-39F1803D.tmp 10:02:45,972 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=40118b34-9137-4ce7-b7a8-dbeeb076443d}, logIndex: 0, isSendImmediate: true 10:02:45,972 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 0 10:02:45,972 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from -1 to 0 10:02:45,972 AM [test-pekko.actor.default-dispatcher-18] [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]]} 10:02:45,972 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,972 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 10:02:45,973 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,973 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower 10:02:45,973 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 10:02:45,973 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]] 10:02:45,973 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 10:02:45,973 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:02:45,973 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:02:45,973 AM [test-pekko.actor.default-dispatcher-13] [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]]} 10:02:45,973 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=0, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 10:02:45,973 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/snapshot-000000006863B245-3A05B6AB.tmp 10:02:45,973 AM [test-pekko.actor.default-dispatcher-18] [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 10:02:45,974 AM [leader-%d743934] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/snapshot-000000006863B245-39F1803D.v1 10:02:45,974 AM [leader-%d743934] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/snapshot-000000006863B245-39F1803D.v1 10:02:45,974 AM [leader-%d743934] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/TermInfo.properties 10:02:45,974 AM [leader-%d743934] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.972128317Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/snapshot-000000006863B245-39F1803D.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:45,974 AM [leader-%d743934] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:45,975 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:45,975 AM [test-pekko.actor.default-dispatcher-18] [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} 10:02:45,975 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/snapshot-000000006863B245-3A05B6AB.v1 10:02:45,975 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - follower2: Set currentTerm=1, votedFor=null 10:02:45,975 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 10:02:45,975 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/snapshot-000000006863B245-3A05B6AB.v1 10:02:45,975 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/TermInfo.properties 10:02:45,975 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 10:02:45,975 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,975 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 0 is present for follower follower2 10:02:45,975 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.973452971Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/snapshot-000000006863B245-3A05B6AB.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:45,975 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=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}]} 10:02:45,975 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:45,975 AM [test-pekko.actor.default-dispatcher-13] [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]] 10:02:45,975 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - follower (Follower): Log size is now 1 10:02:45,975 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - follower (Follower): Commit index set to 0 10:02:45,975 AM [test-pekko.actor.default-dispatcher-13] [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} [WARN] [07/01/2025 10:02:45.975] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=false] 10:02:45,976 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:45,976 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:02:45,976 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:02:45,976 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 0 10:02:45,976 AM [test-pekko.actor.default-dispatcher-13] [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]]} 10:02:45,976 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 10:02:45,976 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}]} 10:02:45,976 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 10:02:45,976 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:02:45,976 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:45,976 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]]} 10:02:45,976 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} 10:02:45,976 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/snapshot-000000006863B245-3A30C338.tmp [WARN] [07/01/2025 10:02:45.976] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower186] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=true] 10:02:45,977 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/snapshot-000000006863B245-3A30C338.v1 10:02:45,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/snapshot-000000006863B245-3A30C338.v1 10:02:45,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/TermInfo.properties 10:02:45,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.976274232Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/snapshot-000000006863B245-3A30C338.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:45,978 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} 10:02:45,978 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]] 10:02:45,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Log size is now 1 10:02:45,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): Commit index set to 0 10:02:45,978 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} 10:02:45,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:02:45,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:02:45,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 0 10:02:45,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from -1 to 0 10:02:45,978 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]]} 10:02:45,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 10:02:45,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [07/01/2025 10:02:45.979] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower2187] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower2, initialSyncDone=true] 10:02:46,24 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]], state: Idle 10:02:46,24 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 10:02:46,24 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PeerInfos - leader: Updated server config: isVoting: true, peers: [PeerInfo [id=follower2, address=pekko://test/user/follower2187, votingState=NON_VOTING], PeerInfo [id=follower, address=pekko://test/user/follower186, votingState=VOTING]] 10:02:46,24 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:02:46,24 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Persist data index=1 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:46,24 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 10:02:46,24 AM [leader-%d743935] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/snapshot-000000006863B246-01773704.tmp 10:02:46,25 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=ad1fea2b-d994-4ea4-b3ea-eef7e6058bec}, logIndex: 1, isSendImmediate: true 10:02:46,25 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 1 10:02:46,25 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 0 to 1 10:02:46,25 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Applying state for log index 1 data VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:46,25 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:02:46,25 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower2 10:02:46,25 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 10:02:46,26 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:02:46,26 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 1 is present for follower follower 10:02:46,26 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 10:02:46,26 AM [test-pekko.actor.default-dispatcher-18] [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}]} 10:02:46,26 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}]} 10:02:46,26 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower2 (Follower): Number of entries to be appended = 1 10:02:46,26 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:02:46,26 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:02:46,26 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:02:46,26 AM [test-pekko.actor.default-dispatcher-18] [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]]} 10:02:46,26 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]]} 10:02:46,26 AM [test-pekko.actor.default-dispatcher-18] [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} 10:02:46,26 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} 10:02:46,26 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/snapshot-000000006863B246-0192E925.tmp 10:02:46,26 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower2: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/snapshot-000000006863B246-0192BD82.tmp 10:02:46,26 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]] 10:02:46,27 AM [leader-%d743935] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/snapshot-000000006863B246-01773704.v1 10:02:46,27 AM [leader-%d743935] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/snapshot-000000006863B246-01773704.v1 10:02:46,27 AM [leader-%d743935] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/snapshot-000000006863B245-39F1803D.v1 10:02:46,27 AM [leader-%d743935] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/TermInfo.properties 10:02:46,27 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 10:02:46,27 AM [leader-%d743935] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.972128317Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/snapshot-000000006863B245-39F1803D.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:46,27 AM [leader-%d743935] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:46.024590084Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/leader/snapshot-000000006863B246-01773704.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:46,27 AM [leader-%d743935] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:46,27 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:46,27 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=1, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 10:02:46,27 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 0 for term 1 10:02:46,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/snapshot-000000006863B246-0192E925.v1 10:02:46,28 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower2: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/snapshot-000000006863B246-0192BD82.v1 10:02:46,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/snapshot-000000006863B245-3A05B6AB.v1 10:02:46,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/snapshot-000000006863B246-0192E925.v1 10:02:46,28 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/snapshot-000000006863B246-0192BD82.v1 10:02:46,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/TermInfo.properties 10:02:46,28 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower2: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/snapshot-000000006863B245-3A30C338.v1 10:02:46,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.973452971Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/snapshot-000000006863B245-3A05B6AB.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:46,28 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower2: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/TermInfo.properties 10:02:46,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - follower: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:46.026405157Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower/snapshot-000000006863B246-0192E925.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:46,28 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} 10:02:46,28 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]] 10:02:46,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Log size is now 2 10:02:46,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Commit index set to 1 10:02:46,28 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} 10:02:46,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 10:02:46,28 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower2: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:45.976274232Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/snapshot-000000006863B245-3A30C338.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:46,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:02:46,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:02:46,28 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 10:02:46,28 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower2: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:46.026393986Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest7906093126418146021/follower2/snapshot-000000006863B246-0192BD82.v1, size=96, entryCompress=NONE, stateCompress=NONE} 10:02:46,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 0 to 1 10:02:46,28 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]]} 10:02:46,28 AM [test-pekko.actor.default-dispatcher-18] [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} 10:02:46,28 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:02:46,28 AM [test-pekko.actor.default-dispatcher-18] [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]] 10:02:46,28 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower2 (Follower): Log size is now 2 10:02:46,28 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower2 (Follower): Commit index set to 1 10:02:46,29 AM [test-pekko.actor.default-dispatcher-18] [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} 10:02:46,29 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 10:02:46,29 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:02:46,29 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 1, nextIndex: 2 10:02:46,29 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorBehavior - follower2 (Follower): Setting last applied to 1 10:02:46,29 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractReplicatedLog - follower2: Moving last applied index from 0 to 1 10:02:46,29 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:02:46,29 AM [test-pekko.actor.default-dispatcher-18] [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]]} 10:02:46,78 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeServersVotingStatus ending 10:02:46,78 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower185] 10:02:46,89 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader188] 10:02:46,89 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:46,90 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:46,90 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector189] 10:02:46,90 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector190#-1510300147] 10:02:46,91 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower186] 10:02:46,91 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 10:02:46,91 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 10:02:46,91 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector191#84189949] 10:02:46,91 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower2187] 10:02:46,91 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 10:02:46,91 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower2: stopped executor with 0 remaining tasks 10:02:46,95 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower starting [WARN] [07/01/2025 10:02:46.096] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server194]: org.opendaylight.controller.cluster.common.actor.Monitor@605aad0f 10:02:46,97 AM [test-pekko.actor.default-dispatcher-18] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 10:02:46,97 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: started executor 10:02:46,98 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: started executor 10:02:46,99 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/TermInfo.properties does not exist 10:02:46,99 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - new-server: no eligible files found 10:02:46,99 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 10:02:46,101 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 10:02:46,101 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 10:02:46,101 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@8653c41 10:02:46,102 AM [main] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from -1 to 2 10:02:46,102 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 10:02:46.102] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader195]: org.opendaylight.controller.cluster.common.actor.Monitor@54c58056 10:02:46,103 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 10:02:46,103 AM [test-pekko.actor.default-dispatcher-18] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:46,103 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - leader: started executor 10:02:46,103 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - leader: started executor 10:02:46,104 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/TermInfo.properties does not exist 10:02:46,104 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: no eligible files found 10:02:46,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 10:02:46,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor=leader 10:02:46,106 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=leader} 10:02:46,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4650337d 10:02:46,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 10:02:46,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 10:02:46,106 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 10:02:46,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 10:02:46,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 1 for term 1 10:02:46,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 10:02:46,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 10:02:46,106 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 1 for term 1 10:02:46,165 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true], state: Idle 10:02:46,165 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 10:02:46,165 AM [test-pekko.actor.default-dispatcher-18] [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 10:02:46,165 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SnapshotManager - leader: lastSequenceNumber prior to capture: -1 10:02:46,165 AM [test-pekko.actor.default-dispatcher-18] [INFO] MockRaftActor - leader: support() called 10:02:46,166 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating capture snapshot for new server new-server 10:02:46,166 AM [leader-%d391905] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:46,166 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:46,166 AM [test-pekko.actor.default-dispatcher-18] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 10:02:46,166 AM [test-pekko.actor.default-dispatcher-18] [INFO] MockRaftActor - leader: support() called 10:02:46,167 AM [test-pekko.actor.default-dispatcher-18] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 10:02:46,167 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): sendInstallSnapshot 10:02:46,167 AM [leader-%d391906] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/snapshot-000000006863B246-09F68470.tmp 10:02:46,167 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 157 bytes, total chunks to send: 1 10:02:46,167 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=157, offset=0, size=157, hashCode=1546036366 10:02:46,167 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): next snapshot chunk size for follower new-server: 157 10:02:46,167 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractLeader - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server194), Chunk: 1/1 10:02:46,167 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - new-server (Follower): Term 1 in "InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]}" message is greater than follower's term 0 - updating term 10:02:46,171 AM [leader-%d391906] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/snapshot-000000006863B246-09F68470.v1 10:02:46,171 AM [leader-%d391906] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/snapshot-000000006863B246-09F68470.v1 10:02:46,172 AM [leader-%d391906] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/TermInfo.properties 10:02:46,172 AM [leader-%d391906] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:46.167150704Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/snapshot-000000006863B246-09F68470.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:46,172 AM [leader-%d391906] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:46,172 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:46,172 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 10:02:46,172 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=157, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 10:02:46,172 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 2 10:02:46,172 AM [test-pekko.actor.default-dispatcher-18] [INFO] SnapshotManager - leader: snapshot is durable as of 2025-07-01T10:02:46.167150704Z 10:02:46,172 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SnapshotManager - leader: Snapshot success - sequence number: -1 10:02:46,172 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotTracker - new-server (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:02:46,172 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - new-server (Follower): Snapshot received from leader: leader 10:02:46,172 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorSnapshotMessageSupport - leader: SnapshotComplete received 10:02:46,172 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - new-server: Applying snapshot on follower: PlainSnapshotSource{io=MemoryStreamSource{size=157}} 10:02:46,172 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called [WARN] [07/01/2025 10:02:46.172] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 10:02:46,173 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: Converted InstallSnapshot from leader: leader to state 10:02:46,173 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - new-server: lastSequenceNumber prior to persisting applied snapshot: -1 10:02:46,173 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - new-server: support() called 10:02:46,173 AM [new-server-%d609627] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/snapshot-000000006863B246-0A57B672.tmp 10:02:46,175 AM [new-server-%d609627] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/snapshot-000000006863B246-0A57B672.v1 10:02:46,175 AM [new-server-%d609627] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/snapshot-000000006863B246-0A57B672.v1 10:02:46,175 AM [new-server-%d609627] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/TermInfo.properties 10:02:46,175 AM [new-server-%d609627] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:46.173520498Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/snapshot-000000006863B246-0A57B672.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:46,176 AM [new-server-%d609627] [DEBUG] RaftStorageCompleter - new-server: 1 completion(s) pending 10:02:46,176 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorageCompleter - new-server: running 1 completion(s) 10:02:46,176 AM [test-pekko.actor.default-dispatcher-18] [INFO] SnapshotManager - new-server: snapshot is durable as of 2025-07-01T10:02:46.173520498Z 10:02:46,176 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SnapshotManager - new-server: Snapshot success - sequence number: -1 10:02:46,176 AM [test-pekko.actor.default-dispatcher-18] [INFO] MockRaftActor - new-server: support() called 10:02:46,176 AM [test-pekko.actor.default-dispatcher-18] [INFO] MockRaftActor - new-server: applySnapshot called 10:02:46,176 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 10:02:46,176 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorSnapshotMessageSupport - new-server: SnapshotComplete received 10:02:46,176 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=new-server, chunkIndex=1, success=true} 10:02:46,176 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractLeader - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 2, nextIndex set to 3 10:02:46,176 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - Sent message UnInitializedFollowerSnapshotReply to self 10:02:46,176 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 10:02:46,176 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:02:46,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Persist data index=3 term=1 command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:46,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - leader: Append log entry and persist JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 10:02:46,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=f4b78a7a-e4d1-47a0-be64-7cfe709e55f0}, logIndex: 3, isSendImmediate: true 10:02:46,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:46,177 AM [leader-%d391907] [DEBUG] RaftStorage - leader: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/snapshot-000000006863B246-0A9003AC.tmp 10:02:46,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 10:02:46,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower follower 10:02:46,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower follower: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 10:02:46,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 10:02:46,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): sendAppendEntries: 3 is present for follower new-server 10:02:46,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 10:02:46,177 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server194, votingMember=true] 10:02:46,177 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true}]} 10:02:46,177 AM [test-pekko.actor.default-dispatcher-18] [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}]} 10:02:46,177 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:02:46,177 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - new-server (Follower): Number of entries to be appended = 1 10:02:46,177 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 10:02:46,177 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - new-server (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 10:02:46,177 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:46,177 AM [test-pekko.actor.default-dispatcher-18] [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]]} 10:02:46,177 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower: Append log entry and persist JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=true} 10:02:46,178 AM [test-pekko.actor.default-dispatcher-18] [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} 10:02:46,178 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - follower: persist complete JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 10:02:46,178 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/snapshot-000000006863B246-0A9D5102.tmp 10:02:46,178 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PeerInfos - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=, votingState=VOTING], PeerInfo [id=new-server, address=null, votingState=VOTING]] 10:02:46,178 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): Log size is now 2 10:02:46,178 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=3, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5} 10:02:46,178 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 10:02:46,178 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 10:02:46,178 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 10:02:46,179 AM [leader-%d391907] [DEBUG] RaftStorage - leader: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/snapshot-000000006863B246-0A9003AC.v1 10:02:46,180 AM [leader-%d391907] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/snapshot-000000006863B246-0A9003AC.v1 10:02:46,180 AM [leader-%d391907] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/snapshot-000000006863B246-09F68470.v1 10:02:46,180 AM [leader-%d391907] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/TermInfo.properties 10:02:46,180 AM [leader-%d391907] [DEBUG] RaftStorage - leader: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:46.167150704Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/snapshot-000000006863B246-09F68470.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:46,180 AM [leader-%d391907] [DEBUG] RaftStorage - leader: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:46.177210284Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/snapshot-000000006863B246-0A9003AC.v1, size=97, entryCompress=NONE, stateCompress=NONE} 10:02:46,180 AM [leader-%d391907] [DEBUG] RaftStorageCompleter - leader: 1 completion(s) pending 10:02:46,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - leader: running 1 completion(s) 10:02:46,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - leader: persist complete JournaledLogEntry{index=3, term=1, command=VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]}, pending=false} 10:02:46,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 10:02:46,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - leader (Leader): Setting last applied to 3 10:02:46,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - leader: Moving last applied index from 2 to 3 10:02:46,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - leader: Applying state for log index 3 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:46,180 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - leader: fakeSnapshot purging log to 2 for term 1 10:02:46,180 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/snapshot-000000006863B246-0A9D5102.v1 10:02:46,180 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorVotingConfigSupport - leader: VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} has been successfully replicated to a majority of followers 10:02:46,180 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/snapshot-000000006863B246-0A57B672.v1 10:02:46,180 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/TermInfo.properties 10:02:46,180 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/snapshot-000000006863B246-0A9D5102.v1 10:02:46,181 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:46.173520498Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/snapshot-000000006863B246-0A57B672.v1, size=64, entryCompress=NONE, stateCompress=NONE} 10:02:46,181 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:46.178082050Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/snapshot-000000006863B246-0A9D5102.v1, size=97, entryCompress=NONE, stateCompress=NONE} 10:02:46,181 AM [test-pekko.actor.default-dispatcher-18] [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} 10:02:46,181 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PeerInfos - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=follower, address=null, votingState=VOTING]] 10:02:46,181 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - new-server (Follower): Log size is now 1 10:02:46,181 AM [test-pekko.actor.default-dispatcher-18] [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} 10:02:46,181 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 2) 10:02:46,181 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 3, nextIndex: 4 [WARN] [07/01/2025 10:02:46.181] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/new-server194] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=true] 10:02:46,181 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 10:02:46,181 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): Commit index set to 3 10:02:46,181 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 10:02:46,181 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 10:02:46,181 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - new-server (Follower): Setting last applied to 3 10:02:46,181 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - new-server: Moving last applied index from 2 to 3 10:02:46,181 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - new-server: Applying state for log index 3 data VotingConfig{serverInfo=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]} 10:02:46,342 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 10:02:46,342 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower (Follower): Commit index set to 3 10:02:46,342 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 10:02:46,342 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 10:02:46,342 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:02:46,342 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractReplicatedLog - follower: Moving last applied index from 2 to 3 10:02:46,342 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 2 for term 1 10:02:46,367 AM [main] [DEBUG] RaftStorage - leader: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/snapshot-000000006863B246-0A9003AC.v1 10:02:46,367 AM [main] [DEBUG] RaftStorage - leader: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/TermInfo.properties 10:02:46,367 AM [main] [DEBUG] RaftStorage - leader: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:46.177210284Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/leader/snapshot-000000006863B246-0A9003AC.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 10:02:46,368 AM [main] [DEBUG] RaftStorage - new-server: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/TermInfo.properties 10:02:46,368 AM [main] [DEBUG] RaftStorage - new-server: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/snapshot-000000006863B246-0A9D5102.v1 10:02:46,368 AM [main] [DEBUG] RaftStorage - new-server: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-01T10:02:46.178082050Z, file=/tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest5516263275091316436/new-server/snapshot-000000006863B246-0A9D5102.v1, size=97, entryCompress=NONE, stateCompress=NONE} as the latest file 10:02:46,368 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingFollower ending 10:02:46,368 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower192] 10:02:46,379 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector193#-698504564] 10:02:46,379 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server194] 10:02:46,380 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:46,380 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:46,380 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader195] 10:02:46,380 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:46,380 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:46,381 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leaderCollector196] 10:02:46,384 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader starting [WARN] [07/01/2025 10:02:46.385] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server199]: org.opendaylight.controller.cluster.common.actor.Monitor@1acccbc1 10:02:46,386 AM [test-pekko.actor.default-dispatcher-18] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 10:02:46,386 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: started executor 10:02:46,386 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: started executor 10:02:46,388 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4607423446225835981/new-server/TermInfo.properties does not exist 10:02:46,388 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: no eligible files found 10:02:46,388 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 10:02:46,390 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 10:02:46,390 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 10:02:46,390 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2d91d268 10:02:46,391 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 10:02:46.392] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower201]: org.opendaylight.controller.cluster.common.actor.Monitor@3a6f3eb7 10:02:46,393 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 10:02:46,393 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 10:02:46,393 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 10:02:46,394 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest4607423446225835981/follower/TermInfo.properties does not exist 10:02:46,394 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - follower: no eligible files found 10:02:46,394 AM [test-pekko.actor.default-dispatcher-18] [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 10:02:46,397 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 10:02:46,397 AM [test-pekko.actor.default-dispatcher-18] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 10:02:46,397 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7ebb0997 10:02:46,397 AM [test-pekko.actor.default-dispatcher-18] [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 10:02:46,399 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 10:02:46,400 AM [test-pekko.actor.default-dispatcher-18] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 10:02:46,400 AM [test-pekko.actor.default-dispatcher-18] [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} 10:02:46,400 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:02:46,400 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - follower: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server199, votingMember=true], state: Idle 10:02:46,400 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader200 10:02:46,400 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader200)] [WARN] [07/01/2025 10:02:46.400] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower201] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 10:02:46,448 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerForwardedToLeader ending 10:02:46,448 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower197] 10:02:46,449 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector198#1591843560] 10:02:46,449 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server199] 10:02:46,450 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:46,450 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:46,450 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader200#941710199] 10:02:46,450 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower201] 10:02:46,450 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 10:02:46,450 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 10:02:46,453 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader starting [WARN] [07/01/2025 10:02:46.455] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower204]: org.opendaylight.controller.cluster.common.actor.Monitor@30e07fa2 10:02:46,455 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - follower: Starting recovery with journal batch size 1000 10:02:46,456 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 10:02:46,456 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - follower: started executor 10:02:46,457 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest10995852704936568014/follower/TermInfo.properties does not exist 10:02:46,457 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: no eligible files found 10:02:46,457 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 10:02:46,462 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=0, votedFor=null 10:02:46,462 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - follower: Local TermInfo store seeded with TermInfo{term=0} 10:02:46,462 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - follower: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5604ba69 10:02:46,462 AM [test-pekko.actor.default-dispatcher-11] [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 10:02:46,464 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - follower: Set currentTerm=1, votedFor=null 10:02:46,464 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 10:02:46,464 AM [test-pekko.actor.default-dispatcher-11] [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} 10:02:46,464 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 10:02:46,464 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - follower: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 10:02:46,465 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - follower: getLeaderAddress leaderId = leader peerAddress = pekko://test/user/leader203 10:02:46,465 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(pekko://test/), Path(/user/leader203)] [WARN] [07/01/2025 10:02:46.465] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower204] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=follower, initialSyncDone=false] 10:02:46,513 AM [main] [INFO] RaftActorVotingConfigSupportTest - testRemoveServerForwardToLeader ending 10:02:46,513 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower202] 10:02:46,524 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader203] 10:02:46,525 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower204] 10:02:46,525 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 10:02:46,525 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - follower: stopped executor with 0 remaining tasks 10:02:46,527 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer starting [WARN] [07/01/2025 10:02:46.528] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader206]: org.opendaylight.controller.cluster.common.actor.Monitor@6692c4a7 10:02:46,529 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:46,529 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:46,529 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 10:02:46,529 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: started executor 10:02:46,531 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest11502091887987650496/leader/TermInfo.properties does not exist 10:02:46,531 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: no eligible files found 10:02:46,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 10:02:46,534 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:46,534 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:46,534 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@21820597 10:02:46,534 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [follower] 10:02:46,534 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:02:46,540 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true], state: Idle 10:02:46,540 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 10:02:46,540 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - leader: Returning ALREADY_EXISTS for operation AddServer [newServerId=follower, newServerAddress=pekko://test/user/follower205, votingMember=true] 10:02:46,540 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithExistingServer ending 10:02:46,540 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower205] 10:02:46,551 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader206] 10:02:46,551 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:46,552 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:46,554 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout starting [WARN] [07/01/2025 10:02:46.556] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@51decd44 10:02:46,557 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 10:02:46,557 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: started executor 10:02:46,557 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 10:02:46.558] [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@32f5d172 10:02:46,559 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6155036716728504459/node1/TermInfo.properties does not exist 10:02:46,559 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - node1: no eligible files found 10:02:46,559 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 10:02:46,559 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 10:02:46,559 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 10:02:46,559 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 10:02:46,559 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 10:02:46,560 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: started executor 10:02:46,560 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: started executor 10:02:46,562 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=node1 10:02:46,562 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 10:02:46,562 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6df758f3 10:02:46,562 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest6155036716728504459/node2/TermInfo.properties does not exist 10:02:46,562 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - node2: no eligible files found 10:02:46,562 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 10:02:46,562 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 10:02:46,562 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 10:02:46,562 AM [test-pekko.actor.default-dispatcher-18] [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 10:02:46,564 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=node1 10:02:46,564 AM [test-pekko.actor.default-dispatcher-18] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=node1} 10:02:46,564 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4996f396 10:02:46,570 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]], state: Idle 10:02:46,570 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 10:02:46,570 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 10:02:46,570 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PeerInfos - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 10:02:46,571 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:46,571 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 10:02:46,571 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 10:02:46,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 10:02:46,573 AM [test-pekko.actor.default-dispatcher-13] [INFO] Candidate - node1 (Candidate): Starting new election term 2 10:02:46,573 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 10:02:46,573 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:02:46,681 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 10:02:46,681 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]] 10:02:46,682 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 10:02:46,682 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 10:02:46,682 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout ending 10:02:46,682 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower207] 10:02:46,693 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector208#1568286894] 10:02:46,693 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 10:02:46,694 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 10:02:46,694 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 10:02:46,695 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector209#-741079943] 10:02:46,698 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 10:02:46,698 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 10:02:46,698 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 10:02:46,701 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader starting [WARN] [07/01/2025 10:02:46.703] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@64f564b5 10:02:46,704 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - node1: Starting recovery with journal batch size 1000 10:02:46,704 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - node1: started executor 10:02:46,704 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - node1: started executor [WARN] [07/01/2025 10:02:46.706] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@4f1f5604 10:02:46,706 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3756730991988913195/node1/TermInfo.properties does not exist 10:02:46,706 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - node1: no eligible files found 10:02:46,707 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 10:02:46,707 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 163 10:02:46,707 AM [test-pekko.actor.default-dispatcher-13] [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]] 10:02:46,707 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - node1: Received apply journal entries for recovery, applying to state: 0 to 0 10:02:46,707 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from -1 to 0 10:02:46,707 AM [test-pekko.actor.default-dispatcher-18] [INFO] RaftActor - node2: Starting recovery with journal batch size 1000 10:02:46,707 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - node1: Recovery completed in 57.00 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 10:02:46,707 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - node2: started executor 10:02:46,707 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - node2: started executor 10:02:46,709 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest3756730991988913195/node2/TermInfo.properties does not exist 10:02:46,709 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - node2: no eligible files found 10:02:46,709 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 10:02:46,710 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 163 10:02:46,710 AM [test-pekko.actor.default-dispatcher-6] [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]] 10:02:46,710 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - node2: Received apply journal entries for recovery, applying to state: 0 to 0 10:02:46,710 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from -1 to 0 10:02:46,710 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node2: Recovery completed in 62.39 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 10:02:46,710 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=1, votedFor=downNode1 10:02:46,710 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - node1: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode1} 10:02:46,710 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - node1: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@353448c5 10:02:46,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=1, votedFor=downNode2 10:02:46,712 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - node2: Local TermInfo store seeded with TermInfo{term=1, votedFor=downNode2} 10:02:46,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node2: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6212cc20 10:02:46,723 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 10:02:46,723 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 10:02:46,723 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 10:02:46,723 AM [test-pekko.actor.default-dispatcher-18] [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]] 10:02:46,723 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:02:46,723 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 10:02:46,723 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 10:02:46,726 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=2, votedFor=node1 10:02:46,726 AM [test-pekko.actor.default-dispatcher-18] [INFO] Candidate - node1 (Candidate): Starting new election term 2 10:02:46,726 AM [test-pekko.actor.default-dispatcher-18] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:02:47,241 AM [test-pekko.actor.default-dispatcher-18] [WARN] RaftActorVotingConfigSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 10:02:47,241 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PeerInfos - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode2, address=null, votingState=VOTING], PeerInfo [id=downNode1, address=null, votingState=VOTING]] 10:02:47,242 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 10:02:47,242 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorVotingConfigSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 10:02:47,243 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader downNode1, need to catch up to 0 [WARN] [07/01/2025 10:02:47.244] [test-pekko.actor.default-dispatcher-13] [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 10:02:47.244] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/node1] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node1, initialSyncDone=false] 10:02:47,799 AM [main] [INFO] PeerInfos - node1: Peer address for peer node2 set to pekko://test/user/node2 10:02:47,800 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 10:02:47,800 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - Initiating ChangeServersVotingStatusState 10:02:47,800 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorVotingConfigSupport - node1: Sending local ElectionTimeout to start leader election 10:02:47,800 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], PeerInfo [id=downNode2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode1, address=null, votingState=NON_VOTING]] 10:02:47,800 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - node1 (Follower): Received TimeoutNow - switching to Candidate 10:02:47,800 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node1 (Candidate): Election: Candidate has following voting peers: [node2] 10:02:47,803 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - node1: Set currentTerm=3, votedFor=node1 10:02:47,803 AM [test-pekko.actor.default-dispatcher-11] [INFO] Candidate - node1 (Candidate): Starting new election term 3 10:02:47,803 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Candidate - node1 (Candidate): Sending RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} to peer node2 10:02:47,804 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActorBehavior - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 10:02:47,804 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorBehavior - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:02:47,804 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorBehavior - node2 (Follower): Cluster state: [] 10:02:47,804 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorBehavior - node2 (Follower): Candidate in requestVote:RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} with higher term appears reachable, updating term. 10:02:47,804 AM [test-pekko.actor.default-dispatcher-18] [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 10:02:47,807 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=null 10:02:47,807 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorBehavior - node2 (Follower): In requestVote: RequestVote{term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1} - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 10:02:47,809 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - node2: Set currentTerm=3, votedFor=node1 10:02:47,809 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorBehavior - node2 (Follower): requestVote returning: RequestVoteReply{term=3, voteGranted=true} 10:02:47,809 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Candidate - node1 (Candidate): RaftRPC message received RequestVoteReply{term=3, voteGranted=true}, my term is 3 10:02:47,809 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Candidate - node1 (Candidate): handleRequestVoteReply: RequestVoteReply{term=3, voteGranted=true}, current voteCount: 1 10:02:47,809 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node1 (Leader): Election: Leader has following peers: [node2, downNode2, downNode1] 10:02:47,809 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:02:47,809 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActorBehavior - node1 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:02:47,809 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - node1: New leader node1 elected 10:02:47,809 AM [test-pekko.actor.default-dispatcher-13] [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]] 10:02:47,809 AM [test-pekko.actor.default-dispatcher-13] [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]]} 10:02:47,809 AM [test-pekko.actor.default-dispatcher-13] [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} 10:02:47,810 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node1 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=98d5f619-caa1-4d4f-ac1d-3381b9740535}, logIndex: 1, isSendImmediate: true 10:02:47,810 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:02:47,810 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - node2: Last sync leader does not match current leader node1, need to catch up to -1 10:02:47,810 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - node1: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 10:02:47,810 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - node2: Lagging -1 entries behind leader node1 and reached 0 (of expected -1) 10:02:47,810 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 0, nextIndex: 1 10:02:47,810 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:02:47,810 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 [WARN] [07/01/2025 10:02:47.810] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=false] 10:02:47,810 AM [test-pekko.actor.default-dispatcher-13] [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}]} 10:02:47,810 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - node1 (Leader): sendAppendEntries: 1 is present for follower node2 10:02:47,811 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - node2 (Follower): handleAppendEntries: AppendEntries{term=3, leaderId=node1, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=false}]} 10:02:47,811 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} 10:02:47,811 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - node2 (Follower): Number of entries to be appended = 1 [WARN] [07/01/2025 10:02:47.811] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/node2] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=node2, initialSyncDone=true] 10:02:47,811 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - node2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:02:47,811 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - node2 (Follower): Append entry to log VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]} 10:02:47,811 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] ReplicatedLogImpl - node2: Append log entry and persist JournaledLogEntry{index=1, term=3, command=VotingConfig{serverInfo=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]}, pending=false} 10:02:47,811 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PeerInfos - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=downNode2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode1, address=null, votingState=NON_VOTING], PeerInfo [id=node1, address=null, votingState=VOTING]] 10:02:47,811 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - node2 (Follower): Log size is now 2 10:02:47,811 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - node2 (Follower): handleAppendEntries returning : AppendEntriesReply{term=3, success=true, followerId=node2, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:02:47,811 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 0 (of expected -1) 10:02:47,811 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 1, nextIndex: 2 10:02:47,811 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 10:02:47,811 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - node1 (Leader): Setting last applied to 1 10:02:47,811 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - node1: Moving last applied index from 0 to 1 10:02:47,812 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]]} 10:02:47,812 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - node1: Persisting ApplyJournalEntries with index=1 10:02:47,812 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractLeader - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:02:47,812 AM [test-pekko.actor.default-dispatcher-18] [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} 10:02:47,812 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 10:02:47,812 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - node2 (Follower): Commit index set to 1 10:02:47,812 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 10:02:47,812 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] Follower - node2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:02:47,812 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActorBehavior - node2 (Follower): Setting last applied to 1 10:02:47,812 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractReplicatedLog - node2: Moving last applied index from 0 to 1 10:02:47,813 AM [test-pekko.actor.default-dispatcher-18] [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]]} 10:02:47,813 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActor - node2: Persisting ApplyJournalEntries with index=1 10:02:47,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 10:02:48,12 AM [main] [INFO] RaftActorVotingConfigSupportTest - testChangeToVotingWithNoLeader ending 10:02:48,13 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower210] 10:02:48,24 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector211#-2009220501] 10:02:48,24 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node1] 10:02:48,24 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 10:02:48,24 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - node1: stopped executor with 0 remaining tasks 10:02:48,24 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/collector212#1511375874] 10:02:48,24 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/node2] 10:02:48,25 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 10:02:48,25 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - node2: stopped executor with 0 remaining tasks 10:02:48,27 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout starting [WARN] [07/01/2025 10:02:48.028] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/new-server215]: org.opendaylight.controller.cluster.common.actor.Monitor@55209d83 10:02:48,29 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - new-server: Starting recovery with journal batch size 1000 10:02:48,29 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: started executor 10:02:48,29 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - new-server: started executor 10:02:48,31 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17020807146743733782/new-server/TermInfo.properties does not exist 10:02:48,31 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftStorage - new-server: no eligible files found 10:02:48,31 AM [test-pekko.actor.default-dispatcher-18] [INFO] PekkoRecovery - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:02:48,34 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=0, votedFor=null 10:02:48,34 AM [test-pekko.actor.default-dispatcher-18] [INFO] PekkoRecovery - new-server: Local TermInfo store seeded with TermInfo{term=0} 10:02:48,34 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] RaftActor - new-server: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@199214f6 10:02:48,35 AM [test-pekko.actor.default-dispatcher-18] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [07/01/2025 10:02:48.035] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader216]: org.opendaylight.controller.cluster.common.actor.Monitor@7488b8c6 10:02:48,36 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:48,36 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - leader: Starting recovery with journal batch size 1000 10:02:48,36 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: started executor 10:02:48,36 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: started executor 10:02:48,37 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.RaftActorVotingConfigSupportTest17020807146743733782/leader/TermInfo.properties does not exist 10:02:48,37 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - leader: no eligible files found 10:02:48,37 AM [test-pekko.actor.default-dispatcher-13] [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 10:02:48,39 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - leader: Set currentTerm=1, votedFor= 10:02:48,39 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - leader: Local TermInfo store seeded with TermInfo{term=1, votedFor=} 10:02:48,39 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - leader: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@24a35a7e 10:02:48,39 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Election: Leader has following peers: [] 10:02:48,40 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - leader: Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 10:02:48,40 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:02:48,40 AM [test-pekko.actor.default-dispatcher-13] [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] 10:02:48,40 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - leader: captured snapshot at lastSequenceNumber: -1 10:02:48,40 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - leader: Persising snapshot at EntryInfo[index=-1, term=-1]/EntryInfo[index=-1, term=-1] 10:02:48,40 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - leader: support() called 10:02:48,40 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 10:02:48,40 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:02:48,47 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true], state: Idle 10:02:48,48 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 10:02:48,48 AM [test-pekko.actor.default-dispatcher-13] [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]] 10:02:48,48 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorVotingConfigSupport - leader: Snapshot already in progress - waiting for completion 10:02:48,162 AM [test-pekko.actor.default-dispatcher-18] [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 10:02:48,165 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] PropertiesTermInfoStore - new-server: Set currentTerm=1, votedFor=null 10:02:48,165 AM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [07/01/2025 10:02:48.166] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/new-server215] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=new-server, initialSyncDone=false] 10:02:48,165 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 10:02:48,166 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractLeader - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:02:48,262 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: handleInstallSnapshotTimeout for new server new-server 10:02:48,262 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorVotingConfigSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=pekko://test/user/new-server215, votingMember=true] 10:02:48,262 AM [test-pekko.actor.default-dispatcher-6] [WARN] RaftActorVotingConfigSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 10:02:48,263 AM [main] [INFO] RaftActorVotingConfigSupportTest - testAddServerWithPriorSnapshotCompleteTimeout ending 10:02:48,263 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower213] 10:02:48,274 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/new-serverCollector214#-402926895] 10:02:48,274 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/new-server215] 10:02:48,274 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:48,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - new-server: stopped executor with 0 remaining tasks 10:02:48,275 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader216] 10:02:48,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:48,275 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - leader: stopped executor with 0 remaining tasks 10:02:48,277 AM [test-pekko.actor.default-dispatcher-13] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [07/01/2025 10:02:48.277] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 10:02:48,279 AM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.247:17355] - Exiting completed 10:02:48,279 AM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.247:17355] - Shutting down... 10:02:48,279 AM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.247:17355] - Successfully shut down [WARN] [07/01/2025 10:02:48.278] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.247:17355) [INFO] [07/01/2025 10:02:48.278] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.247:17355] - Exiting completed [INFO] [07/01/2025 10:02:48.279] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.247:17355] - Shutting down... [INFO] [07/01/2025 10:02:48.279] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.247:17355] - Successfully shut down [INFO] [07/01/2025 10:02:48.281] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.247:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [07/01/2025 10:02:48.281] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.247:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 10:02:48,281 AM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 10:02:48,281 AM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/01/2025 10:02:48.284] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.247:17355/system/remoting-terminator] Remoting shut down. 10:02:48,284 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/01/2025 10:02:48.284] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger