API question about conflict resolution and getValue(s)

Luke Bakken lbakken at basho.com
Thu Apr 6 10:23:45 EDT 2017


Hi Johan,

I'm assuming you're using the Java client, and the getValues method shown here:

https://github.com/basho/riak-java-client/blob/develop/src/main/java/com/basho/riak/client/api/commands/kv/KvResponseBase.java#L80-L91

> does: "fetch -> getValues -> ... pick one ... -> modify -> store", work?

Yes. Please refer to the docs here:

https://docs.basho.com/riak/kv/2.2.3/developing/usage/conflict-resolution/java/#conflict-resolution-and-writes

Thanks -

--
Luke Bakken
Engineer
lbakken at basho.com

On Thu, Apr 6, 2017 at 4:48 AM, ジョハンガル <gall.johan at linecorp.com> wrote:
>
> Hello,
>
> I have a simple question regarding FetchValue.Response/getValue, FetchValue.Response/getValues and conflict resolution.
>
> In the documentation http://docs.basho.com/riak/kv/2.2.3/developing/usage/conflict-resolution/
> the described sequence is: "fetch -> getValue -> modify -> store"
>
> does: "fetch -> getValues -> ... pick one ... -> modify -> store", work?
>
> Is the causal context from the implicitly resolved object obtained from getValue, the same than the causal context in the siblings recovered with getValues?




More information about the riak-users mailing list