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

Unclosed table in BuildCubeWithEngine#checkHFilesInHBase()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • v1.5.1
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: