From 16f905ff13c4b6fd8babe92ce037ceaff41ae4d9 Mon Sep 17 00:00:00 2001 From: Chris Hostetter Date: Tue, 19 Apr 2016 13:53:42 -0700 Subject: [PATCH] SOLR-8971: Preserve root cause when wrapping exceptions --- solr/CHANGES.txt | 2 ++ .../org/apache/solr/handler/component/ShardHandlerFactory.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 14617ebe50c..89eb91f7c95 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -139,6 +139,8 @@ Bug Fixes * SOLR-8990: Fix top term links from schema browser page to use {!term} parser (hossman) +* SOLR-8971: Preserve root cause when wrapping exceptions (hossman) + Optimizations ---------------------- * SOLR-8722: Don't force a full ZkStateReader refresh on every Overseer operation. diff --git a/solr/core/src/java/org/apache/solr/handler/component/ShardHandlerFactory.java b/solr/core/src/java/org/apache/solr/handler/component/ShardHandlerFactory.java index 937c20a0e43..49b76794a7f 100644 --- a/solr/core/src/java/org/apache/solr/handler/component/ShardHandlerFactory.java +++ b/solr/core/src/java/org/apache/solr/handler/component/ShardHandlerFactory.java @@ -50,7 +50,7 @@ public abstract class ShardHandlerFactory { catch (Exception e) { throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, String.format(Locale.ROOT, "Error instantiating shardHandlerFactory class [%s]: %s", - info.className, e.getMessage())); + info.className, e.getMessage()), e); } }