Details
-
Improvement
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
3.0.0
-
None
-
None
Description
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.
// 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(); } }