Skip to content

Commit 5971ca9

Browse files
committed
Ignore clusterstate.json. Fixes #224.
1 parent 0adcbe1 commit 5971ca9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pysolr.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)