Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FetchMap and FetchValue don't return the same context #705

Open
gmenard opened this issue May 31, 2017 · 0 comments
Open

FetchMap and FetchValue don't return the same context #705

gmenard opened this issue May 31, 2017 · 0 comments

Comments

@gmenard
Copy link

gmenard commented May 31, 2017

The Context returned after a FetchMap operation is different from the VClock returned by a FetchValue operation for a same object which makes it impossible to pass around for deletion operations.

When I'm trying to delete an object (of type riak map) by specifying the context returned by a FetchMap operation, the deletion fails as the context is invalid.

For example, I'm trying to do the following:

UpdateMap.Response response = ...

DeleteValue.Builder builder = new DeleteValue.Builder(location)
     .withVClock(new BasicVClock(response.getContext().getValue()));

Am I doing something wrong? How can I pass the Context from the UpdateMap.Response to the DeleteValue operation?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant