HBASE-4186 No region is added to regionsInTransitionInRS

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1156774 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2011-08-11 19:45:23 +00:00
parent 0cfb97d014
commit ba8bf53381
2 changed files with 3 additions and 0 deletions

View File

@ -199,6 +199,7 @@ Release 0.91.0 - Unreleased
HBASE-4156 ZKConfig defaults clientPort improperly (Michajlo Matijkiw)
HBASE-4184 CatalogJanitor doesn't work properly when "fs.default.name" isn't
set in config file (Ming Ma)
HBASE-4186 No region is added to regionsInTransitionInRS
IMPROVEMENTS
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)

View File

@ -2336,6 +2336,7 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
}
LOG.info("Received request to open region: " +
region.getRegionNameAsString());
this.regionsInTransitionInRS.add(region.getEncodedNameAsBytes());
HTableDescriptor htd = this.tableDescriptors.get(region.getTableName());
if (region.isRootRegion()) {
this.service.submit(new OpenRootHandler(this, this, region, htd));
@ -2397,6 +2398,7 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
region.getEncodedName());
return false;
}
this.regionsInTransitionInRS.add(region.getEncodedNameAsBytes());
CloseRegionHandler crh = null;
if (region.isRootRegion()) {
crh = new CloseRootHandler(this, this, region, abort, zk);