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

ConnectionImplementation leaks on construction failure

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 1.0.1.1, 1.1.2, 1.3.0, 2.0.0
    • Fix Version/s: 1.3.0, 2.0.0
    • Component/s: Client
    • Labels:
      None

      Description

      If an exception is thrown in the constructor of ConnectionImplementation we will have a leak zkRegistry, rpcClient, ...

      an example was clusterId parse error, causing zk (registry) leaks

      org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)
      	... 22 more
      Caused by: java.lang.ExceptionInInitializerError
      	at org.apache.hadoop.hbase.ClusterId.parseFrom(ClusterId.java:64)
      	at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:75)
      	at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:86)
      	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:850)
      

        Attachments

        1. HBASE-14485-v0.patch
          6 kB
          Matteo Bertozzi
        2. HBASE-14485-v1_branch-1.patch
          8 kB
          Matteo Bertozzi
        3. HBASE-14485-v1.patch
          8 kB
          Matteo Bertozzi

          Activity

            People

            • Assignee:
              mbertozzi Matteo Bertozzi
              Reporter:
              mbertozzi Matteo Bertozzi
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: