Updating particular version of CRDT

Andrey Ershov andrershov at gmail.com
Tue Feb 21 03:35:42 EST 2017

Hi all,

I'm new to Riak and trying to figure out how to work with CRDTs properly.
First of all, I decided to try MVRegister support. I'm using this tutorial
http://docs.basho.com/riak/kv/2.2.0/developing/data-types/maps/. Language
of my choice is Java.

Find source code here:

I've created ahmedMap with two registers (name="Ahmed", phone="123")
Now I would like to simulate that there are two concurrent updates to phone
phone="456" and phone="789"

For that, I'm fetching initial record and get context from it. After that,
I'm performing two updates passing the same context to each one.
I'm expecting that after fetching the record and reading the phone
register, I should find two concurrent values in it: phone = ("456",
"789"). But I get only the latest value phone = "789".
Also Register API seems confusing, because there is no method inside it
that may return multiple values.

Could you please help me?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20170221/7e735b3b/attachment-0002.html>

More information about the riak-users mailing list