HBASE-14946 Don't allow multi's to over run the max result size.
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/22b95aeb Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/22b95aeb Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/22b95aeb Branch: refs/heads/hbase-12439 Commit: 22b95aebcd7fc742412ab514520008fda5e327de Parents: cff664c Author: stack <st...@apache.org> Authored: Thu Dec 10 21:25:21 2015 -0800 Committer: stack <st...@apache.org> Committed: Thu Dec 10 21:25:21 2015 -0800 ---------------------------------------------------------------------- .../org/apache/hadoop/hbase/MultiActionResultTooLarge.java | 6 +++++- .../org/apache/hadoop/hbase/RetryImmediatelyException.java | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/22b95aeb/hbase-client/src/main/java/org/apache/hadoop/hbase/MultiActionResultTooLarge.java ---------------------------------------------------------------------- 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 d06eea1..fdff554 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); } http://git-wip-us.apache.org/repos/asf/hbase/blob/22b95aeb/hbase-client/src/main/java/org/apache/hadoop/hbase/RetryImmediatelyException.java ---------------------------------------------------------------------- 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 1b39904..e0b90fd 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);