-
Notifications
You must be signed in to change notification settings - Fork 59
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
Let retry policy to decide about non idempotent queries #376
base: master
Are you sure you want to change the base?
Let retry policy to decide about non idempotent queries #376
Conversation
Not sure if |
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.
On next PR let's do some heuristic from server error, take a look at parseErrorFrame
83d3210
to
63f2eea
Compare
…t might be not safe to retry it
63f2eea
to
3f4d826
Compare
policies.go
Outdated
var executedErr *QueryError | ||
if errors.As(err, &executedErr) { | ||
err = executedErr.err | ||
if executedErr.potentiallyExecuted && !executedErr.isIdempotent { |
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.
Don't use them directly, have getters please.
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.
done
…dempotent queries
3f4d826
to
e8e5265
Compare
This PR:
Fixes: #326, #331