-
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
Query retry logic is not triggered in certain cases #326
Comments
@dkropachev Currently in these cases you mentioned we don't use retry policy, but we retry on the next host always. It is true even if retry policy is not defined. I am not sure what correct behavior should be if one of those cases occur:
and |
@dkropachev ping |
I would think stopping the retry on next host would be a regression. It seems to me - the request was not really tried. |
Ok, so I guess if retry policy is not there we should retry on next host in those cases. Also I think the retry policies should be edited to make sure they always result in retry on next host for given scenarios |
Query executor does not involve retry policy in certain cases
gocql/query_executor.go
Lines 109 to 198 in fc1b783
These cases are
Probably it make sense to involve retry policy in such cases.
It will require policies to be smarter in regards of the
GetRetryType
results, in listed cases.Also it will break API a bit in a sense that we will have to introduce new errors which will be returned instead of
ErrNoConnections
The text was updated successfully, but these errors were encountered: