You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by zh...@apache.org on 2024/08/02 07:28:10 UTC

(lucene) branch main updated: Fix testAddDocumentOnDiskFull to handle IllegalStateException from IndexWriter#close (#13558)

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

zhangchao 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 ad2f02c013d Fix testAddDocumentOnDiskFull to handle IllegalStateException from IndexWriter#close (#13558)
ad2f02c013d is described below

commit ad2f02c013d4c634b0dadf57282fc13fb71f9fcc
Author: Zhang Chao <80...@qq.com>
AuthorDate: Fri Aug 2 15:28:03 2024 +0800

    Fix testAddDocumentOnDiskFull to handle IllegalStateException from IndexWriter#close (#13558)
---
 .../src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java
index 78f59300e32..a9a9254badc 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java
@@ -111,7 +111,7 @@ public class TestIndexWriterOnDiskFull extends LuceneTestCase {
                 System.out.println("TEST: now close");
               }
               writer.close();
-            } catch (IOException e) {
+            } catch (IOException | IllegalStateException e) {
               if (VERBOSE) {
                 System.out.println("TEST: exception on close; retry w/ no disk space limit");
                 e.printStackTrace(System.out);