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 2020/06/30 22:25:00 UTC

[jira] [Commented] (IMPALA-9540) Impala Shell sends duplicate "Host" headers in http mode

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

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

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

IMPALA-9540 Test that Impala Shell no longer sends duplicate "Host" headers in http mode.

Many http servers will not accept an http request that has multiple
copies of the "Host" header. A recent toolchain change patches
Thrift so that will not send the extraneous header (in THttpClient).
This change tests that the duplicate headers are not sent,

TESTING:
  Ran all end-to-end tests.
  Rewrote an existing Shell test to check that only one "Host" header
  is sent.

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


> Impala Shell sends duplicate "Host" headers in http mode
> --------------------------------------------------------
>
>                 Key: IMPALA-9540
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9540
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Andrew Sherman
>            Assignee: Andrew Sherman
>            Priority: Major
>
> Running "impala-shell --protocol='hs2-http' ..." the impala shell sends two copies of the "Host" header. When connecting to the minicluster the values are
> {code}
> Host: “localhost”
> Host: “localhost:8080”
> {code}
> This is bad because the http server in golang's net/http package will reject any http call with 
> {code}
> badRequestError("too many Host headers")
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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