You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by Dan Blum <db...@bbn.com> on 2016/08/22 20:16:49 UTC

Bug in TabletServerBatchWriter.logStats

If no batches have been written logStats will throw a divide-by-zero
exception. Obviously, it would be good practice for the caller to not open a
BatchWriter in the first place until it knows something needs to be written,
but it should be simple enough to avoid this.


Re: Bug in TabletServerBatchWriter.logStats

Posted by Josh Elser <jo...@gmail.com>.
Hi Dan,

Thanks for letting us know. Would you mind filing an issue on JIRA with 
the version you see this on, please?

https://issues.apache.org/jira/secure/CreateIssue!default.jspa

Dan Blum wrote:
> If no batches have been written logStats will throw a divide-by-zero
> exception. Obviously, it would be good practice for the caller to not open a
> BatchWriter in the first place until it knows something needs to be written,
> but it should be simple enough to avoid this.
>