Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-4838

RangerAuthorizationCoprocessor throw NPE cause RegionServer abort.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 2.3.0
    • None
    • plugins
    • None

    Description

      When do scan/put for hbase at same time, ranger coprocesser will throw NEP Occasionally.

       

      2024-07-01 03:58:20,189 | ERROR | RpcServer.default.FPBQ.Fifo.handler=147,queue=7,port=21026 | ***** ABORTING region server 8-5-242-2,21026,1719568319913: The coprocessor org.apache.ranger.auth****##****erAuth***##***** threw java.lang.NullPointerException ***** | org.slf4j.helpers.MarkerIgnoringBase.error(MarkerIgnoringBase.java:159)
      java.lang.NullPointerException
              at java.lang.ThreadLocal$ThreadLocalMap.expungeStaleEntry(ThreadLocal.java:615)
              at java.lang.ThreadLocal$ThreadLocalMap.remove(ThreadLocal.java:520)
              at java.lang.ThreadLocal$ThreadLocalMap.access$200(ThreadLocal.java:319)
              at java.lang.ThreadLocal.remove(ThreadLocal.java:242)
              at org.apache.ranger.plugin.classloader.RangerPluginClassLoader.deactivate(RangerPluginClassLoader.java:280)
              at org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor.deactivatePluginClassLoader(RangerAuthorizationCoprocessor.java:2865)
              at org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor.postStartRegionOperation(RangerAuthorizationCoprocessor.java:1530)
              at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$56.call(RegionCoprocessorHost.java:1495)
              at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$56.call(RegionCoprocessorHost.java:1492)
              at org.apache.hadoop.hbase.coprocessor.CoprocessorHost$ObserverOperationWithoutResult.callObserver(CoprocessorHost.java:589)
              at org.apache.hadoop.hbase.coprocessor.CoprocessorHost.execOperation(CoprocessorHost.java:662)
              at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.postStartRegionOperation(RegionCoprocessorHost.java:1492)
              at org.apache.hadoop.hbase.regionserver.HRegion.startRegionOperation(HRegion.java:8968)
              at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:3723)
              at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:4096)
              at org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:45583)
              at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:514)
              at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:123)
              at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:369)
              at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:349)

      Attachments

        Activity

          People

            Unassigned Unassigned
            chaijunjie chaijunjie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: