Updating particular version of CRDT
andrershov at gmail.com
Tue Feb 21 03:35:42 EST 2017
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
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...
More information about the riak-users