mirror of https://github.com/apache/lucene.git
SOLR-8453: Only consume input here if exp != null, otherwise it is done in writeResponse.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1724529 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b904599036
commit
bff4ab0cd9
|
@ -623,19 +623,19 @@ public class HttpSolrCall {
|
|||
exp = e;
|
||||
} finally {
|
||||
try {
|
||||
try {
|
||||
if (exp != null) {
|
||||
if (exp != null) {
|
||||
try {
|
||||
SimpleOrderedMap info = new SimpleOrderedMap();
|
||||
int code = ResponseUtils.getErrorInfo(ex, info, log);
|
||||
sendError(code, info.toString());
|
||||
}
|
||||
} finally {
|
||||
if (core == null && localCore != null) {
|
||||
localCore.close();
|
||||
} finally {
|
||||
consumeInput(req);
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
consumeInput(req);
|
||||
if (core == null && localCore != null) {
|
||||
localCore.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue