lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim...@apache.org
Subject [2/2] lucene-solr:master: [TEST] Ensure MDW.assertNoUnreferencedFilesOnClose is threadsafe
Date Mon, 04 Jun 2018 15:33:49 GMT
[TEST] Ensure MDW.assertNoUnreferencedFilesOnClose is threadsafe


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

Branch: refs/heads/master
Commit: 59087d148ac186930c4a51917e361c599e7314c1
Parents: fe83838
Author: Simon Willnauer <simonw@apache.org>
Authored: Mon Jun 4 17:28:32 2018 +0200
Committer: Simon Willnauer <simonw@apache.org>
Committed: Mon Jun 4 17:33:18 2018 +0200

----------------------------------------------------------------------
 .../src/java/org/apache/lucene/store/MockDirectoryWrapper.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/59087d14/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
----------------------------------------------------------------------
diff --git a/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
b/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
index 60f671c..0194177 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
@@ -804,7 +804,7 @@ public class MockDirectoryWrapper extends BaseDirectoryWrapper {
   }
 
   // NOTE: This is off by default; see LUCENE-5574
-  private boolean assertNoUnreferencedFilesOnClose;
+  private volatile boolean assertNoUnreferencedFilesOnClose;
 
   public void setAssertNoUnrefencedFilesOnClose(boolean v) {
     assertNoUnreferencedFilesOnClose = v;


Mime
View raw message