Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16849

Upgrade jetty version to 9.4.6.v20170531

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • Hive
    • 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();
            }
          }
      

      Attachments

        1. HIVE-16849.1.patch
          2 kB
          Aihua Xu

        Activity

          People

            aihuaxu Aihua Xu
            aihuaxu Aihua Xu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: