HBASE-3057 Race condition when closing regions that causes flakiness in TestRestartCluster

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1003204 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Gray 2010-09-30 18:53:20 +00:00
parent d2ce2b36e0
commit 8863ae5a0e
2 changed files with 3 additions and 1 deletions

View File

@ -556,6 +556,8 @@ Release 0.21.0 - Unreleased
HBASE-3054 Remore TestEmptyMetaInfo; it doesn't make sense any more.
HBASE-3056 Fix ordering in ZKWatcher constructor to prevent weird race
condition
HBASE-3057 Race condition when closing regions that causes flakiness in
TestRestartCluster
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -115,8 +115,8 @@ public class CloseRegionHandler extends EventHandler {
try {
// TODO: If we need to keep updating CLOSING stamp to prevent against
// a timeout if this is long-running, need to spin up a thread?
this.rsServices.removeFromOnlineRegions(regionInfo.getEncodedName());
region.close(abort);
this.rsServices.removeFromOnlineRegions(regionInfo.getEncodedName());
} catch (IOException e) {
LOG.error("IOException closing region for " + regionInfo);
if (this.zk) deleteClosingState();