hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [1/4] hbase git commit: HBASE-13366 Throw DoNotRetryIOException instead of read only IOException (Shaohui Liu)
Date Wed, 06 May 2015 01:23:52 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 4e83f5781 -> 593db0505
  refs/heads/branch-1 335a26a89 -> 308d51594
  refs/heads/branch-1.0 c87dd91f5 -> fd19f8d44
  refs/heads/branch-1.1 3eb53005a -> 8d3e933de


HBASE-13366 Throw DoNotRetryIOException instead of read only IOException (Shaohui Liu)


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

Branch: refs/heads/branch-1
Commit: 308d51594933ba24f92319746e30b6bb7722d09f
Parents: 335a26a
Author: Liu Shaohui <liushaohui@xiaomi.com>
Authored: Thu Apr 2 11:52:54 2015 +0800
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Tue May 5 18:12:39 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/308d5159/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 a6a0c57..66c09a8 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
@@ -74,6 +74,7 @@ import org.apache.hadoop.hbase.Cell;
 import org.apache.hadoop.hbase.CellScanner;
 import org.apache.hadoop.hbase.CellUtil;
 import org.apache.hadoop.hbase.CompoundConfiguration;
+import org.apache.hadoop.hbase.DoNotRetryIOException;
 import org.apache.hadoop.hbase.DroppedSnapshotException;
 import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HColumnDescriptor;
@@ -3523,7 +3524,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver,
Regi
    */
   protected void checkReadOnly() throws IOException {
     if (isReadOnly()) {
-      throw new IOException("region is read only");
+      throw new DoNotRetryIOException("region is read only");
     }
   }
 


Mime
View raw message