HBASE-1534 Got ZooKeeper event, state: Disconnected on HRS and then NPE on reinit

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@786676 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nitay Joffe 2009-06-19 21:46:25 +00:00
parent 4719eb4c3a
commit 22e101074b
2 changed files with 6 additions and 2 deletions

View File

@ -204,6 +204,8 @@ Release 0.20.0 - Unreleased
and merge tool and merge tool
HBASE-1531 Change new Get to use new filter API HBASE-1531 Change new Get to use new filter API
HBASE-1549 in zookeeper.sh, use localhost instead of 127.0.0.1 HBASE-1549 in zookeeper.sh, use localhost instead of 127.0.0.1
HBASE-1534 Got ZooKeeper event, state: Disconnected on HRS and then NPE on
reinit
IMPROVEMENTS IMPROVEMENTS
HBASE-1089 Add count of regions on filesystem to master UI; add percentage HBASE-1089 Add count of regions on filesystem to master UI; add percentage

View File

@ -1311,9 +1311,11 @@ public class HRegionServer implements HConstants, HRegionInterface,
* Run initialization using parameters passed us by the master. * Run initialization using parameters passed us by the master.
*/ */
private MapWritable reportForDuty() { private MapWritable reportForDuty() {
if (!getMaster()) { while (!getMaster()) {
return null; sleeper.sleep();
LOG.warn("Unable to get master for initialization");
} }
MapWritable result = null; MapWritable result = null;
long lastMsg = 0; long lastMsg = 0;
while(!stopRequested.get()) { while(!stopRequested.get()) {