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

connection#close throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.3
    • 2.5.0, 2.4.6, 2.3.7
    • Client
    • None

    Description

      In the ConnectionImplementation construction method, if getRegistry throws exception, registry will be null,and then close will throw NPE

      try {
        this.registry = AsyncRegistryFactory.getRegistry(conf);
        ...
      } catch (Throwable e) {
        // avoid leaks: registry, rpcClient, ...
        LOG.debug("connection construction failed", e);
        close();
        throw e;
      }
      

      Attachments

        Issue Links

          Activity

            People

              Bo Cui Bo Cui
              Bo Cui Bo Cui
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: