mirror of
https://github.com/apache/lucene.git
synced 2025-03-06 08:19:23 +00:00
Fix testAddDocumentOnDiskFull to handle IllegalStateException from IndexWriter#close (#13558)
This commit is contained in:
parent
35a5d7323b
commit
ad2f02c013
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user