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

HBase connection isn't closed in UpdateHTableHostCLI

    XMLWordPrintableJSON

    Details

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

      Description

      The HBase connection is only used in the constructor to get an Admin , it should be closed after used.

      public UpdateHTableHostCLI(List<String> htables, String oldHostValue) throws IOException {
              this.htables = htables;
              this.oldHostValue = oldHostValue;
              Connection conn = ConnectionFactory.createConnection(HBaseConfiguration.create());
              hbaseAdmin = conn.getAdmin();
              this.kylinConfig = KylinConfig.getInstanceFromEnv();
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                caolijun1166 Lijun Cao
                Reporter:
                caolijun1166 Lijun Cao
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: