[
https://issues.apache.org/jira/browse/HIVE-16849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16056156#comment-16056156
]
Aihua Xu commented on HIVE-16849:
---------------------------------
[~ychena] Can you help review this change?
> Upgrade jetty version to 9.4.6.v20170531
> ----------------------------------------
>
> Key: HIVE-16849
> URL: https://issues.apache.org/jira/browse/HIVE-16849
> Project: Hive
> Issue Type: Improvement
> Components: Hive
> Affects Versions: 3.0.0
> Reporter: Aihua Xu
> Assignee: Aihua Xu
> Attachments: HIVE-16849.1.patch
>
>
> From HIVE-16846, the test case of TestJdbcWithMiniHS2#testHttpHeaderSize is
> returning http error code 413 (PAYLOAD_TOO_LARGE_413) rather than 431
> (REQUEST_HEADER_FIELDS_TOO_LARGE_431 ) while 431 seems more accurate and the
> newer version of jetty fixed such issue.
> {noformat}
> // This should fail with given HTTP response code 413 in error message,
> since header is more
> // than the configured the header size
> userName = StringUtils.leftPad("*", 2000);
> try {
> conn = getConnection(miniHS2.getJdbcURL(testDbName), userName,
> "password");
> } catch (Exception e) {
> assertTrue("Header exception thrown", e != null);
> assertTrue(e.getMessage().contains("HTTP Response code: 413"));
> } finally {
> if (conn != null) {
> conn.close();
> }
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)