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.

Reply via email to