hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuhao Bi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-14115) Fix resource leak in HMasterCommandLine
Date Fri, 17 Jul 2015 08:01:05 GMT

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

Yuhao Bi updated HBASE-14115:
-----------------------------
    Status: Patch Available  (was: Open)

> Fix resource leak in HMasterCommandLine
> ---------------------------------------
>
>                 Key: HBASE-14115
>                 URL: https://issues.apache.org/jira/browse/HBASE-14115
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Yuhao Bi
>            Assignee: Yuhao Bi
>         Attachments: HBASE-14115.patch
>
>
> In HMasterCommandLine#stopMaster(), admin is not closed.
> {code:title=HMasterCommandLine.java|borderStyle=solid}
> try (Connection connection = ConnectionFactory.createConnection(conf)) {
>       try (Admin admin = connection.getAdmin()) {
>         connection.getAdmin().shutdown();
>       } catch (Throwable t) {
>         LOG.error("Failed to stop master", t);
>         return 1;
>       }
>     }
> {code}



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

Mime
View raw message