HBASE-16270 Handle duplicate clearing of snapshot in region replicas (Robert Yokota)

This commit is contained in:
Enis Soztutar 2016-08-24 06:43:19 -07:00
parent 3606b890f8
commit f0385b4b83
1 changed files with 1 additions and 0 deletions

View File

@ -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);