Hi

If I init a CloudSolrClient on a fresh new cluster, no Solr nodes up yet,
and I call .connect(), I get an error that ZkStateReader can't read
/live_nodes (as this node doesn't yet exist).

I do this from a unit test, and I know I don't need to call .connect()
(it's documented as optional), but wanted to ask -- is it wrong for
ZkStateReader.createClusterStateWatchersAndUpdate() to ensure /live_nodes
exists before it calls getChildren() and registers a watcher on it?

The reason why I call .connect() is because I want to get a hold of the
ZkStateReader and use it in the unit test, to query the cluster state.
Perhaps I shouldn't?

Shai

Reply via email to