AMBARI-20751. Fix misleading solr-client output messages (oleewere)

Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3e01abd1
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3e01abd1
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3e01abd1

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: 3e01abd19f8a3d9538ab38d35786c3b6fae33fc5
Parents: 52203c3
Author: oleewere <oleew...@gmail.com>
Authored: Thu Apr 13 12:41:41 2017 +0200
Committer: oleewere <oleew...@gmail.com>
Committed: Thu Apr 13 12:41:41 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/ambari/infra/solr/AmbariSolrCloudClient.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/3e01abd1/ambari-infra/ambari-infra-solr-client/src/main/java/org/apache/ambari/infra/solr/AmbariSolrCloudClient.java
----------------------------------------------------------------------
diff --git 
a/ambari-infra/ambari-infra-solr-client/src/main/java/org/apache/ambari/infra/solr/AmbariSolrCloudClient.java
 
b/ambari-infra/ambari-infra-solr-client/src/main/java/org/apache/ambari/infra/solr/AmbariSolrCloudClient.java
index d5d971c..9479679 100644
--- 
a/ambari-infra/ambari-infra-solr-client/src/main/java/org/apache/ambari/infra/solr/AmbariSolrCloudClient.java
+++ 
b/ambari-infra/ambari-infra-solr-client/src/main/java/org/apache/ambari/infra/solr/AmbariSolrCloudClient.java
@@ -110,7 +110,7 @@ public class AmbariSolrCloudClient {
     List<String> collections = listCollections();
     if (!collections.contains(getCollection())) {
       String collection = new CreateCollectionCommand(getRetryTimes(), 
getInterval()).run(this);
-      LOG.info("Collection '{}' created.", collection);
+      LOG.info("Collection '{}' creation request sent.", collection);
     } else {
       LOG.info("Collection '{}' already exits.", getCollection());
       if (this.isSplitting()) {
@@ -234,7 +234,7 @@ public class AmbariSolrCloudClient {
       for (String shardName : shardList) {
         if (!existingShards.contains(shardName)) {
           new CreateShardCommand(shardName, getRetryTimes(), 
getInterval()).run(this);
-          LOG.info("New shard added to collection '{}': {}", getCollection(), 
shardName);
+          LOG.info("Adding new shard to collection request sent ('{}': {})", 
getCollection(), shardName);
           existingShards.add(shardName);
         }
       }

Reply via email to