SOLR-10068: Only use global hdfs block cache for this test.

This commit is contained in:
markrmiller 2017-02-19 16:33:38 -05:00
parent f7201f23e7
commit 57c41e1cbd
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import org.apache.hadoop.hdfs.MiniDFSCluster;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.LuceneTestCase.Slow;
import com.carrotsearch.randomizedtesting.annotations.Nightly;
import org.apache.solr.SolrTestCaseJ4.SuppressSSL;
@ -87,6 +88,7 @@ public class SharedFSAutoReplicaFailoverTest extends AbstractFullDistribZkTestBa
public static void hdfsFailoverBeforeClass() throws Exception {
System.setProperty("solr.hdfs.blockcache.blocksperbank", "512");
dfsCluster = HdfsTestUtil.setupClass(createTempDir().toFile().getAbsolutePath());
System.setProperty("solr.hdfs.blockcache.global", "true"); // always use global cache, this test can create a lot of directories
schemaString = "schema15.xml";
}