-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
firestore: BatchGetDocuments does not use Default Call Options #5906
Comments
Hi @telpirion, I think there is a misunderstanding here. While it is true that the The line
will fix this issue. Please also note that an equivalent line is present for the other api calls, and that this line is also present for Without a fix for this issue we have to implement our own retry policy for calls that result in |
@ABevier Sorry for the slow response here. This is indeed a mistake and can be fixed in the autogenerated code. The PR linked above will restore the call options to the streaming calls. |
@enocom - Thanks so much for looking deeper into this! |
We're currently in a release freeze that won't be lifted until January. When that happens, we'll merge the generator PR above, and then regenerate the firestore client which will finally close this issue. I'll update here when that work is done. |
This will be fixed in #7232. |
Client
firestore
Environment
golang:1.18-buster
on Cloud RunGo Environment
Go 1.18
Code
The default call options for
BatchGetDocuments
are setup on line 127 offirestore_client.go
:However the options are not used in
BatchGetDocuments
on line 611 offirestore_client.go
:Expected behavior
The BatchGetDocuments function should use the default call options of the firestore client. I would expect to find the following line of code in BatchGetDocuments:
Actual behavior
No call options are passed to BatchGetDocuments which prevent automatic retries when
Unavailable
errors are encountered.The text was updated successfully, but these errors were encountered: