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:
Mark Robert Miller 2016-01-13 23:58:06 +00:00
parent b904599036
commit bff4ab0cd9
1 changed files with 7 additions and 7 deletions

View File

@ -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();
}
}
}
}