hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aihua Xu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-13129) CliService leaks HMS connection
Date Wed, 24 Feb 2016 16:34:18 GMT

     [ https://issues.apache.org/jira/browse/HIVE-13129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aihua Xu updated HIVE-13129:
----------------------------
    Description: 
HIVE-12790 fixes the HMS connection leaking. But seems there is one more connection from CLIService.

The init() function in CLIService will get info from DB but we never close the HMS connection
for this service main thread.  

{noformat}
    // creates connection to HMS and thus *must* occur after kerberos login above
    try {
      applyAuthorizationConfigPolicy(hiveConf);
    } catch (Exception e) {
      throw new RuntimeException("Error applying authorization policy on hive configuration:
"
          + e.getMessage(), e);
{noformat}

  was:
HIVE-12790 fixes the HMS connection leaking. But seems there is one more connection from CLIService.

The init() function in CLIService will get info from DB but we never close the HMS connection.


{noformat}
    // creates connection to HMS and thus *must* occur after kerberos login above
    try {
      applyAuthorizationConfigPolicy(hiveConf);
    } catch (Exception e) {
      throw new RuntimeException("Error applying authorization policy on hive configuration:
"
          + e.getMessage(), e);
{noformat}


> CliService leaks HMS connection
> -------------------------------
>
>                 Key: HIVE-13129
>                 URL: https://issues.apache.org/jira/browse/HIVE-13129
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>    Affects Versions: 2.1.0
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>
> HIVE-12790 fixes the HMS connection leaking. But seems there is one more connection from
CLIService.
> The init() function in CLIService will get info from DB but we never close the HMS connection
for this service main thread.  
> {noformat}
>     // creates connection to HMS and thus *must* occur after kerberos login above
>     try {
>       applyAuthorizationConfigPolicy(hiveConf);
>     } catch (Exception e) {
>       throw new RuntimeException("Error applying authorization policy on hive configuration:
"
>           + e.getMessage(), e);
> {noformat}



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

Mime
View raw message