SOLR-9181: More logging

This commit is contained in:
Alan Woodward 2016-07-05 15:17:24 +01:00
parent e6e0765e86
commit 521764ffa5
1 changed files with 4 additions and 0 deletions

View File

@ -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));
}
}