From f2a45790f6836601e475a45acf1de679eff561ce Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Thu, 15 Mar 2018 15:44:17 +0100 Subject: [PATCH] LUCENE-8205: Rethrow even if no inner exception happens --- .../core/src/java/org/apache/lucene/index/DocumentsWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/DocumentsWriter.java b/lucene/core/src/java/org/apache/lucene/index/DocumentsWriter.java index af07623e328..dffee8be5a1 100644 --- a/lucene/core/src/java/org/apache/lucene/index/DocumentsWriter.java +++ b/lucene/core/src/java/org/apache/lucene/index/DocumentsWriter.java @@ -737,8 +737,8 @@ final class DocumentsWriter implements Closeable, Accountable { writer.onTragicEvent(t, "applyUpdatesPacket"); } catch (Throwable t1) { t.addSuppressed(t1); - throw t; } + throw t; } writer.flushDeletesCount.incrementAndGet(); }