List of usage examples for org.apache.solr.cloud AbstractDistribZkTestBase waitForRecoveriesToFinish
public static void waitForRecoveriesToFinish(String collection, ZkStateReader zkStateReader, boolean verbose, boolean failOnTimeout, long timeoutSeconds) throws Exception
From source file:solrbook.ch11.solrj.cli.command.CommandTestBase.java
License:Apache License
@BeforeClass public static void setupCluster() throws Exception { configureCluster(NUM_NODES).addConfig(CONF_NAME, getFile(CONF_DIR).toPath()).configure(); CollectionAdminRequest.createCollection(COLLECTION, CONF_NAME, NUM_SHARDS, NUM_REPLICAS) .process(cluster.getSolrClient()); AbstractDistribZkTestBase.waitForRecoveriesToFinish(COLLECTION, cluster.getSolrClient().getZkStateReader(), false, true, TIMEOUT); }