You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/07/01 20:46:00 UTC
[jira] [Closed] (HBASE-14115) Fix resource leak in HMasterCommandLine
[ https://issues.apache.org/jira/browse/HBASE-14115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell closed HBASE-14115.
---------------------------------------
> Fix resource leak in HMasterCommandLine
> ---------------------------------------
>
> Key: HBASE-14115
> URL: https://issues.apache.org/jira/browse/HBASE-14115
> Project: HBase
> Issue Type: Bug
> Components: master, tooling
> Affects Versions: 1.2.0, 1.3.0, 2.0.0
> Reporter: Yuhao Bi
> Assignee: Yuhao Bi
> Priority: Major
> Fix For: 1.2.0, 1.3.0, 2.0.0
>
> Attachments: HBASE-14115-branch-1-v1.patch, HBASE-14115-branch-1.patch, 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
(v8.20.10#820010)