Skip to content

Commit

Permalink
Fix test worker hash ring
Browse files Browse the repository at this point in the history
  • Loading branch information
LuQQiu committed Mar 11, 2024
1 parent b9d217f commit 0022f6b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/client/test_worker_hash_ring.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
import os

from alluxiofs.client.config import AlluxioClientConfig
from alluxiofs.client.worker_ring import ConsistentHashProvider
from alluxiofs.client.worker_ring import WorkerIdentity
from alluxiofs.client.worker_ring import WorkerNetAddress
Expand All @@ -14,9 +15,10 @@ def test_hash_ring():
worker_hostnames = json.load(file)

hash_provider = ConsistentHashProvider(
worker_hosts=", ".join(worker_hostnames),
hash_node_per_worker=5,
etcd_refresh_workers_interval=100000000,
AlluxioClientConfig(
worker_hosts=", ".join(worker_hostnames),
etcd_refresh_workers_interval=100000000,
)
)

hash_ring_path = os.path.join(hash_res_dir, "activeNodesMap.json")
Expand Down

0 comments on commit 0022f6b

Please sign in to comment.