lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject lucene-solr:master: don't use MockDirectoryWrapper here: it can cause testThreadSafety thread starvation so test times out after 2 hours
Date Mon, 13 Jun 2016 08:43:12 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master fce10ae10 -> b9ded9229


don't use MockDirectoryWrapper here: it can cause testThreadSafety thread starvation so test
times out after 2 hours


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/b9ded922
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/b9ded922
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/b9ded922

Branch: refs/heads/master
Commit: b9ded922953c19a8c80a93b8082214a9feff8ead
Parents: fce10ae
Author: Mike McCandless <mikemccand@apache.org>
Authored: Mon Jun 13 04:42:11 2016 -0400
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Mon Jun 13 04:42:11 2016 -0400

----------------------------------------------------------------------
 .../apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b9ded922/lucene/misc/src/test/org/apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java
----------------------------------------------------------------------
diff --git a/lucene/misc/src/test/org/apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java
b/lucene/misc/src/test/org/apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java
index 388b2f0..953dc59 100644
--- a/lucene/misc/src/test/org/apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java
+++ b/lucene/misc/src/test/org/apache/lucene/store/TestHardLinkCopyDirectoryWrapper.java
@@ -30,7 +30,12 @@ public class TestHardLinkCopyDirectoryWrapper extends BaseDirectoryTestCase
{
 
   @Override
   protected Directory getDirectory(Path file) throws IOException {
-    Directory open = random().nextBoolean() ? newFSDirectory(file) : newDirectory();
+    Directory open;
+    if (random().nextBoolean()) {
+      open = new RAMDirectory();
+    } else {
+      open = FSDirectory.open(file);
+    }
     return new HardlinkCopyDirectoryWrapper(open);
   }
 


Mime
View raw message