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

JDBC driver makes 2 Open Session Calls for every open session

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.1, 2.0.1
    • 2.1.1, 2.2.0
    • JDBC
    • Reviewed
    • jdbc

    Description

      When HTTP is used as the transport mode by the Hive JDBC driver, we noticed that there is an additional open/close session just to validate the connection.

      TCLIService.Iface client = new TCLIService.Client(new TBinaryProtocol(transport));
      TOpenSessionResp openResp = client.OpenSession(new TOpenSessionReq());
      if (openResp != null)

      { client.CloseSession(new TCloseSessionReq(openResp.getSessionHandle())); }

      The open session call is a costly one and should not be used to test transport.

      Attachments

        1. HIVE-13264.9.patch
          7 kB
          NITHIN MAHESH
        2. HIVE-13264.8.patch
          15 kB
          NITHIN MAHESH
        3. HIVE-13264.7.patch
          13 kB
          NITHIN MAHESH
        4. HIVE-13264.6.patch
          6 kB
          Vaibhav Gumashta
        5. HIVE-13264.6.patch
          6 kB
          NITHIN MAHESH
        6. HIVE-13264.5.patch
          6 kB
          NITHIN MAHESH
        7. HIVE-13264.4.patch
          9 kB
          NITHIN MAHESH
        8. HIVE-13264.3.patch
          16 kB
          NITHIN MAHESH
        9. HIVE-13264.2.patch
          23 kB
          NITHIN MAHESH
        10. HIVE-13264.1.patch
          23 kB
          NITHIN MAHESH
        11. HIVE-13264.patch
          27 kB
          NITHIN MAHESH

        Activity

          People

            nithinmahesh NITHIN MAHESH
            nithinmahesh NITHIN MAHESH
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: