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

If last_write_wins is true, dvv_enabled must be false [JIRA: CLIENTS-849] #620

Open
gmenard opened this issue May 10, 2016 · 2 comments
Open

Comments

@gmenard
Copy link

gmenard commented May 10, 2016

There is currently no way to change the property "dvv_enabled" for a Bucket.
When I set the "last_write_wins" property to true, the following error is thrown:

Invalid bucket properties: [{dvv_enabled, "If last_write_wins is true, dvv_enabled must be false"}]

It would be nice to have a withDVV method in StoreBucketProperties.Builder so that we can disable the DVV:
new StoreBucketProperties.Builder(namespace) .withLastWriteWins(true) .withDVV(false) .build();
I am using the version 2.0.4.

Thanks!

@Basho-JIRA Basho-JIRA changed the title If last_write_wins is true, dvv_enabled must be false If last_write_wins is true, dvv_enabled must be false [JIRA: CLIENTS-849] May 10, 2016
@alexmoore
Copy link
Contributor

Hi Guillaume,

Our PB interface doesn't currently have the capability for the dvv bucket property (https://github.com/basho/riak_pb/blob/develop/src/riak.proto#L108-L160), so I'll create an issue for that.
After we get that in we can look into adding it to the Java client.

A workaround would be to set that property through the HTTP api, or to set it at the bucket-type level through the command line.

Thanks,
Alex

Related: basho/riak-go-client#64

@gmenard
Copy link
Author

gmenard commented May 10, 2016

Thanks, Alex!

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

No branches or pull requests

3 participants