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)