Apache Lucene open-source search software
SOLR-10064: The Nightly test HdfsCollectionsAPIDistributedZkTest appears to be too fragile.
markrmiller6b169d2051ce
diff --git a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.javaindex c3d1a86b985..7925358e6d2 100644--- a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java@@ -482,7 +482,7 @@ public class CollectionsAPIDistributedZkTest extends SolrCloudTestCase {public void testCollectionsAPI() throws Exception {// create new collections rapid fire- int cnt = random().nextInt(TEST_NIGHTLY ? 6 : 1) + 1;+ int cnt = random().nextInt(TEST_NIGHTLY ? 3 : 1) + 1;CollectionAdminRequest.Create[] createRequests = new CollectionAdminRequest.Create[cnt];for (int i = 0; i < cnt; i++) {diff --git a/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsCollectionsAPIDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsCollectionsAPIDistributedZkTest.javaindex c9a9a0f8e5c..1b830ad978d 100644--- a/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsCollectionsAPIDistributedZkTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsCollectionsAPIDistributedZkTest.java@@ -38,6 +38,8 @@ public class HdfsCollectionsAPIDistributedZkTest extends CollectionsAPIDistribut@BeforeClasspublic static void setupClass() throws Exception {System.setProperty("solr.hdfs.blockcache.blocksperbank", "512");+ System.setProperty("tests.hdfs.numdatanodes", "1");+dfsCluster = HdfsTestUtil.setupClass(createTempDir().toFile().getAbsolutePath());ZkConfigManager configManager = new ZkConfigManager(zkClient());@@ -53,6 +55,7 @@ public class HdfsCollectionsAPIDistributedZkTest extends CollectionsAPIDistributHdfsTestUtil.teardownClass(dfsCluster);dfsCluster = null;System.clearProperty("solr.hdfs.blockcache.blocksperbank");+ System.clearProperty("tests.hdfs.numdatanodes");System.clearProperty("solr.hdfs.home");}