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

Improper match on w_val_unsatisfied error in HTTP #380

Merged
merged 1 commit into from
Aug 31, 2012

Conversation

seancribbs
Copy link
Contributor

On put requests, the riak_kv_put_core responds to the client layer with {error, {w_val_unsatisfied, NumW, NumDW, W, DW}} if either W or DW is not met. In riak_kv_wm_object, the error is attempted to be matched as {error, {w_val_unsatisfied, Requested, Returned}}, which causes the response to be 500 instead of 503.

@ghost ghost assigned seancribbs Aug 8, 2012
@ghost ghost assigned russelldb Aug 31, 2012
@russelldb
Copy link
Member

👍 WFM (tested by changing riak_kv_put_fsm to always return {error, {w_val_unsatisfied, 1, 1, 3 3}})

@ghost ghost assigned seancribbs Aug 31, 2012
@seancribbs
Copy link
Contributor Author

@russelldb @rzezeski Any objection to merging to 1.2 as well?

@russelldb
Copy link
Member

No problem for me.

seancribbs pushed a commit that referenced this pull request Aug 31, 2012
Improper match on w_val_unsatisfied error in HTTP
@seancribbs seancribbs merged commit 1a88126 into master Aug 31, 2012
@seancribbs
Copy link
Contributor Author

Cherry-picked to 1.2, didn't want to inadvertantly pull in master commits.

@seancribbs seancribbs deleted the sdc-fix-wval-error branch April 1, 2015 23:27
@seancribbs seancribbs removed their assignment May 8, 2015
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.

2 participants