SOLR-5596: Set system property zookeeper.forceSync=no for Solr test cases

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1608555 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2014-07-07 19:01:46 +00:00
parent d76c4cbef0
commit 0f8e3fd973
2 changed files with 5 additions and 1 deletions

View File

@ -184,6 +184,8 @@ Other Changes
* SOLR-6171: Remove unused SolrCores coreNameToOrig map (Alan Woodward)
* SOLR-5596: Set system property zookeeper.forceSync=no for Solr test cases. (shalin)
================== 4.9.0 ==================
Versions of Major Components

View File

@ -155,7 +155,8 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {
initCoreDataDir = createTempDir("init-core-data");
System.err.println("Creating dataDir: " + initCoreDataDir.getAbsolutePath());
System.setProperty("zookeeper.forceSync", "no");
System.setProperty("jetty.testMode", "true");
System.setProperty("enable.update.log", usually() ? "true" : "false");
System.setProperty("tests.shardhandler.randomSeed", Long.toString(random().nextLong()));
@ -187,6 +188,7 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {
coreName = ConfigSolrXmlOld.DEFAULT_DEFAULT_CORE_NAME;
} finally {
initCoreDataDir = null;
System.clearProperty("zookeeper.forceSync");
System.clearProperty("jetty.testMode");
System.clearProperty("tests.shardhandler.randomSeed");
System.clearProperty("enable.update.log");