From 5971ca9808b1e9246d7a274d1278c16b53285e3e Mon Sep 17 00:00:00 2001 From: Brian Morton Date: Sun, 22 Mar 2020 16:08:45 +0000 Subject: [PATCH] Ignore clusterstate.json. Fixes #224. --- pysolr.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pysolr.py b/pysolr.py index 9dc84447..07737cd8 100644 --- a/pysolr.py +++ b/pysolr.py @@ -1482,7 +1482,6 @@ class ZooKeeper(object): # Constants used by the REST API: LIVE_NODES_ZKNODE = "/live_nodes" ALIASES = "/aliases.json" - CLUSTER_STATE = "/clusterstate.json" COLLECTION_STATUS = "/collections" COLLECTION_STATE = "/collections/%s/state.json" SHARDS = "shards" @@ -1526,14 +1525,6 @@ def connectionListener(state): self.zk.add_listener(connectionListener) - @self.zk.DataWatch(ZooKeeper.CLUSTER_STATE) - def watchClusterState(data, *args, **kwargs): - if not data: - LOG.warning("No cluster state available: no collections defined?") - else: - self.collections = json.loads(data.decode("utf-8")) - LOG.info("Updated collections: %s", self.collections) - @self.zk.ChildrenWatch(ZooKeeper.LIVE_NODES_ZKNODE) def watchLiveNodes(children): self.liveNodes = children