We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c73a815 commit 64fa87dCopy full SHA for 64fa87d
server/src/main/java/org/elasticsearch/search/SearchService.java
@@ -615,7 +615,9 @@ static <T> ActionListener<T> wrapListenerForErrorHandling(
615
shardId,
616
taskId
617
);
618
- // Keep this logic aligned with that of SUPPRESSED_ERROR_LOGGER in RestResponse
+ // Keep this logic aligned with that of SUPPRESSED_ERROR_LOGGER in RestResponse.
619
+ // Besides, log at DEBUG level when the service is stopped or closed, as at that point the HttpServerTransport
620
+ // will already be closed and thus any error will not be reported or seen by the REST layer
621
if (ExceptionsHelper.status(e).getStatus() < 500
622
|| ExceptionsHelper.isNodeOrShardUnavailableTypeException(e)
623
|| lifecycle.stoppedOrClosed()) {
0 commit comments