mirror of https://github.com/apache/lucene.git
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:
parent
20a280c33c
commit
fd85c3623b
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue