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

HBase connection isn't closed in UpdateHTableHostCLI

    XMLWordPrintableJSON

Details

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

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

              Dates

                Created:
                Updated:
                Resolved: