[
https://issues.apache.org/jira/browse/KYLIN-3603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16632751#comment-16632751
]
ASF GitHub Bot commented on KYLIN-3603:
---------------------------------------
coveralls edited a comment on issue #271: KYLIN-3603 Close the HBase connection
after used in UpdateHTableHostCLI
URL: https://github.com/apache/kylin/pull/271#issuecomment-425606821
## Pull Request Test Coverage Report for [Build
3709](https://coveralls.io/builds/19259293)
* **0** of **3** **(0.0%)** changed or added relevant lines in **1** file
are covered.
* **7** unchanged lines in **4** files lost coverage.
* Overall coverage remained the same at **23.169%**
---
| Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
| :-----|--------------|--------|---: |
|
[storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/UpdateHTableHostCLI.java](https://coveralls.io/builds/19259293/source?filename=storage-hbase%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fstorage%2Fhbase%2Futil%2FUpdateHTableHostCLI.java#L62)
| 0 | 3 | 0.0%
<!-- | **Total:** | **0** | **3** | **0.0%** | -->
| Files with Coverage Reduction | New Missed Lines | % |
| :-----|--------------|--: |
|
[storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/UpdateHTableHostCLI.java](https://coveralls.io/builds/19259293/source?filename=storage-hbase%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fstorage%2Fhbase%2Futil%2FUpdateHTableHostCLI.java#L66)
| 1 | 0.0% |
|
[server-base/src/main/java/org/apache/kylin/rest/util/QueryRequestLimits.java](https://coveralls.io/builds/19259293/source?filename=server-base%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Frest%2Futil%2FQueryRequestLimits.java#L72)
| 1 | 47.62% |
|
[core-cube/src/main/java/org/apache/kylin/cube/cuboid/TreeCuboidScheduler.java](https://coveralls.io/builds/19259293/source?filename=core-cube%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fcube%2Fcuboid%2FTreeCuboidScheduler.java#L124)
| 2 | 68.46% |
|
[core-cube/src/main/java/org/apache/kylin/cube/inmemcubing/MemDiskStore.java](https://coveralls.io/builds/19259293/source?filename=core-cube%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fcube%2Finmemcubing%2FMemDiskStore.java#L449)
| 3 | 78.42% |
<!-- | **Total:** | **7** | | -->
| Totals | [](https://coveralls.io/builds/19259293)
|
| :-- | --: |
| Change from base [Build 3703](https://coveralls.io/builds/19245700): |
0.0% |
| Covered Lines: | 16159 |
| Relevant Lines: | 69745 |
---
##### 💛 - [Coveralls](https://coveralls.io)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> 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)