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:
Michael Stack 2009-10-28 22:37:06 +00:00
parent d91ee91b89
commit e525abf672
1 changed files with 2 additions and 9 deletions

View File

@ -582,15 +582,8 @@ public class ServerManager implements HConstants {
// Note that the table has been assigned and is waiting for the
// meta table to be updated.
this.master.getRegionManager().setOpen(region.getRegionNameAsString());
// Queue up an update to note the region location. Do inside
// a retry loop in case interrupted.
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);
}
// Queue up an update to note the region location.
this.master.queue(new ProcessRegionOpen(master, serverInfo, region));
}
}
}