lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim...@apache.org
Subject lucene-solr:master: LUCENE-8205: Rethrow even if no inner exception happens
Date Thu, 15 Mar 2018 14:45:06 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 143b6135a -> f2a45790f


LUCENE-8205: Rethrow even if no inner exception happens


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/f2a45790
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f2a45790
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f2a45790

Branch: refs/heads/master
Commit: f2a45790f6836601e475a45acf1de679eff561ce
Parents: 143b613
Author: Simon Willnauer <simonw@apache.org>
Authored: Thu Mar 15 15:44:17 2018 +0100
Committer: Simon Willnauer <simonw@apache.org>
Committed: Thu Mar 15 15:44:55 2018 +0100

----------------------------------------------------------------------
 lucene/core/src/java/org/apache/lucene/index/DocumentsWriter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f2a45790/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 af07623..dffee8b 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();
     }


Mime
View raw message