You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2023/04/28 18:15:24 UTC

[lucenenet] branch master updated: BUG: TestIndexWriterOnJRECrash: Removed using block to ensure that our original CheckIndex error bubbles up instead of any issue disposing (or double-disposing) the directory.

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


The following commit(s) were added to refs/heads/master by this push:
     new 1ae0ca159 BUG: TestIndexWriterOnJRECrash: Removed using block to ensure that our original CheckIndex error bubbles up instead of any issue disposing (or double-disposing) the directory.
1ae0ca159 is described below

commit 1ae0ca15900d780ea951646c1ffd7729f3c625f4
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Apr 28 22:41:02 2023 +0700

    BUG: TestIndexWriterOnJRECrash: Removed using block to ensure that our original CheckIndex error bubbles up instead of any issue disposing (or double-disposing) the directory.
---
 src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs b/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs
index c5cffc387..3b28f469c 100644
--- a/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs
+++ b/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs
@@ -302,7 +302,7 @@ namespace Lucene.Net.Index
         {
             if (file is DirectoryInfo directoryInfo)
             {
-                using BaseDirectoryWrapper dir = NewFSDirectory(directoryInfo);
+                BaseDirectoryWrapper dir = NewFSDirectory(directoryInfo);
                 dir.CheckIndexOnDispose = false; // don't double-checkindex
                 if (DirectoryReader.IndexExists(dir))
                 {