Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-1564

Unclosed table in BuildCubeWithEngine#checkHFilesInHBase()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.5.1
    • Component/s: None
    • Labels:
      None

      Description

          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.

        Attachments

          Activity

            People

            • Assignee:
              lidong_sjtu Dong Li
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: