ACCUMULO-4094 Document limitation on recovering from MRE in BatchWriter.
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/50b29afe Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/50b29afe Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/50b29afe Branch: refs/heads/1.6 Commit: 50b29afe1b8fdf477d1b935c1e0ff0794e5c9087 Parents: a1dd58d Author: Josh Elser <els...@apache.org> Authored: Wed Dec 30 22:26:52 2015 -0500 Committer: Josh Elser <els...@apache.org> Committed: Wed Dec 30 22:26:52 2015 -0500 ---------------------------------------------------------------------- .../main/java/org/apache/accumulo/core/client/BatchWriter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/50b29afe/core/src/main/java/org/apache/accumulo/core/client/BatchWriter.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/client/BatchWriter.java b/core/src/main/java/org/apache/accumulo/core/client/BatchWriter.java index 94d988d..b4d81aa 100644 --- a/core/src/main/java/org/apache/accumulo/core/client/BatchWriter.java +++ b/core/src/main/java/org/apache/accumulo/core/client/BatchWriter.java @@ -20,11 +20,14 @@ import org.apache.accumulo.core.data.Mutation; /** * Send Mutations to a single Table in Accumulo. - * + * <p> * When the user uses a Connector to create a BatchWriter, they specify how much memory and how many threads it should use. As the user adds mutations to the * batch writer, it buffers them. Once the buffered mutations have used half of the user specified buffer, the mutations are dumped into the background to be * written by a thread pool. If the user specified memory completely fills up, then writes are held. When a user calls flush, it does not return until all * buffered mutations are written. + * <p> + * In the event that an MutationsRejectedException exception is thrown by one of the methods on a BatchWriter instance, the user should close the current + * instance and create a new instance. This is a known limitation which will be addressed by ACCUMULO-2990 in the future. */ public interface BatchWriter {