How could we test/simulate siblings?

Cagdas Tulek ctulek at gmail.com
Fri Nov 12 20:54:12 EST 2010


Thanks Justin.

On Fri, Nov 12, 2010 at 5:36 PM, Justin Sheehy <justin at basho.com> wrote:

> Hi, Cagdas.
>
> On Fri, Nov 12, 2010 at 8:17 PM, Cagdas Tulek <ctulek at gmail.com> wrote:
>
> > What is the best way of creating sibling records to see if my logic is
> > handling them correctly?
>
> Ensure that allow_mult is set to true.
>
> Create some object B/K.
>
> Get that object.  It will come with some vector clock V.
>
> Put some new value X to B/K, using vector clock V in the put request.
>
> Put some new value Y to B/K, using vector clock V in the put request.
> (different value but same vclock as the previous put)
>
> Get B/K.  You should get multiple values and some vclock V1.
>
> If you wish to resolve back to a single value, store some new value Z
> using vclock V1.
>
> -Justin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20101112/f12171ca/attachment.html>


More information about the riak-users mailing list