HBASE-24517 Addendum add more comments (#1882)
Signed-off-by: Jan Hentschel <jan.hentschel@ultratendency.com> Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
b83d38fb94
commit
d0f190bdf0
@ -228,6 +228,9 @@ public class AssignmentManager {
|
|||||||
ZKWatcher zkw = master.getZooKeeper();
|
ZKWatcher zkw = master.getZooKeeper();
|
||||||
// it could be null in some tests
|
// it could be null in some tests
|
||||||
if (zkw != null) {
|
if (zkw != null) {
|
||||||
|
// here we are still in the early steps of active master startup. There is only one thread(us)
|
||||||
|
// can access AssignmentManager and create region node, so here we do not need to lock the
|
||||||
|
// region node.
|
||||||
RegionState regionState = MetaTableLocator.getMetaRegionState(zkw);
|
RegionState regionState = MetaTableLocator.getMetaRegionState(zkw);
|
||||||
RegionStateNode regionNode =
|
RegionStateNode regionNode =
|
||||||
regionStates.getOrCreateRegionStateNode(RegionInfoBuilder.FIRST_META_REGIONINFO);
|
regionStates.getOrCreateRegionStateNode(RegionInfoBuilder.FIRST_META_REGIONINFO);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user