-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: v1.5.1
-
Component/s: None
-
Labels:None
private void checkHFilesInHBase(CubeSegment segment) throws IOException { Configuration conf = HBaseConfiguration.create(HadoopUtil.getCurrentConfiguration()); String tableName = segment.getStorageLocationIdentifier(); HTable table = new HTable(conf, tableName);
The table is not closed upon return from the method.
Consider using try-with-resources to make sure it is closed.