HBASE-16270 Handle duplicate clearing of snapshot in region replicas (Robert Yokota)
This commit is contained in:
parent
3606b890f8
commit
f0385b4b83
|
@ -189,6 +189,7 @@ public class DefaultMemStore implements MemStore {
|
|||
@Override
|
||||
public void clearSnapshot(long id) throws UnexpectedStateException {
|
||||
MemStoreLAB tmpAllocator = null;
|
||||
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