You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by Jianshi Huang <ji...@gmail.com> on 2014/06/25 05:18:22 UTC
Does BatchWriter guarantee that all mutations are committed?
Is it possible that some mutations are not committed when
BatchWriter.close() returns?
BTW, how to implement multi-row transactional updates in Accumulo? using
ConditionalWriter?
Cheers,
--
Jianshi Huang
LinkedIn: jianshi
Twitter: @jshuang
Github & Blog: http://huangjs.github.com/
Re: Does BatchWriter guarantee that all mutations are committed?
Posted by Jianshi Huang <ji...@gmail.com>.
Get it. Thank you Josh and Eric!
On Wed, Jun 25, 2014 at 11:45 AM, Eric Newton <er...@gmail.com> wrote:
> Is it possible that some mutations are not committed when
>> BatchWriter.close() returns?
>>
>
> No. If you see this behavior, please post a ticket.
>
>
>> BTW, how to implement multi-row transactional updates in Accumulo? using
>> ConditionalWriter?
>>
>
> The Big-Table model provides no such guarantees. You may want to follow
> the percolator inspired work on git-hub:
> https://github.com/keith-turner/Accismus
>
> -Eric
>
>
--
Jianshi Huang
LinkedIn: jianshi
Twitter: @jshuang
Github & Blog: http://huangjs.github.com/
Re: Does BatchWriter guarantee that all mutations are committed?
Posted by Eric Newton <er...@gmail.com>.
>
> Is it possible that some mutations are not committed when
> BatchWriter.close() returns?
>
No. If you see this behavior, please post a ticket.
> BTW, how to implement multi-row transactional updates in Accumulo? using
> ConditionalWriter?
>
The Big-Table model provides no such guarantees. You may want to follow
the percolator inspired work on git-hub:
https://github.com/keith-turner/Accismus
-Eric
Re: Does BatchWriter guarantee that all mutations are committed?
Posted by Josh Elser <jo...@gmail.com>.
If you call close() and don't get an Exception out of the BatchWriter,
you are guaranteed that those mutations have been committed. Same goes
for flush(), IIRC.
On 6/24/14, 11:18 PM, Jianshi Huang wrote:
> Is it possible that some mutations are not committed when
> BatchWriter.close() returns?
>
> BTW, how to implement multi-row transactional updates in Accumulo? using
> ConditionalWriter?
>
> Cheers,
> --
> Jianshi Huang
>
> LinkedIn: jianshi
> Twitter: @jshuang
> Github & Blog: http://huangjs.github.com/