On 7/4/2021 8:55 PM, Reej Nayagam wrote:
Please find the versions as below
Solr core -  8.8.2
Solrj - 8.8.2
Zookeeper - 3.6.3
Zookeeper jute - 3.6.3

Kindly do share any code samples if you have them.

I built some code and pasted it here:

https://apaste.info/fI0a

In my example, this class is called TestSolr, and the method I've built is static. So to use it in another class, you would do something like this:

SolrClient client = TestSolr.getSolrClient();

The synchronization on the method ensures that it all works properly in multi-threaded code. If you assign the parts of the ZK ensemble somewhere else, you might need to think about proper synchronization for that too.

I hope this illustrates what Vincenzo and I were talking about.

Thanks,
Shawn

Reply via email to