Apache Lucene open-source search software
SOLR-4749: Record solrcloud attribs even when not in zk mode.
Mark Robert Miller16012cfd9983
diff --git a/solr/core/src/java/org/apache/solr/core/ZkContainer.java b/solr/core/src/java/org/apache/solr/core/ZkContainer.javaindex 85c77eb4012..57580c72f8c 100644--- a/solr/core/src/java/org/apache/solr/core/ZkContainer.java+++ b/solr/core/src/java/org/apache/solr/core/ZkContainer.java@@ -107,9 +107,6 @@ public class ZkContainer {}String zkRun = System.getProperty("zkRun");-- if (zkRun == null && zookeeperHost == null)- return; // not in zk modethis.zkClientTimeout = zkClientTimeout;this.hostPort = hostPort;@@ -118,6 +115,10 @@ public class ZkContainer {this.leaderVoteWait = leaderVoteWait;this.distribUpdateConnTimeout = distribUpdateConnTimeout;this.distribUpdateSoTimeout = distribUpdateSoTimeout;++ if (zkRun == null && zookeeperHost == null)+ return; // not in zk mode+// BEGIN: SOLR-4622: deprecated hardcoded defaults for hostPort & hostContextif (null == hostPort) {