File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -1482,7 +1482,6 @@ class ZooKeeper(object):
14821482 # Constants used by the REST API:
14831483 LIVE_NODES_ZKNODE = "/live_nodes"
14841484 ALIASES = "/aliases.json"
1485- CLUSTER_STATE = "/clusterstate.json"
14861485 COLLECTION_STATUS = "/collections"
14871486 COLLECTION_STATE = "/collections/%s/state.json"
14881487 SHARDS = "shards"
@@ -1526,14 +1525,6 @@ def connectionListener(state):
15261525
15271526 self .zk .add_listener (connectionListener )
15281527
1529- @self .zk .DataWatch (ZooKeeper .CLUSTER_STATE )
1530- def watchClusterState (data , * args , ** kwargs ):
1531- if not data :
1532- LOG .warning ("No cluster state available: no collections defined?" )
1533- else :
1534- self .collections = json .loads (data .decode ("utf-8" ))
1535- LOG .info ("Updated collections: %s" , self .collections )
1536-
15371528 @self .zk .ChildrenWatch (ZooKeeper .LIVE_NODES_ZKNODE )
15381529 def watchLiveNodes (children ):
15391530 self .liveNodes = children
You can’t perform that action at this time.
0 commit comments