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:42:14 UTC

lucene-solr:branch_7x: LUCENE-8205: Suppress potential second exception caught by ECJ

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 3dece5309 -> ab08c2fea


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/ab08c2fe
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ab08c2fe
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ab08c2fe

Branch: refs/heads/branch_7x
Commit: ab08c2feabf3a1e0e2525cf6a564cd5964fd2629
Parents: 3dece53
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:42:01 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/ab08c2fe/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;
         }
       }