From 06707cca6431f6b9865fedf08c72900e2b768d93 Mon Sep 17 00:00:00 2001 From: markrmiller Date: Sun, 19 Feb 2017 20:36:05 -0500 Subject: [PATCH] tests: always use global blockcache for chaosmonkey tests. --- .../apache/solr/cloud/hdfs/HdfsChaosMonkeyNothingIsSafeTest.java | 1 + .../apache/solr/cloud/hdfs/HdfsChaosMonkeySafeLeaderTest.java | 1 + 2 files changed, 2 insertions(+) diff --git a/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsChaosMonkeyNothingIsSafeTest.java b/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsChaosMonkeyNothingIsSafeTest.java index 47a9b98ff40..1da66eaa472 100644 --- a/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsChaosMonkeyNothingIsSafeTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsChaosMonkeyNothingIsSafeTest.java @@ -40,6 +40,7 @@ public class HdfsChaosMonkeyNothingIsSafeTest extends ChaosMonkeyNothingIsSafeTe @BeforeClass public static void setupClass() throws Exception { 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 } @AfterClass diff --git a/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsChaosMonkeySafeLeaderTest.java b/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsChaosMonkeySafeLeaderTest.java index 525b62dc50f..0bd29ac73f3 100644 --- a/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsChaosMonkeySafeLeaderTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsChaosMonkeySafeLeaderTest.java @@ -38,6 +38,7 @@ public class HdfsChaosMonkeySafeLeaderTest extends ChaosMonkeySafeLeaderTest { @BeforeClass public static void setupClass() throws Exception { + System.setProperty("solr.hdfs.blockcache.global", "true"); // always use global cache, this test can create a lot of directories dfsCluster = HdfsTestUtil.setupClass(createTempDir().toFile().getAbsolutePath()); }