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