always fsync for now (it's causing test failures otherwise)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1407313 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-11-08 23:34:59 +00:00
parent 58d914e533
commit cd7dfb5ca6
1 changed files with 3 additions and 1 deletions

View File

@ -162,7 +162,9 @@ public class MockDirectoryWrapper extends BaseDirectoryWrapper {
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);
}