Apache Solr open-source search software
SOLR-5702: Log config name found for collection at info level.
Mark Robert Millerfd85c3623b75
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 7cd43cc9bb7..f327a6a85c2 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -371,6 +371,9 @@ Other Changes* SOLR-5629: SolrIndexSearcher.name should include core name.(Shikhar Bhushan via shalin)+* SOLR-5702: Log config name found for collection at info level.+ (Christine Poerschke via Mark Miller)+================== 4.6.1 ==================Versions of Major Componentsdiff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.javaindex 240a8cb3883..9f3847c322f 100644--- a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java@@ -144,10 +144,15 @@ public class ZkStateReader {configName = props.getStr(CONFIGNAME_PROP);}- if (configName != null && !zkClient.exists(CONFIGS_ZKNODE + "/" + configName, true)) {- log.error("Specified config does not exist in ZooKeeper:" + configName);- throw new ZooKeeperException(ErrorCode.SERVER_ERROR,- "Specified config does not exist in ZooKeeper:" + configName);+ if (configName != null) {+ if (!zkClient.exists(CONFIGS_ZKNODE + "/" + configName, true)) {+ log.error("Specified config does not exist in ZooKeeper:" + configName);+ throw new ZooKeeperException(ErrorCode.SERVER_ERROR,+ "Specified config does not exist in ZooKeeper:" + configName);+ } else if (log.isInfoEnabled()) {+ log.info("path={} {}={} specified config exists in ZooKeeper",+ new Object[] {path, CONFIGNAME_PROP, configName});+ }}return configName;