Apache Lucene open-source search software
SOLR-12801: Wait for collections properly.
markrmiller7f88bfa11234
diff --git a/solr/core/src/test/org/apache/solr/handler/admin/AutoscalingHistoryHandlerTest.java b/solr/core/src/test/org/apache/solr/handler/admin/AutoscalingHistoryHandlerTest.javaindex 8163db806df..d86bee2f14d 100644--- a/solr/core/src/test/org/apache/solr/handler/admin/AutoscalingHistoryHandlerTest.java+++ b/solr/core/src/test/org/apache/solr/handler/admin/AutoscalingHistoryHandlerTest.java@@ -86,6 +86,7 @@ public class AutoscalingHistoryHandlerTest extends SolrCloudTestCase {CollectionAdminRequest.createCollection(CollectionAdminParams.SYSTEM_COLL, null, 1, 1).setCreateNodeSet(systemCollNode).process(solrClient);+ cluster.waitForActiveCollection(CollectionAdminParams.SYSTEM_COLL, 1, 1);Set<String> otherNodes = cluster.getJettySolrRunners().stream().map(JettySolrRunner::getNodeName).collect(Collectors.toSet());otherNodes.remove(systemCollNode);@@ -93,8 +94,7 @@ public class AutoscalingHistoryHandlerTest extends SolrCloudTestCase {.setCreateNodeSet(String.join(",", otherNodes)).setMaxShardsPerNode(3).process(solrClient);- waitForRecovery(CollectionAdminParams.SYSTEM_COLL);- waitForRecovery(COLL_NAME);+ cluster.waitForActiveCollection(COLL_NAME, 1, 3);}public static class TesterListener extends TriggerListenerBase {