Skip to content

Commit e23e4ce

Browse files
committed
Ignore clusterstate.json. Fixes django-haystack#224.
1 parent bacad23 commit e23e4ce

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pysolr.py

-9
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,6 @@ class ZooKeeper(object):
15301530
# Constants used by the REST API:
15311531
LIVE_NODES_ZKNODE = "/live_nodes"
15321532
ALIASES = "/aliases.json"
1533-
CLUSTER_STATE = "/clusterstate.json"
15341533
COLLECTION_STATUS = "/collections"
15351534
COLLECTION_STATE = "/collections/%s/state.json"
15361535
SHARDS = "shards"
@@ -1574,14 +1573,6 @@ def connectionListener(state):
15741573

15751574
self.zk.add_listener(connectionListener)
15761575

1577-
@self.zk.DataWatch(ZooKeeper.CLUSTER_STATE)
1578-
def watchClusterState(data, *args, **kwargs):
1579-
if not data:
1580-
LOG.warning("No cluster state available: no collections defined?")
1581-
else:
1582-
self.collections = json.loads(data.decode("utf-8"))
1583-
LOG.info("Updated collections: %s", self.collections)
1584-
15851576
@self.zk.ChildrenWatch(ZooKeeper.LIVE_NODES_ZKNODE)
15861577
def watchLiveNodes(children):
15871578
self.liveNodes = children

0 commit comments

Comments
 (0)