HBASE-1440 master won't go down because joined on a rootscanner that is waiting for ever

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@776451 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-05-19 20:41:18 +00:00
parent ef23636954
commit ba2d19938c
1 changed files with 3 additions and 2 deletions

View File

@ -978,7 +978,8 @@ class RegionManager implements HConstants {
// regionServerReport message from the HRegionServer that has been
// allocated the ROOT region below.
try {
rootRegionLocation.wait();
// Cycle rather than hold here in case master is closed meantime.
rootRegionLocation.wait(this.master.threadWakeFrequency);
} catch (InterruptedException e) {
// continue
}
@ -1350,4 +1351,4 @@ class RegionManager implements HConstants {
return Bytes.compareTo(getRegionName(), o.getRegionName());
}
}
}
}