LUCENE-8205: Suppress potential second exception caught by ECJ

This commit is contained in:
Simon Willnauer 2018-03-15 15:36:54 +01:00
parent fbdf7fa736
commit 143b6135a5
1 changed files with 2 additions and 1 deletions

View File

@ -735,7 +735,8 @@ final class DocumentsWriter implements Closeable, Accountable {
} catch (Throwable t) {
try {
writer.onTragicEvent(t, "applyUpdatesPacket");
} finally {
} catch (Throwable t1) {
t.addSuppressed(t1);
throw t;
}
}