You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2016/07/08 13:30:02 UTC

[2/3] lucene-solr:branch_6x: SOLR-9181: More logging

SOLR-9181: More logging


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/86d8d3a9
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/86d8d3a9
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/86d8d3a9

Branch: refs/heads/branch_6x
Commit: 86d8d3a937802f47add8408bdd05117ec0fc2137
Parents: 60232cd
Author: Alan Woodward <ro...@apache.org>
Authored: Tue Jul 5 15:17:24 2016 +0100
Committer: Alan Woodward <ro...@apache.org>
Committed: Fri Jul 8 14:29:42 2016 +0100

----------------------------------------------------------------------
 .../src/java/org/apache/solr/common/cloud/ZkStateReader.java     | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/86d8d3a9/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 8b3beb4..ffd85ca 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
@@ -323,6 +323,9 @@ public class ZkStateReader implements Closeable {
           constructState(Collections.singletonMap(collection, newState));
         }
       }
+      else {
+        LOG.error("Collection {} is not lazy or watched!", collection);
+      }
     }
 
   }
@@ -612,6 +615,7 @@ public class ZkStateReader implements Closeable {
           // Double check contains just to avoid allocating an object.
           LazyCollectionRef existing = lazyCollectionStates.get(coll);
           if (existing == null) {
+            LOG.info("Adding lazy collectionRef for collection {}", coll);
             lazyCollectionStates.putIfAbsent(coll, new LazyCollectionRef(coll));
           }
         }