hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject [2/4] hbase git commit: HBASE-16270 Handle duplicate clearing of snapshot in region replicas (Robert Yokota)
Date Wed, 24 Aug 2016 13:51:51 GMT
HBASE-16270 Handle duplicate clearing of snapshot in region replicas (Robert Yokota)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/25995a2b
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/25995a2b
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/25995a2b

Branch: refs/heads/branch-1.3
Commit: 25995a2bf71195d0fe697e919f226a21b0d84be1
Parents: 6b9a0b3
Author: Enis Soztutar <enis@apache.org>
Authored: Wed Aug 24 06:43:19 2016 -0700
Committer: Enis Soztutar <enis@apache.org>
Committed: Wed Aug 24 06:43:28 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/regionserver/DefaultMemStore.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/25995a2b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DefaultMemStore.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DefaultMemStore.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DefaultMemStore.java
index 458e3b8..70f5a12 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DefaultMemStore.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DefaultMemStore.java
@@ -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);


Mime
View raw message