-
Notifications
You must be signed in to change notification settings - Fork 818
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
Update Cassandra deletes to use ALL consistency level #4984
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this tested?
The existing persistence and integration tests. |
3cf8a94
to
1340109
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of suggestions. Otherwise looks good.
func (c client) IsCassandraConsistencyError(err error) bool { | ||
if req, ok := err.(gogocql.RequestError); ok { | ||
// 0x1000 == UNAVAILABLE | ||
return req.Code() == 0x1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: It may be worth defining private const
for such magical values.
What changed?
Why?
How did you test it?
existing test
staging2 test
Potential risks
If deletes fail with ALL consistency level, we fallback to LOCAL_QUORUM consistency level. There should be no risk
Release notes
Documentation Changes