SOLR-6161: SolrDispatchFilter should throw java.lang.Error back even if wrapped in another exception

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1602590 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2014-06-14 14:46:10 +00:00
parent 1e90ab3e64
commit a52a82bec5
2 changed files with 7 additions and 0 deletions

View File

@ -224,6 +224,9 @@ Other Changes
* SOLR-5940: post.jar reports back detailed error in case of error responses.
(Sameer Maggon, shalin, Uwe Schindler)
* SOLR-6161: SolrDispatchFilter should throw java.lang.Error back even if wrapped in
another exception. (Miklos Christine via shalin)
Optimizations
----------------------

View File

@ -437,6 +437,10 @@ public class SolrDispatchFilter extends BaseSolrFilter {
if (ex instanceof Error) {
throw (Error) ex;
}
if (ex.getCause() != null && ex.getCause() instanceof Error) {
log.error("An Error was wrapped in another exception - please report complete stacktrace on SOLR-6161", ex);
throw (Error) ex.getCause();
}
return;
} finally {
try {