-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Spanner: Python client not backing off on retries when RetryInfo not present. #7303
Comments
IIRC, this was the behavior specified by the spanner team (retry immediately if no trailing headers specify a perior). |
Do you mean a Transaction aborts ? For java, we use a default value to backoff & then retry if retryDelay is not specified in the response: The current values are: private static ExponentialBackOff newBackOff() { Since I don't recollect any other context, I would default to the behavior of the Java Client lib. |
Lets verify this behavior across each of our libraries and fix as needed. |
@crwilcox I presume that removing the 'type: question' label and adding a priority means you want this to have 'type: bug'. |
I've been working on that issue, and got a question. Several times I saw lines like that, and I can't imagine, what is second addend for? First one (with |
@IlyaFaer the random portion is to cause jitter in when we make requests and it shouldn't grow. |
Via #8461. |
When a session aborts, but doesn't have retry info python immediately retries. It seems to lack any sort of backoff here which may be incorrect. node attempts to.
https://github.com/googleapis/nodejs-spanner/blob/79f7855b3f6df59afe322dd578ed65f408a2fc2b/src/transaction.ts#L836
Python implementation currently returning 'None' if nothing is found:
google-cloud-python/spanner/google/cloud/spanner_v1/session.py
Line 353 in 92465cb
Go: https://github.com/googleapis/google-cloud-go/blob/ab1512ccf757de1b7f7f62883d9f975dfc152cef/spanner/internal/backoff/backoff.go#L43
The text was updated successfully, but these errors were encountered: