Skip to content

Apache Lucene open-source search software

SOLR-6880: Remove this assert that can fail tests.

Mark Robert Miller97e0a1c8ad9a
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 f36f4c9e2da..33c17348db1 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
@@ -534,7 +534,6 @@ public class ZkStateReader implements Closeable {
synchronized (ZkStateReader.this) {
for (String watchedCollection : watchedCollections) {
DocCollection live = getCollectionLive(this, watchedCollection);
- assert live != null;
if (live != null) {
updateWatchedCollection(live);
}