hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "NITHIN MAHESH (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-13264) JDBC driver makes 2 Open Session Calls for every open session
Date Fri, 11 Mar 2016 02:46:40 GMT
NITHIN MAHESH created HIVE-13264:
------------------------------------

             Summary: JDBC driver makes 2 Open Session Calls for every open session
                 Key: HIVE-13264
                 URL: https://issues.apache.org/jira/browse/HIVE-13264
             Project: Hive
          Issue Type: Bug
          Components: JDBC
            Reporter: NITHIN MAHESH
            Assignee: NITHIN MAHESH


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. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message