safely resolving conflicts on read

Bob Ippolito bob at
Wed Nov 2 10:52:03 EDT 2011

An approach similar to #1 is implemented in statebox - basically the trick is to store an
operation queue along with the data, and to put some constraints on how
operations must work so that they can be repeated for conflict resolution.

On Wednesday, November 2, 2011, Erik Søe Sørensen <ess at> wrote:
> What you'd usually do is somewhere between 2) and 3) - namely, accept
that siblings might occur (although rarely). Also, you'd have a resolution
function with the property (besides being deterministic) that
reconciliating two identical siblings would yield the same - i.e., f(X,X) =
> ________________________________________
> Fra: riak-users-bounces at [
riak-users-bounces at] På vegne af Justin Karneges [
justin at]
> Sendt: 1. november 2011 21:34
> Til: riak-users at
> Emne: safely resolving conflicts on read
> Hi,
> contains this text:
> "It should be noted that if you are trying to resolve conflicts
> you can end up in a condition with which two clients are simultaneously
> resolving and creating new conflicts."
> If conflict resolution is moved to the reader, I'm curious what strategies
> people use to avoid this kind of feet stomping.
> Some ideas that have come to mind:
> 1) Have a deterministic way of deriving a correct/unified/winner value
> multiple siblings, such that any reading client would always arrive at the
> same answer.  Simply use this derived answer as the value read, but don't
> attempt to write a corrected value into Riak.  The value could eventually
> corrected at the time of a necessary write as opposed to a read reaction.
> 2) Determine a correct value per #1 above, but then attempt to write this
> value back into Riak in such a way that if multiple nodes were to write
> same value simultaneously then they don't create siblings.  I'm not sure
> this is possible in Riak?
> 3) Determine a correct value per #1 above, and allow exactly one node to
> immediately write corrected values after a read.  Something like "if
> % node_count == current_node then do_correction".  Since value correction
> not vital to availability, there's no harm if the owning node is down.  I
> figure this would allow for self-healing over time.
> Maybe there are other ways.  What do people really do?
> Thanks,
> Justin
> _______________________________________________
> riak-users mailing list
> riak-users at
> _______________________________________________
> riak-users mailing list
> riak-users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list