Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solr 8.11.1 - Didn't get any collection's state from zookeeper #584

Open
fcodogno opened this issue Feb 22, 2022 · 1 comment
Open

Solr 8.11.1 - Didn't get any collection's state from zookeeper #584

fcodogno opened this issue Feb 22, 2022 · 1 comment

Comments

@fcodogno
Copy link

We configure a cloud-based Solr 8.11.1 with three nodes.
We also turned on basic authentication on Solr.
If we connect directly with one of the nodes all works fine.
If we logon via zookeper to take advantage of load balancing the state is connected so the connection is fine.
But If we try a search we get the error "Didn't get any collection's state from zookeeper".
We didn't find any documentation on zookeper with basic authentication.
Below the c# sample code we use to connect to zookeper.

await Startup.InitAsync(new SolrCloudStateProvider("solrn1.cloud.net:2181,solrn2.cloud.net:2181,solrn3.cloud.net:2181"), "collection01");
var solrCloudMode = ServiceLocator.Current.GetInstance<ISolrOperations>();
var results = solrCloudMode.Query(new SolrQueryByField("Field1", "Value"));

@ASHOKPALASANI
Copy link

ASHOKPALASANI commented Jan 24, 2023

we tried to connect the SolrNet cloud with Zookeeper, the connection established with the ZKHost and getting the child nodes but while getting the collection state from the Zookeeper getting issue as 'Didn't get any collection state from the Zookeeper '.

The below code we are using to get the collection state from the zookeeper.
await zooKeeper.getDataAsync(CollectionState, true).ConfigureAwait(false)

We didn't find any documentation related to this issue with SOLRNET cloud, if any document is there to resolve this issue please let us know.

thank you..!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants