Skip to content

Commit

Permalink
HBASE-13366 Throw DoNotRetryIOException instead of read only IOExcept…
Browse files Browse the repository at this point in the history
…ion (Shaohui Liu)
  • Loading branch information
Liu Shaohui committed Apr 2, 2015
1 parent 4858008 commit a609e5e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -73,6 +73,7 @@
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;
Expand Down Expand Up @@ -3517,7 +3518,7 @@ private void checkResources() throws RegionTooBusyException {
*/
protected void checkReadOnly() throws IOException {
if (isReadOnly()) {
throw new IOException("region is read only");
throw new DoNotRetryIOException("region is read only");
}
}

Expand Down

0 comments on commit a609e5e

Please sign in to comment.