You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/04/06 19:37:25 UTC

[jira] [Created] (KYLIN-1564) Unclosed table in BuildCubeWithEngine#checkHFilesInHBase()

Ted Yu created KYLIN-1564:
-----------------------------

             Summary: 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
            Priority: Minor


{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)