Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-9181: More logging

Alan Woodward521764ffa572
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 6abae3fe929..03d71fb64f0 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);
+ }
}
}
@@ -611,6 +614,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));
}
}