[
https://issues.apache.org/jira/browse/HBASE-14115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14635855#comment-14635855
]
Hudson commented on HBASE-14115:
--------------------------------
FAILURE: Integrated in HBase-TRUNK #6670 (See
[https://builds.apache.org/job/HBase-TRUNK/6670/])
HBASE-14115 Fix resource leak in HMasterCommandLine (Yuhao Bi) (tedyu: rev
5ec5552be0534dbf4b07ef6607741ae6f9ab0495)
*
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java
> 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
> Fix For: 2.0.0
>
> 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)