-
Notifications
You must be signed in to change notification settings - Fork 87
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
timeout_millis
is ignored if retry settings are provided
#902
Comments
Hi @skuruppu, We at ACTools are considering implementing a new (simpler) "logical timeout" logic this month and this code will likely be changed and/or rewritten. I'll work on this refactor. Thank you for mentioning your new Spanner config, I'll make sure it's processed correctly with my changes. |
With changes from #896 (when 2.8.1 is released) a workaround would be to not to provide Need to verify with logic in other language APIs. |
spanner_client_config.json is only used by nodejs and is generated from grpc_service_config.json. If we can change the generator to not generate But how about In Java, we set |
The smaller value will be used gax-nodejs/src/normalCalls/retries.ts Lines 120 to 124 in d05bd2c
|
But we expect the |
(going back to this old issue - apologize for its slipping through my fingers!) @skuruppu @hengfengli With the gax version with Alex's fixes released, do you folks still need changes here in this logic? The "logical timeout" refactor that I mentioned earlier in this issue got postponed but will still happen sooner or later, I would probably not want to make any major changes to the current timeout code (which is already more complicated than it should be). |
Thanks for getting back to us @alexander-fenster. I think even with Alex's fixes, it would still mean that we have to remove Sorry if I misunderstood something. |
Assigning to @summer-ji-eng for this sprint as discussed. |
Hi @skuruppu - the latest version of gax should fix this: https://github.com/googleapis/gax-nodejs/releases/tag/v2.25.4 Once |
Thanks a lot @alicejli. We're still at v2.17.1 which is surprising since you've had so many releases since then. I thought the bots updated this automatically. In any case, we can try this manually. |
@skuruppu I'm going to close this issue as I assume the latest version of gax fixes this. Please feel free to re-open if not. Thanks! |
The Spanner team has recently been through an effort to make the timeout and retry settings consistent across all client library languages. The result of which is now in spanner_client_config.json.
We need to set different
timeout_millis
for each RPC method. But we also set specific retry settings for certain groups of methods.We found that in gax-nodejs, if retry settings are set, then
timeout_millis
is ignored.gax-nodejs/src/gax.ts
Lines 158 to 159 in aa5487b
gax-nodejs/src/createApiCall.ts
Lines 86 to 99 in aa5487b
This essentially means that all of our methods have a
timeout_millis
of 60 secs now instead of the method-specific ones we intended to set.Would this be something that can be fixed in Node.js to respected the per-method
timeout_millis
?CC @hengfengli
The text was updated successfully, but these errors were encountered: