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

TokenUtil.obtainToken unnecessarily creates a local directory

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-beta-2, 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      On client code, when one calls TokenUtil.obtainToken it loads ProtobufUtil which in its static block initializes DynamicClassLoader and that creates the directory ${hbase.local.dir}/jars/ and also instantiates a filesystem class to access hbase.dynamic.jars.dir.

      https://github.com/apache/hbase/blob/master/hbase-common/src/main/java/org/apache/hadoop/hbase/util/DynamicClassLoader.java#L109-L127

      Since this is region server specific code, not expecting this to happen when one accesses hbase as a client.

        Attachments

        1. HBASE-19920.v9.patch
          16 kB
          Mike Drob
        2. HBASE-19920.v8.patch
          12 kB
          Mike Drob
        3. HBASE-19920.v7.patch
          12 kB
          Mike Drob
        4. HBASE-19920.v6.patch
          11 kB
          Mike Drob
        5. HBASE-19920.v5.patch
          11 kB
          Mike Drob
        6. HBASE-19920.v4.patch
          6 kB
          Mike Drob
        7. HBASE-19920.v3.patch
          29 kB
          Mike Drob
        8. HBASE-19920.v2.patch
          29 kB
          Mike Drob
        9. HBASE-19920.patch
          22 kB
          Mike Drob

          Activity

            People

            • Assignee:
              mdrob Mike Drob
              Reporter:
              rohini Rohini Palaniswamy
            • Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: