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-815] #64

Open
milverton opened this issue Mar 30, 2016 · 2 comments

Comments

@milverton
Copy link

Please ensure the following information is supplied for new issues:

  • [v1.6] Riak Go Client version
  • [go1.6 darwin/amd64] Golang
  • [2.1.3] Riak version
  • [OSX El Captain 10.11.3 ] Operating System / Distribution & Version
  • [N/A] Riak error.log file, if applicable

What commands were being executed during the error

cmd, err := riak.NewStoreBucketTypePropsCommandBuilder().WithBucketType("kvstore").WithAllowMult(false).WithLastWriteWins(true).Build()

What you expected to have happen

Well, I expected to be able to set AllowMulti to false but I can't because I cannot find a way to set dotted vector clock to false.

It would help if you could set dvv_enabled to false. Maybe .WithDVV(false)?

Thank you and thanks for writing a Riak client for go

@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-815] Mar 30, 2016
@lukebakken
Copy link
Contributor

Thanks for the info, I'll add WithDVV. Just as an FYI, last_write_wins is only a good choice for immutable data (docs).

@lukebakken lukebakken self-assigned this Mar 30, 2016
@lukebakken lukebakken added this to the riak-go-client-1.7.0 milestone Mar 30, 2016
@milverton
Copy link
Author

Thanks Luke, thats appreciated

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