mirror of https://github.com/apache/lucene.git
SOLR-9451: Make clusterstatus command logging less verbose
This commit is contained in:
parent
9c6d34858e
commit
61955efc50
|
@ -168,6 +168,7 @@ Other Changes
|
||||||
|
|
||||||
* SOLR-9365: Reduce noise in solr logs during graceful shutdown. (Cao Manh Dat via shalin)
|
* SOLR-9365: Reduce noise in solr logs during graceful shutdown. (Cao Manh Dat via shalin)
|
||||||
|
|
||||||
|
* SOLR-9451: Make clusterstatus command logging less verbose. (Varun Thacker)
|
||||||
================== 6.2.1 ==================
|
================== 6.2.1 ==================
|
||||||
|
|
||||||
Bug Fixes
|
Bug Fixes
|
||||||
|
|
|
@ -172,22 +172,23 @@ public class ZkStateReader implements Closeable {
|
||||||
String configName = null;
|
String configName = null;
|
||||||
|
|
||||||
String path = COLLECTIONS_ZKNODE + "/" + collection;
|
String path = COLLECTIONS_ZKNODE + "/" + collection;
|
||||||
LOG.info("Load collection config from: [{}]", path);
|
LOG.debug("Loading collection config from: [{}]", path);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
byte[] data = zkClient.getData(path, null, null, true);
|
byte[] data = zkClient.getData(path, null, null, true);
|
||||||
|
|
||||||
if(data != null) {
|
if (data != null) {
|
||||||
ZkNodeProps props = ZkNodeProps.load(data);
|
ZkNodeProps props = ZkNodeProps.load(data);
|
||||||
configName = props.getStr(CONFIGNAME_PROP);
|
configName = props.getStr(CONFIGNAME_PROP);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (configName != null) {
|
if (configName != null) {
|
||||||
if (!zkClient.exists(CONFIGS_ZKNODE + "/" + configName, true)) {
|
String configPath = CONFIGS_ZKNODE + "/" + configName;
|
||||||
LOG.error("Specified config does not exist in ZooKeeper: [{}]", configName);
|
if (!zkClient.exists(configPath, true)) {
|
||||||
|
LOG.error("Specified config=[{}] does not exist in ZooKeeper at location=[{}]", configName, configPath);
|
||||||
throw new ZooKeeperException(ErrorCode.SERVER_ERROR, "Specified config does not exist in ZooKeeper: " + configName);
|
throw new ZooKeeperException(ErrorCode.SERVER_ERROR, "Specified config does not exist in ZooKeeper: " + configName);
|
||||||
} else {
|
} else {
|
||||||
LOG.info("path=[{}] [{}]=[{}] specified config exists in ZooKeeper", path, CONFIGNAME_PROP, configName);
|
LOG.debug("path=[{}] [{}]=[{}] specified config exists in ZooKeeper", configPath, CONFIGNAME_PROP, configName);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new ZooKeeperException(ErrorCode.INVALID_STATE, "No config data found at path: " + path);
|
throw new ZooKeeperException(ErrorCode.INVALID_STATE, "No config data found at path: " + path);
|
||||||
|
|
Loading…
Reference in New Issue