[
https://issues.apache.org/jira/browse/KYLIN-1564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dong Li closed KYLIN-1564.
--------------------------
Resolved in release 1.5.1 (2016-04-13)
> Unclosed table in BuildCubeWithEngine#checkHFilesInHBase()
> ----------------------------------------------------------
>
> Key: KYLIN-1564
> URL: https://issues.apache.org/jira/browse/KYLIN-1564
> Project: Kylin
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Dong Li
> Priority: Minor
> Fix For: v1.5.1
>
>
> {code}
> private void checkHFilesInHBase(CubeSegment segment) throws IOException {
> Configuration conf =
> HBaseConfiguration.create(HadoopUtil.getCurrentConfiguration());
> String tableName = segment.getStorageLocationIdentifier();
> HTable table = new HTable(conf, tableName);
> {code}
> The table is not closed upon return from the method.
> Consider using try-with-resources to make sure it is closed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)