mirror of https://github.com/apache/lucene.git
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:
parent
1e90ab3e64
commit
a52a82bec5
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue