HBASE-1125 IllegalStateException: Cannot set a region to be closed if it was not already marked as pending close
We now allow transition from either pendingOpen or pendingClose to closed. git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@734226 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0b36056fde
commit
77a128ade0
|
@ -140,6 +140,8 @@ Release 0.19.0 - Unreleased
|
|||
HBASE-1116 generated web.xml and svn don't play nice together
|
||||
HBASE-1119 ArrayOutOfBoundsException in HStore.compact
|
||||
HBASE-1121 Cluster confused about where -ROOT- is
|
||||
HBASE-1125 IllegalStateException: Cannot set a region to be closed if it was
|
||||
not already marked as pending close
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-901 Add a limit to key length, check key and value length on client side
|
||||
|
|
|
@ -1174,10 +1174,10 @@ class RegionManager implements HConstants {
|
|||
}
|
||||
|
||||
synchronized void setClosed() {
|
||||
if (!pendingClose) {
|
||||
if (!pendingClose && !pendingOpen) {
|
||||
throw new IllegalStateException(
|
||||
"Cannot set a region to be closed if it was not already marked as" +
|
||||
" pending close. State: " + toString());
|
||||
" pending close or pending open. State: " + toString());
|
||||
}
|
||||
this.unassigned = false;
|
||||
this.pendingOpen = false;
|
||||
|
|
Loading…
Reference in New Issue