Fix testAddDocumentOnDiskFull to handle IllegalStateException from IndexWriter#close (#13558)

This commit is contained in:
Zhang Chao 2024-08-02 15:28:03 +08:00 committed by GitHub
parent 35a5d7323b
commit ad2f02c013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);