lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim...@apache.org
Subject [1/2] lucene-solr:branch_7x: [TEST] Ensure MDW.assertNoUnreferencedFilesOnClose is threadsafe
Date Mon, 04 Jun 2018 15:33:48 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 0a7c3f462 -> 05cde8de3
  refs/heads/master fe83838ec -> 59087d148


[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/05cde8de
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/05cde8de
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/05cde8de

Branch: refs/heads/branch_7x
Commit: 05cde8de3cf9f5e4162d1f2c031274ebe99daf51
Parents: 0a7c3f4
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:32:58 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/05cde8de/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