You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by si...@apache.org on 2018/03/15 14:38:09 UTC
lucene-solr:master: LUCENE-8205: Suppress potential second exception
caught by ECJ
Repository: lucene-solr
Updated Branches:
refs/heads/master fbdf7fa73 -> 143b6135a
LUCENE-8205: Suppress potential second exception caught by ECJ
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/143b6135
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/143b6135
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/143b6135
Branch: refs/heads/master
Commit: 143b6135a5ea9fac774b3e90471dfac8d2117b19
Parents: fbdf7fa
Author: Simon Willnauer <si...@apache.org>
Authored: Thu Mar 15 15:36:54 2018 +0100
Committer: Simon Willnauer <si...@apache.org>
Committed: Thu Mar 15 15:37:58 2018 +0100
----------------------------------------------------------------------
lucene/core/src/java/org/apache/lucene/index/DocumentsWriter.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/143b6135/lucene/core/src/java/org/apache/lucene/index/DocumentsWriter.java
----------------------------------------------------------------------
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 05a886a..af07623 100644
--- a/lucene/core/src/java/org/apache/lucene/index/DocumentsWriter.java
+++ b/lucene/core/src/java/org/apache/lucene/index/DocumentsWriter.java
@@ -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;
}
}