Skip to content

Commit 43bf06a

Browse files
committed
rethrow dispatchRequest exception
1 parent 2077ad4 commit 43bf06a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/main/java/org/elasticsearch/rest/RestController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,7 @@ private void maybeAggregateAndDispatchRequest(
403403
try {
404404
dispatchRequest(aggregatedRequest, restChannel, handler, methodHandlers, threadContext);
405405
} catch (Exception e) {
406-
// dispatchRequest already handles exceptions, this time we wont be able to send response
407-
logger.error(() -> "failed to send failure response for uri [" + aggregatedRequest.uri() + "]", e);
406+
throw new ElasticsearchException(e);
408407
}
409408
});
410409
}

0 commit comments

Comments
 (0)