mirror of https://github.com/apache/lucene.git
LUCENE-8205: Suppress potential second exception caught by ECJ
This commit is contained in:
parent
fbdf7fa736
commit
143b6135a5
|
@ -735,7 +735,8 @@ final class DocumentsWriter implements Closeable, Accountable {
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
try {
|
try {
|
||||||
writer.onTragicEvent(t, "applyUpdatesPacket");
|
writer.onTragicEvent(t, "applyUpdatesPacket");
|
||||||
} finally {
|
} catch (Throwable t1) {
|
||||||
|
t.addSuppressed(t1);
|
||||||
throw t;
|
throw t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue