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

Open region failed cause memory leak

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.5, 2.1.4
    • Fix Version/s: 3.0.0, 2.2.1, 2.1.6
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In some cases (for example, coprocessor path is wrong) region open failed, MetricsRegionWrapperImpl is already init and not close, cause memory leak;

      2019-02-21 15:41:32,929 ERROR [RS_OPEN_REGION-hb-2zedsc3fxjn12dl6u-005:16020-7] regionserver.RegionCoprocessorHost(362): Failed to load coprocessor org.apache.kylin.storage.hbase.cube.v2.coprocessor.endpoint.CubeVisitService
      java.lang.IllegalArgumentException: java.net.UnknownHostException: emr-cluster
      at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:378)
      at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:310)
      at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:176)
      at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:678)
      at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619)
      at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
      at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2653)
      at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)
      at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)
      at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)
      at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
      at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
      at org.apache.hadoop.hbase.util.CoprocessorClassLoader.init(CoprocessorClassLoader.java:165)
      at org.apache.hadoop.hbase.util.CoprocessorClassLoader.getClassLoader(CoprocessorClassLoader.java:250)
      at org.apache.hadoop.hbase.coprocessor.CoprocessorHost.load(CoprocessorHost.java:194)
      at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.loadTableCoprocessors(RegionCoprocessorHost.java:352)
      at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.<init>(RegionCoprocessorHost.java:240)
      at org.apache.hadoop.hbase.regionserver.HRegion.<init>(HRegion.java:749)
      at org.apache.hadoop.hbase.regionserver.HRegion.<init>(HRegion.java:657)
      at sun.reflect.GeneratedConstructorAccessor13.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      at org.apache.hadoop.hbase.regionserver.HRegion.newHRegion(HRegion.java:6727)
      at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:7037)
      at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:7009)
      at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6965)
      at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6916)
      at org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.openRegion(OpenRegionHandler.java:362)
      at org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.process(OpenRegionHandler.java:129)

       

       

        Attachments

        1. 0001-HBASE-22169-Open-region-failed-cause-memory-leak.patch
          8 kB
          Michael Stack
        2. HBASE-22169-branch-2.1-v1.patch
          7 kB
          Bing Xiao
        3. HBASE-22169-branch-2.2-v1.patch
          7 kB
          Bing Xiao
        4. HBASE-22169-branch-2-v1.patch
          7 kB
          Bing Xiao
        5. HBASE-22169-master-v1.patch
          6 kB
          Bing Xiao
        6. HBASE-22169-master-v2.patch
          8 kB
          Bing Xiao
        7. HBASE-22169-master-v3.patch
          8 kB
          Bing Xiao

          Issue Links

            Activity

              People

              • Assignee:
                luffy123 Bing Xiao
                Reporter:
                luffy123 Bing Xiao
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: