You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2011/08/30 01:15:39 UTC

[jira] [Commented] (HBASE-4286) NPE when master shuts down during processing of server shutdowns

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

Todd Lipcon commented on HBASE-4286:
------------------------------------

Thrown on this line:
{code}
    // Iterate regions that were on this server and assign them
    for (Map.Entry<HRegionInfo, Result> e: hris.entrySet()) {
{code}

> NPE when master shuts down during processing of server shutdowns
> ----------------------------------------------------------------
>
>                 Key: HBASE-4286
>                 URL: https://issues.apache.org/jira/browse/HBASE-4286
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Todd Lipcon
>
> If the master shuts down while trying to process a server crash, it will escape out of the loop trying to read META, and then the {{hris}} variable is null. This results in the following NPE:
> 2011-08-29 16:05:52,436 INFO org.apache.hadoop.hbase.master.handler.ServerShutdownHandler: Reassigning 0 region(s) that c0317.hal.cloudera.com,60020,1314658642935 was carrying (skipping 0 regions(s) that are already in transition)
> 2011-08-29 16:05:52,436 ERROR org.apache.hadoop.hbase.executor.EventHandler: Caught throwable while processing event M_META_SERVER_SHUTDOWN
> java.lang.NullPointerException
> 	at org.apache.hadoop.hbase.master.handler.ServerShutdownHandler.process(ServerShutdownHandler.java:207)
> 	at org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:156)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira