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

Strong Consistency and Other Riak KV Bucket Validators #770

Merged
merged 2 commits into from
Dec 19, 2013

Conversation

jrwest
Copy link
Contributor

@jrwest jrwest commented Dec 19, 2013

This PR contains both #667 and #747 merged and rebased on a recent develop. The PRs mentioned have the +1s. I'm going to merge this PR, shortly after a final sanity check.

A bucket type that is consistent must remain so (the property is
immutable) and the n_val of the type may not be changed (for the type
or its buckets). A type that has consistent=true is consisdered to be
strongly-cosnsitent regardless of the values of other properties
including the datatype property -- strong-consistency may use this
property for its own purposes in the future. Untyped buckets (default
bucket type) cannot be strongly consistent.

The eqc tests have been updated to reflect the changes.

Other Notes:
* The consistent property is validated in two paths depending on if the
  type is consistent or not. This is a bit meh.
* It is assumed that the value of allow_mult does not matter to strong
  consistency and thus it is not validated (besides being a valid boolean)
  for this path
* The datatype property is not validated if the type is strongly-cosnsitent.
  This is because, what the property will mean is still undefined.
* I may have butchered prop_merges() a bit (the most at least). As validation
  grows we may want to re-think how we build the expected set in the property
@jrwest
Copy link
Contributor Author

jrwest commented Dec 19, 2013

Sanity check went fine. Merging

jrwest added a commit that referenced this pull request Dec 19, 2013
Strong Consistency and Other Riak KV Bucket Validators
@jrwest jrwest merged commit 405329a into develop Dec 19, 2013
@seancribbs seancribbs deleted the jrw-sc-nval-validate-merge branch April 1, 2015 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant