JanusGraph / janusgraph

JanusGraph: an open-source, distributed graph database
https://janusgraph.org
Other
5.31k stars 1.17k forks source link

Support ZooKeeper client and connect timeout configuration #599

Open ruweih opened 7 years ago

ruweih commented 7 years ago

The Solr index implementation currently uses default timeout (10s) in cloud mode.

https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-solr/src/main/java/org/janusgraph/diskstorage/solr/SolrIndex.java#L244-L248

It would nice to have it configurable just as HTTP mode. The CloudSolrClient from solrj does support customization of both timeout: https://lucene.apache.org/solr/5_3_0/solr-solrj/org/apache/solr/client/solrj/impl/CloudSolrClient.html#setZkConnectTimeout(int)

Experienced by other people, and suggestion to raise the default timeout value: http://lucene.472066.n3.nabble.com/Could-not-connect-to-ZooKeeper-x-x-x-x-2181-solr-within-10000-ms-td4169634.html

tuxdna commented 5 years ago

@ruweih @sjudeng Did you figure out any solution for this issue? I am also observing this error with Solr backend.