hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nitay Joffe (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-1534) Got ZooKeeper event, state: Disconnected on HRS and then NPE on reinit
Date Wed, 17 Jun 2009 19:08:07 GMT

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

Nitay Joffe commented on HBASE-1534:
------------------------------------

This is a problem because init is assuming what it takes in will never be null, yet reportForDuty
can return null if it's unable to getMaster().
Seems to me like the initial reportForDuty should be in a loop until it returns something
non-null?

What do you think?

I can take this on if you like.

> Got ZooKeeper event, state: Disconnected on HRS and then NPE on reinit
> ----------------------------------------------------------------------
>
>                 Key: HBASE-1534
>                 URL: https://issues.apache.org/jira/browse/HBASE-1534
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.20.0
>
>
> We got disconnect from zk but then when we tried to reinitialize ourselves, got a NPE.
 See below.
> {code}
> 2009-06-17 11:58:55,102 [Thread-16] INFO org.apache.hadoop.hbase.regionserver.HRegionServer:
Starting shutdown thread. 
> 2009-06-17 11:58:55,102 [Thread-16] INFO org.apache.hadoop.hbase.regionserver.HRegionServer:
Shutdown thread complete
> 2009-06-17 11:58:55,102 [main-EventThread] INFO org.apache.hadoop.hbase.ipc.HBaseRpcMetrics:
Initializing RPC Metrics with hostName=HRegionServer, port=60021
> 2009-06-17 11:58:55,103 [main-EventThread] INFO org.apache.hadoop.hbase.regionserver.MemcacheFlusher:
globalMemcacheLimit=556.7m, globalMemcacheLimitLowMark=347.9m, maxHeap=1.4g
> 2009-06-17 11:58:55,103 [main-EventThread] INFO org.apache.hadoop.hbase.regionserver.HRegionServer:
Runs every 10000000ms
> 2009-06-17 11:58:55,148 [regionserver/0:0:0:0:0:0:0:0:60021] ERROR org.apache.hadoop.hbase.regionserver.HRegionServer:
Failed init
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.regionserver.HRegionServer.init(HRegionServer.java:713)
>     at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:431)
>     at java.lang.Thread.run(Thread.java:619)
> 2009-06-17 11:58:55,153 [regionserver/0:0:0:0:0:0:0:0:60021] FATAL org.apache.hadoop.hbase.regionserver.HRegionServer:
Unhandled exception. Aborting...
> java.io.IOException: Region server startup failed
>     at org.apache.hadoop.hbase.regionserver.HRegionServer.convertThrowableToIOE(HRegionServer.java:832)
>     at org.apache.hadoop.hbase.regionserver.HRegionServer.init(HRegionServer.java:751)
>     at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:431)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.NullPointerException
>     at org.apache.hadoop.hbase.regionserver.HRegionServer.init(HRegionServer.java:713)
>     ... 2 more   
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message