You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2014/07/07 21:02:50 UTC
svn commit: r1608559 - in /lucene/dev/branches/branch_4x: ./ solr/
solr/CHANGES.txt solr/test-framework/
solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
Author: shalin
Date: Mon Jul 7 19:02:49 2014
New Revision: 1608559
URL: http://svn.apache.org/r1608559
Log:
SOLR-5596: Set system property zookeeper.forceSync=no for Solr test cases
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/solr/ (props changed)
lucene/dev/branches/branch_4x/solr/CHANGES.txt (contents, props changed)
lucene/dev/branches/branch_4x/solr/test-framework/ (props changed)
lucene/dev/branches/branch_4x/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
Modified: lucene/dev/branches/branch_4x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/CHANGES.txt?rev=1608559&r1=1608558&r2=1608559&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_4x/solr/CHANGES.txt Mon Jul 7 19:02:49 2014
@@ -113,6 +113,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
Modified: lucene/dev/branches/branch_4x/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java?rev=1608559&r1=1608558&r2=1608559&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java (original)
+++ lucene/dev/branches/branch_4x/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java Mon Jul 7 19:02:49 2014
@@ -152,7 +152,8 @@ public abstract class SolrTestCaseJ4 ext
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()));
@@ -184,6 +185,7 @@ public abstract class SolrTestCaseJ4 ext
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");