You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Lijun Cao (JIRA)" <ji...@apache.org> on 2018/09/29 01:31:00 UTC

[jira] [Updated] (KYLIN-3603) HBase connection isn't closed in UpdateHTableHostCLI

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

Lijun Cao updated KYLIN-3603:
-----------------------------
    Priority: Minor  (was: Blocker)

> HBase connection isn't closed in UpdateHTableHostCLI
> ----------------------------------------------------
>
>                 Key: KYLIN-3603
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3603
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: Lijun Cao
>            Assignee: Lijun Cao
>            Priority: Minor
>             Fix For: v2.6.0
>
>
> The HBase connection is only used in the constructor to get an *_Admin_* , it should be closed after used.
> {code:java}
> public UpdateHTableHostCLI(List<String> htables, String oldHostValue) throws IOException {
>         this.htables = htables;
>         this.oldHostValue = oldHostValue;
>         Connection conn = ConnectionFactory.createConnection(HBaseConfiguration.create());
>         hbaseAdmin = conn.getAdmin();
>         this.kylinConfig = KylinConfig.getInstanceFromEnv();
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)