HBASE-12319: Inconsistencies during region recovery due to close/open of a region during recovery; REVERT -- UNSTABLE BUILD
This commit is contained in:
parent
b827b6d02e
commit
a347d32cc5
|
@ -2591,7 +2591,7 @@ public class HRegionServer extends HasThread implements
|
|||
if (actualRegion == null) { // If already online, we still need to close it.
|
||||
LOG.info("The opening previously in progress has been cancelled by a CLOSE request.");
|
||||
// The master deletes the znode when it receives this exception.
|
||||
throw new RegionAlreadyInTransitionException("The region " + encodedName +
|
||||
throw new NotServingRegionException("The region " + encodedName +
|
||||
" was opening but not yet served. Opening is cancelled.");
|
||||
}
|
||||
} else if (Boolean.FALSE.equals(previous)) {
|
||||
|
|
|
@ -402,7 +402,7 @@ public class TestRegionServerNoMaster {
|
|||
getRS().rpcServices.closeRegion(null, crr);
|
||||
Assert.assertTrue(false);
|
||||
} catch (ServiceException expected) {
|
||||
Assert.assertTrue(expected.getCause() instanceof RegionAlreadyInTransitionException);
|
||||
Assert.assertTrue(expected.getCause() instanceof NotServingRegionException);
|
||||
}
|
||||
|
||||
// The close should have left the ZK state as it is: it's the job the AM to delete it
|
||||
|
|
Loading…
Reference in New Issue