From 2f7d5e6354ca2ca5cbecae7bdd5df79d50848551 Mon Sep 17 00:00:00 2001 From: stack Date: Thu, 10 Dec 2015 21:25:21 -0800 Subject: [PATCH] HBASE-14946 Don't allow multi's to over run the max result size. --- .../org/apache/hadoop/hbase/MultiActionResultTooLarge.java | 6 +++++- .../org/apache/hadoop/hbase/RetryImmediatelyException.java | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/MultiActionResultTooLarge.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/MultiActionResultTooLarge.java index d06eea1b974..fdff5544cfd 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/MultiActionResultTooLarge.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/MultiActionResultTooLarge.java @@ -18,13 +18,17 @@ package org.apache.hadoop.hbase; +import org.apache.hadoop.hbase.classification.InterfaceAudience; +import org.apache.hadoop.hbase.classification.InterfaceStability; + /** * Exception thrown when the result needs to be chunked on the server side. * It signals that retries should happen right away and not count against the number of * retries because some of the multi was a success. */ +@InterfaceAudience.Public +@InterfaceStability.Evolving public class MultiActionResultTooLarge extends RetryImmediatelyException { - public MultiActionResultTooLarge(String s) { super(s); } diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/RetryImmediatelyException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/RetryImmediatelyException.java index 1b3990477ac..e0b90fd04e5 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/RetryImmediatelyException.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/RetryImmediatelyException.java @@ -19,7 +19,11 @@ package org.apache.hadoop.hbase; import java.io.IOException; +import org.apache.hadoop.hbase.classification.InterfaceAudience; +import org.apache.hadoop.hbase.classification.InterfaceStability; +@InterfaceAudience.Public +@InterfaceStability.Evolving public class RetryImmediatelyException extends IOException { public RetryImmediatelyException(String s) { super(s);