mirror of https://github.com/apache/lucene.git
SOLR-10064: The Nightly test HdfsCollectionsAPIDistributedZkTest appears to be too fragile.
This commit is contained in:
parent
b760f95486
commit
9275c2f87f
|
@ -37,8 +37,8 @@ public class HdfsCollectionsAPIDistributedZkTest extends CollectionsAPIDistribut
|
||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void setupClass() throws Exception {
|
public static void setupClass() throws Exception {
|
||||||
|
System.setProperty("solr.hdfs.blockcache.blocksperbank", "512");
|
||||||
dfsCluster = HdfsTestUtil.setupClass(createTempDir().toFile().getAbsolutePath());
|
dfsCluster = HdfsTestUtil.setupClass(createTempDir().toFile().getAbsolutePath());
|
||||||
System.setProperty("solr.hdfs.blockcache.blocksperbank", "1024");
|
|
||||||
|
|
||||||
ZkConfigManager configManager = new ZkConfigManager(zkClient());
|
ZkConfigManager configManager = new ZkConfigManager(zkClient());
|
||||||
configManager.uploadConfigDir(configset("cloud-hdfs"), "conf");
|
configManager.uploadConfigDir(configset("cloud-hdfs"), "conf");
|
||||||
|
@ -52,6 +52,8 @@ public class HdfsCollectionsAPIDistributedZkTest extends CollectionsAPIDistribut
|
||||||
cluster.shutdown(); // need to close before the MiniDFSCluster
|
cluster.shutdown(); // need to close before the MiniDFSCluster
|
||||||
HdfsTestUtil.teardownClass(dfsCluster);
|
HdfsTestUtil.teardownClass(dfsCluster);
|
||||||
dfsCluster = null;
|
dfsCluster = null;
|
||||||
|
System.clearProperty("solr.hdfs.blockcache.blocksperbank");
|
||||||
|
System.clearProperty("solr.hdfs.home");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue