HBASE-8899 Could not open a region on a server where it is being closed - ADDENDUM

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1502317 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jxiang 2013-07-11 18:18:57 +00:00
parent 4769fd0a6c
commit bcce156b8b
1 changed files with 2 additions and 1 deletions

View File

@ -3419,7 +3419,8 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
// be true or false. True means the region is opening on this RS; while false
// means the region is closing. Only return ALREADY_OPENED if not closing (i.e.
// not in transition any more, or still transition to open.
if (!Boolean.FALSE.equals(closing)) {
if (!Boolean.FALSE.equals(closing)
&& getFromOnlineRegions(region.getEncodedName()) != null) {
LOG.warn("Attempted open of " + region.getEncodedName()
+ " but already online on this server");
builder.addOpeningState(RegionOpeningState.ALREADY_OPENED);