hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [3/4] hbase git commit: HBASE-13366 Throw DoNotRetryIOException instead of read only IOException (Shaohui Liu)
Date Wed, 06 May 2015 01:23:54 GMT
HBASE-13366 Throw DoNotRetryIOException instead of read only IOException (Shaohui Liu)

Conflicts:
	hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java


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

Branch: refs/heads/branch-1.0
Commit: fd19f8d44b8d298d750186d05e028c406d71759a
Parents: c87dd91
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:13:30 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/fd19f8d4/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 a45f538..1a57325 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
@@ -3237,7 +3237,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver
{ //
    */
   protected void checkReadOnly() throws IOException {
     if (this.writestate.isReadOnly()) {
-      throw new IOException("region is read only");
+      throw new DoNotRetryIOException("region is read only");
     }
   }
 


Mime
View raw message