[
https://issues.apache.org/jira/browse/KYLIN-3603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16632746#comment-16632746
]
ASF subversion and git services commented on KYLIN-3603:
--------------------------------------------------------
Commit 910b79e81f415eb9db4fcb414792132ade71df74 in kylin's branch
refs/heads/master from [~caolijun1166]
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=910b79e ]
KYLIN-3603 Close the HBase connection after used in UpdateHTableHostCLI
> 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)