lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1407314 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/test-framework/ lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
Date Thu, 08 Nov 2012 23:37:23 GMT
Author: mikemccand
Date: Thu Nov  8 23:37:23 2012
New Revision: 1407314

URL: http://svn.apache.org/viewvc?rev=1407314&view=rev
Log:
always fsync for now (it's causing test failures otherwise)

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/lucene/   (props changed)
    lucene/dev/branches/branch_4x/lucene/test-framework/   (props changed)
    lucene/dev/branches/branch_4x/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java

Modified: lucene/dev/branches/branch_4x/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java?rev=1407314&r1=1407313&r2=1407314&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
(original)
+++ lucene/dev/branches/branch_4x/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
Thu Nov  8 23:37:23 2012
@@ -162,7 +162,9 @@ public class MockDirectoryWrapper extend
       throw new IOException("cannot sync after crash");
     }
     unSyncedFiles.removeAll(names);
-    if (LuceneTestCase.rarely(randomState) || delegate instanceof NRTCachingDirectory) {
+    // TODO: need to improve hack to be OK w/
+    // RateLimitingDirWrapper in between...
+    if (true || LuceneTestCase.rarely(randomState) || delegate instanceof NRTCachingDirectory)
{
       // don't wear out our hardware so much in tests.
       delegate.sync(names);
     }



Mime
View raw message