SOLR-10064: The Nightly test HdfsCollectionsAPIDistributedZkTest appears to be too fragile.

This commit is contained in:
markrmiller 2017-02-15 10:20:22 -05:00
parent b760f95486
commit 9275c2f87f
1 changed files with 3 additions and 1 deletions

View File

@ -37,8 +37,8 @@ public class HdfsCollectionsAPIDistributedZkTest extends CollectionsAPIDistribut
@BeforeClass
public static void setupClass() throws Exception {
System.setProperty("solr.hdfs.blockcache.blocksperbank", "512");
dfsCluster = HdfsTestUtil.setupClass(createTempDir().toFile().getAbsolutePath());
System.setProperty("solr.hdfs.blockcache.blocksperbank", "1024");
ZkConfigManager configManager = new ZkConfigManager(zkClient());
configManager.uploadConfigDir(configset("cloud-hdfs"), "conf");
@ -52,6 +52,8 @@ public class HdfsCollectionsAPIDistributedZkTest extends CollectionsAPIDistribut
cluster.shutdown(); // need to close before the MiniDFSCluster
HdfsTestUtil.teardownClass(dfsCluster);
dfsCluster = null;
System.clearProperty("solr.hdfs.blockcache.blocksperbank");
System.clearProperty("solr.hdfs.home");
}
}