mirror of https://github.com/apache/lucene.git
SOLR-12801: Harden CollectionsAPISolrJTest#testCreateCollWithDefaultClusterPropertiesOldFormat.
This commit is contained in:
parent
1d5ae9857f
commit
665517d3bf
|
@ -75,7 +75,6 @@ public class CollectionsAPISolrJTest extends SolrCloudTestCase {
|
|||
|
||||
// clear any persisted auto scaling configuration
|
||||
zkClient().setData(SOLR_AUTOSCALING_CONF_PATH, Utils.toJSON(new ZkNodeProps()), true);
|
||||
cluster.deleteAllCollections();
|
||||
|
||||
final ClusterProperties props = new ClusterProperties(zkClient());
|
||||
CollectionAdminRequest.setClusterProperty(ZkStateReader.LEGACY_CLOUD, null).process(cluster.getSolrClient());
|
||||
|
@ -130,7 +129,7 @@ public class CollectionsAPISolrJTest extends SolrCloudTestCase {
|
|||
.build()
|
||||
.process(cluster.getSolrClient());
|
||||
|
||||
for (int i = 0; i < 30; i++) {
|
||||
for (int i = 0; i < 300; i++) {
|
||||
Map m = cluster.getSolrClient().getZkStateReader().getClusterProperty(COLLECTION_DEF, null);
|
||||
if (m != null) break;
|
||||
Thread.sleep(10);
|
||||
|
|
Loading…
Reference in New Issue