docker-solr / docker-solr-examples

Examples for Docker-Solr
Apache License 2.0
61 stars 58 forks source link

Exception when trying to connect to Zookeeper #7

Closed alsofr closed 4 years ago

alsofr commented 4 years ago

Hi,

I'm using this docker-compose to test my application locally.

I'm having troubles connecting to zookeeper using a Solrj cloud client.

The application is trying to connect to localhost:2181' to get a list of the active solr instances back.

However I see the following error message in the console and the application fails to connect :

zoo1     | 2020-06-12 03:19:28,304 [myid:1] - WARN  [NIOWorkerThread`-5:NIOServerCnxn@370] - Exception causing close of session 0x0: ZooKeeperServer not running

Leader election seem to occur normally before that.

The same approach of requesting the list of active solr servers from zookeeper works properly in a k8s cluster (quite a different setup from the docker-compose).

Could it be a missing configuration/setting in the docker-compose? What am I missing?

alsofr commented 4 years ago

Problem solved by deleting all containers properly and restarting the cluster.