You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by va...@apache.org on 2016/09/16 13:57:09 UTC
lucene-solr:branch_6x: SOLR-9451: Make clusterstatus command logging
less verbose
Repository: lucene-solr
Updated Branches:
refs/heads/branch_6x 380800261 -> e8eadedb8
SOLR-9451: Make clusterstatus command logging less verbose
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/e8eadedb
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/e8eadedb
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/e8eadedb
Branch: refs/heads/branch_6x
Commit: e8eadedb85c577ec2aed84d0281d45774f75bdc9
Parents: 3808002
Author: Varun Thacker <va...@apache.org>
Authored: Fri Sep 16 19:11:59 2016 +0530
Committer: Varun Thacker <va...@apache.org>
Committed: Fri Sep 16 19:26:40 2016 +0530
----------------------------------------------------------------------
solr/CHANGES.txt | 1 +
.../java/org/apache/solr/common/cloud/ZkStateReader.java | 11 ++++++-----
2 files changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e8eadedb/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index d4a1ae5..f858c50 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -138,6 +138,7 @@ Other Changes
* 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 ==================
Bug Fixes
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e8eadedb/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java
index b89da93..2f03286 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
@@ -172,22 +172,23 @@ public class ZkStateReader implements Closeable {
String configName = null;
String path = COLLECTIONS_ZKNODE + "/" + collection;
- LOG.info("Load collection config from: [{}]", path);
+ LOG.debug("Loading collection config from: [{}]", path);
try {
byte[] data = zkClient.getData(path, null, null, true);
- if(data != null) {
+ if (data != null) {
ZkNodeProps props = ZkNodeProps.load(data);
configName = props.getStr(CONFIGNAME_PROP);
}
if (configName != null) {
- if (!zkClient.exists(CONFIGS_ZKNODE + "/" + configName, true)) {
- LOG.error("Specified config does not exist in ZooKeeper: [{}]", configName);
+ String configPath = CONFIGS_ZKNODE + "/" + 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);
} 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 {
throw new ZooKeeperException(ErrorCode.INVALID_STATE, "No config data found at path: " + path);