[ 
https://issues.apache.org/jira/browse/HBASE-13653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14536902#comment-14536902
 ] 

Jerry He commented on HBASE-13653:
----------------------------------

Hi, Ted

We probably don't need to move up "this.walFactory = setupWALAndReplication()" 
anymore.
The client RPC call will anyway be rejected if the region server has not 
completed its initialization, even if we move up the walFactory.
ServerNotRunningYetException will be re-tried from the client.

> Uninitialized HRegionServer#walFactory may result in NullPointerException at 
> region server startup​
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-13653
>                 URL: https://issues.apache.org/jira/browse/HBASE-13653
>             Project: HBase
>          Issue Type: Bug
>          Components: hbase
>            Reporter: Romil Choksi
>            Assignee: Ted Yu
>         Attachments: 13653-branch-1-v2.txt, 13653-branch-1.txt
>
>
> hbase --config /tmp/hbaseConf org.apache.hadoop.hbase.IntegrationTestIngest 
> --monkey unbalance
> causes NPE
> {code}
> 2015-05-08 08:44:20,885 ERROR 
> [B.defaultRpcServer.handler=28,queue=1,port=16000] master.ServerManager: 
> Received exception in RPC for warmup 
> server:RegionServer1,16020,1431074656202region: {ENCODED => 
> 40133c823b6d9d9dece99db1aad62730, NAME => 
> 'SYSTEM.SEQUENCE,2\x00\x00\x00,1431070054641.40133c823b6d9d9dece99db1aad62730.',
>  STARTKEY => '2\x00\x00\x00', ENDKEY => '3\x00\x00\x00'}exception: 
> java.io.IOException: java.io.IOException
>       at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2154)
>       at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:101)
>       at 
> org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
>       at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
>       at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.getWAL(HRegionServer.java:1825)
>       at 
> org.apache.hadoop.hbase.regionserver.RSRpcServices.warmupRegion(RSRpcServices.java:1559)
>       at 
> org.apache.hadoop.hbase.protobuf.generated.AdminProtos$AdminService$2.callBlockingMethod(AdminProtos.java:21997)
>       at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2112)
>       ... 4 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to