SOLR-5702: Log config name found for collection at info level.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1565399 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-02-06 19:01:51 +00:00
parent 20a280c33c
commit fd85c3623b
2 changed files with 12 additions and 4 deletions

View File

@ -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 Components

View File

@ -144,10 +144,15 @@ public class ZkStateReader {
configName = props.getStr(CONFIGNAME_PROP);
}
if (configName != null && !zkClient.exists(CONFIGS_ZKNODE + "/" + configName, true)) {
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;