SOLR-3091: When running in SolrCloud mode, whether a instance is supposed to be part of the quorum or not, it tries to start a local Solr ZK server.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1240239 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-02-03 16:41:32 +00:00
parent ce3f9caf86
commit 047b368b59
1 changed files with 9 additions and 7 deletions

View File

@ -147,6 +147,7 @@ public class CoreContainer
// TODO: remove after updating to an slf4j based zookeeper
System.setProperty("zookeeper.jmx.log4j.disable", "true");
if (zkRun != null) {
zkServer = new SolrZkServer(zkRun, zookeeperHost, solrHome, hostPort);
zkServer.parseConfig();
zkServer.start();
@ -155,6 +156,7 @@ public class CoreContainer
if (zookeeperHost == null) {
zookeeperHost = zkServer.getClientString();
}
}
int zkClientConnectTimeout = 15000;