How could we test/simulate siblings?

Justin Sheehy justin at basho.com
Fri Nov 12 20:36:16 EST 2010


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




More information about the riak-users mailing list