HBASE-1816 Master rewrite; fix flag that reported fail on open, always
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@830783 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d91ee91b89
commit
e525abf672
|
@ -582,15 +582,8 @@ public class ServerManager implements HConstants {
|
||||||
// Note that the table has been assigned and is waiting for the
|
// Note that the table has been assigned and is waiting for the
|
||||||
// meta table to be updated.
|
// meta table to be updated.
|
||||||
this.master.getRegionManager().setOpen(region.getRegionNameAsString());
|
this.master.getRegionManager().setOpen(region.getRegionNameAsString());
|
||||||
// Queue up an update to note the region location. Do inside
|
// Queue up an update to note the region location.
|
||||||
// a retry loop in case interrupted.
|
this.master.queue(new ProcessRegionOpen(master, serverInfo, region));
|
||||||
boolean succeeded = false;
|
|
||||||
for (int i = 0; i < 10; i++) {
|
|
||||||
this.master.queue(new ProcessRegionOpen(master, serverInfo, region));
|
|
||||||
}
|
|
||||||
if (!succeeded) {
|
|
||||||
LOG.warn("FAILED ADDING OPEN TO TODO QUEUE: " + serverInfo);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue