markrmiller commented on a change in pull request #214: URL: https://github.com/apache/solr/pull/214#discussion_r683080554
########## File path: solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java ########## @@ -788,6 +777,26 @@ public void waitForActiveCollection(String collection, long wait, TimeUnit unit, public void waitForActiveCollection(String collection, int shards, int totalReplicas) { waitForActiveCollection(collection, 30, TimeUnit.SECONDS, shards, totalReplicas); } + + public void waitForActiveCollection(String collection, long wait, TimeUnit unit) { + log.info("waitForActiveCollection: {}", collection); + CollectionStatePredicate predicate = expectedActive(); + + AtomicReference<DocCollection> state = new AtomicReference<>(); + AtomicReference<Set<String>> liveNodesLastSeen = new AtomicReference<>(); + try { + getSolrClient().waitForState(collection, wait, unit, (n, c) -> { Review comment: @sonatype-lift ignore -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org