HBASE-16270 Handle duplicate clearing of snapshot in region replicas (Robert Yokota)
This commit is contained in:
parent
31f16d6aec
commit
dda8f67b2c
|
@ -190,6 +190,7 @@ public abstract class AbstractMemStore implements MemStore {
|
|||
*/
|
||||
@Override
|
||||
public void clearSnapshot(long id) throws UnexpectedStateException {
|
||||
if (this.snapshotId == -1) return; // already cleared
|
||||
if (this.snapshotId != id) {
|
||||
throw new UnexpectedStateException("Current snapshot id is " + this.snapshotId + ",passed "
|
||||
+ id);
|
||||
|
|
Loading…
Reference in New Issue