You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/11/09 00:25:00 UTC

[jira] [Commented] (IMPALA-11007) Webserver should not log errors when handling HTTP HEAD

    [ https://issues.apache.org/jira/browse/IMPALA-11007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17440829#comment-17440829 ] 

ASF subversion and git services commented on IMPALA-11007:
----------------------------------------------------------

Commit efcf29fb82b19a538ded724282b94bd3a63f05ee in impala's branch refs/heads/master from Andrew Sherman
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=efcf29f ]

IMPALA-11007: Replies to HTTP HEAD requests should contain no content.

If a HEAD request to Impala's webserver, for example
  curl -I http://localhost:25000/metrics
does send content in the response then this results in ugly messages
being logged on the server side when the client side closes the
connection after it has read the headers in the http response. Fix this
by not sending (or generating) the content in reply to the HEAD
request.

TESTING:
  Ran all end-to-end tests.
  Added HEAD calls to various existing tests.

Change-Id: I5cc3bf72067dfa5bc24e29fe974e5762be507952
Reviewed-on: http://gerrit.cloudera.org:8080/18002
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> Webserver should not log errors when handling HTTP HEAD 
> --------------------------------------------------------
>
>                 Key: IMPALA-11007
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11007
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Andrew Sherman
>            Assignee: Andrew Sherman
>            Priority: Major
>
> If you send a HEAD request  to Impala's webserver, for  example
> {code}
> curl -I http://localhost:25000/metrics
> {code}
> then the logs will contain scary messages:
> {code}
> I1025 10:39:52.337021 3578299 webserver.cc:591] Webserver: error reading: Connection reset by peer
> {code}
> This does not happen with 
> {code}
> curl http://localhost:25000/metrics
> {code}
> Fix this by making the Impala webserver not send any content in replies to a HEAD message



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org