You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2015/05/06 03:23:55 UTC
[4/4] hbase git commit: HBASE-13366 Throw DoNotRetryIOException
instead of read only IOException (Shaohui Liu)
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/593db050
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/593db050
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/593db050
Branch: refs/heads/0.98
Commit: 593db050500e69bb87d5666ac235e1588d0f268b
Parents: 4e83f57
Author: Liu Shaohui <li...@xiaomi.com>
Authored: Thu Apr 2 11:52:54 2015 +0800
Committer: Andrew Purtell <ap...@apache.org>
Committed: Tue May 5 18:13:39 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/593db050/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 8837096..8148da5 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
@@ -3045,7 +3045,7 @@ public class HRegion implements HeapSize { // , Writable{
*/
protected void checkReadOnly() throws IOException {
if (this.writestate.isReadOnly()) {
- throw new IOException("region is read only");
+ throw new DoNotRetryIOException("region is read only");
}
}