hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-14893 Race between mutation on region and region closing operation leads to NotServingRegionException
Date Fri, 27 Nov 2015 23:32:48 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 9a11c025f -> 9de4691a0


HBASE-14893 Race between mutation on region and region closing operation leads to NotServingRegionException


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

Branch: refs/heads/branch-1
Commit: 9de4691a0a1bf6030fd2521659694cbeb09cc8ce
Parents: 9a11c02
Author: tedyu <yuzhihong@gmail.com>
Authored: Fri Nov 27 15:32:42 2015 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Fri Nov 27 15:32:42 2015 -0800

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/regionserver/HRegion.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/9de4691a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index 3c84b54..3d1d717 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -1403,10 +1403,10 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver,
Regi
       }
     }
 
-    this.closing.set(true);
-    status.setStatus("Disabling writes for close");
     // block waiting for the lock for closing
     lock.writeLock().lock();
+    this.closing.set(true);
+    status.setStatus("Disabling writes for close");
     try {
       if (this.isClosed()) {
         status.abort("Already got closed by another process");


Mime
View raw message