From a609e5e10748db758d91826058806723f97972da Mon Sep 17 00:00:00 2001 From: Liu Shaohui Date: Thu, 2 Apr 2015 11:52:54 +0800 Subject: [PATCH] HBASE-13366 Throw DoNotRetryIOException instead of read only IOException (Shaohui Liu) --- .../java/org/apache/hadoop/hbase/regionserver/HRegion.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 2ca1eb0794b..b8e3e5271ff 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 @@ -73,6 +73,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; @@ -3517,7 +3518,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"); } }