mirror of https://github.com/apache/lucene.git
LUCENE-7775: fix exception handling to throw first exception hit
This commit is contained in:
parent
e02a1f159e
commit
d9973a38db
|
@ -456,7 +456,7 @@ class BufferedUpdatesStream implements Accountable {
|
|||
try {
|
||||
segStates[j].finish(pool);
|
||||
} catch (Throwable th) {
|
||||
if (firstExc != null) {
|
||||
if (firstExc == null) {
|
||||
firstExc = th;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ final class SegmentDocValues {
|
|||
try {
|
||||
dvp.decRef();
|
||||
} catch (Throwable th) {
|
||||
if (t != null) {
|
||||
if (t == null) {
|
||||
t = th;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue