Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14115

Fix resource leak in HMasterCommandLine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0, 1.3.0, 2.0.0
    • 1.2.0, 1.3.0, 2.0.0
    • master, tooling
    • None
    • Reviewed

    Description

      In HMasterCommandLine#stopMaster(), admin is not closed.

      HMasterCommandLine.java
      try (Connection connection = ConnectionFactory.createConnection(conf)) {
            try (Admin admin = connection.getAdmin()) {
              connection.getAdmin().shutdown();
            } catch (Throwable t) {
              LOG.error("Failed to stop master", t);
              return 1;
            }
          }
      

      Attachments

        1. HBASE-14115-branch-1-v1.patch
          2 kB
          Yuhao Bi
        2. HBASE-14115-branch-1.patch
          1 kB
          Yuhao Bi
        3. HBASE-14115.patch
          1 kB
          Yuhao Bi

        Activity

          People

            byh0831 Yuhao Bi
            byh0831 Yuhao Bi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: