You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by cp...@apache.org on 2021/05/07 19:10:49 UTC
[lucene-solr] branch branch_8x updated: SOLR-15377: Improve
IndexFetcher's exception logging upon replication errors. (#99)
This is an automated email from the ASF dual-hosted git repository.
cpoerschke pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new e4e8152 SOLR-15377: Improve IndexFetcher's exception logging upon replication errors. (#99)
e4e8152 is described below
commit e4e815217de7eac62be811e531115245cd3e5d6f
Author: Torsten Bøgh Köster <tb...@thiswayup.de>
AuthorDate: Fri May 7 19:49:21 2021 +0200
SOLR-15377: Improve IndexFetcher's exception logging upon replication errors. (#99)
Co-authored-by: Christine Poerschke <cp...@apache.org>
---
solr/CHANGES.txt | 1 +
solr/core/src/java/org/apache/solr/handler/IndexFetcher.java | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 9e0bc12..affca8b 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -97,6 +97,7 @@ Other Changes
* SOLR-15292: An ERROR is logged if SignatureUpdateProcessorFactory is used in SolrCloud cluster in a way that is known to
be problematic with multiple replicas. In 9.0 this situation will prevent collection initialization. (hossman)
+* SOLR-15377: Improve IndexFetcher's exception logging upon replication errors. (Torsten Bøgh Köster, Christine Poerschke)
================== 8.8.2 ==================
diff --git a/solr/core/src/java/org/apache/solr/handler/IndexFetcher.java b/solr/core/src/java/org/apache/solr/handler/IndexFetcher.java
index da2846a..4e3a12f 100644
--- a/solr/core/src/java/org/apache/solr/handler/IndexFetcher.java
+++ b/solr/core/src/java/org/apache/solr/handler/IndexFetcher.java
@@ -722,12 +722,12 @@ public class IndexFetcher {
markReplicationStop();
return successfulInstall ? IndexFetchResult.INDEX_FETCH_SUCCESS : IndexFetchResult.INDEX_FETCH_FAILURE;
} catch (ReplicationHandlerException e) {
- log.error("User aborted Replication");
+ log.error("User aborted Replication", e);
return new IndexFetchResult(IndexFetchResult.FAILED_BY_EXCEPTION_MESSAGE, false, e);
} catch (SolrException e) {
throw e;
} catch (InterruptedException e) {
- throw new InterruptedException("Index fetch interrupted");
+ throw (InterruptedException)(new InterruptedException("Index fetch interrupted").initCause(e));
} catch (Exception e) {
throw new SolrException(ErrorCode.SERVER_ERROR, "Index fetch failed : ", e);
}