-
Notifications
You must be signed in to change notification settings - Fork 230
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
Ignoring pr value from bucket type. #1835
Comments
Is this specifically about setting in bucket types? I know there is a test for the 'PR' value here, but it is passed in as a GET option - https://github.com/basho/riak_test/blob/develop-3.0/tests/pr_pw.erl In theory the bucket properties should be checked here, and then that is added to the get_core. The get_core checks, and only gives a positive response when satisfied. This shouldn't change however PR is set. Do you have an idea where this is breaking down? |
The issue is on line 313 in riak_kv_get_fsm. The To reproduce: have 3 riak nodes.
Stop one riak node. Do a get:
|
Thanks, I see it now. I've done a quick check of the PUT fsm as well as the GET fsm, and it looks like it is only this value where the error exists. I'm testing some leveled changes at the moment which may require a 3.0.12 release, so I will bundle a fix for this in as well. Target is to have 3.0.12 with this fix by the end of the week. |
Thanks, I could issue a pull request if it helps. |
If you have time, that would help a great deal. |
Included in Riak 3.0.12 |
PR value set in bucket type ignored when reading data.
We set PR to 4 but unfortunately it is ignored by get_fsm.
https://github.com/basho/riak_kv/blob/develop-3.0/src/riak_kv_get_fsm.erl#L313
It caused data loss, because we got data from non primary vnodes what leads us to not found, we created a new object and overwrite it.
The text was updated successfully, but these errors were encountered: