Abhishek Singh Chouhan created HBASE-20139:
----------------------------------------------
Summary: NPE in RSRpcServices.get() when getRegion throws an
exception
Key: HBASE-20139
URL: https://issues.apache.org/jira/browse/HBASE-20139
Project: HBase
Issue Type: Bug
Affects Versions: 1.3.1
Reporter: Abhishek Singh Chouhan
Assignee: Abhishek Singh Chouhan
Fix For: 1.3.2, 1.5.0, 1.4.3
We can get a NPE in RsRpcServices at
{code:java}
} finally {
if (regionServer.metricsRegionServer != null) {
regionServer.metricsRegionServer.updateGet(
-> region.getTableDesc().getTableName(), EnvironmentEdgeManager.currentTime() -
before);
}
if (quota != null) {
quota.close();
}{code}
when region itself is null which might happen when getRegion throws an
exception, this is then sent back to the client which is not able to handle
this/make sense of it.
{code:java}
2018-03-06 08:31:25,100 DEBUG [0,queue=4,port=60020] ipc.RpcServer -
RpcServer.FifoWFPBQ.default.handler=30,queue=4,port=60020: callId: 5605567
service: ClientService methodName: Get size: 79 connection: xyz:58736 deadline:
9223372036854775807
java.io.IOException
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2431)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:124)
at
org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:188)
at
org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:168)
Caused by: java.lang.NullPointerException
at
org.apache.hadoop.hbase.regionserver.RSRpcServices.get(RSRpcServices.java:2246)
at
org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:35068)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2373)
... 3 more{code}
This has been fixed by [~stack] over at HBASE-18946 for master, backporting the
same to branch-1, 1.3 and 1.4
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)