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:
parent
4769fd0a6c
commit
bcce156b8b
|
@ -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
|
// 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.
|
// means the region is closing. Only return ALREADY_OPENED if not closing (i.e.
|
||||||
// not in transition any more, or still transition to open.
|
// 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()
|
LOG.warn("Attempted open of " + region.getEncodedName()
|
||||||
+ " but already online on this server");
|
+ " but already online on this server");
|
||||||
builder.addOpeningState(RegionOpeningState.ALREADY_OPENED);
|
builder.addOpeningState(RegionOpeningState.ALREADY_OPENED);
|
||||||
|
|
Loading…
Reference in New Issue