You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by be...@apache.org on 2025/04/10 13:29:35 UTC
(lucene) branch main updated: Fix TestIndexWriterWithThreads#testIOExceptionDuringAbortWithThreadsOnlyOnce (#14424)
This is an automated email from the ASF dual-hosted git repository.
benwtrent pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 872eba61e2a Fix TestIndexWriterWithThreads#testIOExceptionDuringAbortWithThreadsOnlyOnce (#14424)
872eba61e2a is described below
commit 872eba61e2a42dc9213bdf7e7f8f9e747c84d456
Author: guojialiang <gu...@bytedance.com>
AuthorDate: Thu Apr 10 21:29:31 2025 +0800
Fix TestIndexWriterWithThreads#testIOExceptionDuringAbortWithThreadsOnlyOnce (#14424)
* fix TestIndexWriterWithThreads#testIOExceptionDuringWriteSegmentWithThreadsOnlyOnce
Signed-off-by: guojialiang <gu...@bytedance.com>
* fix TestIndexWriterWithThreads#testIOExceptionDuringWriteSegmentWithThreadsOnlyOnce
Signed-off-by: guojialiang <gu...@bytedance.com>
* update
Signed-off-by: guojialiang <gu...@bytedance.com>
---------
Signed-off-by: guojialiang <gu...@bytedance.com>
---
.../src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java
index 65dc37b50e5..17a47a5ba9b 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java
@@ -319,6 +319,8 @@ public class TestIndexWriterWithThreads extends LuceneTestCase {
IOException ioe) {
writer.rollback();
failure.clearDoFail();
+ } finally {
+ writer.close();
}
if (VERBOSE) {
System.out.println("TEST: success=" + success);