-
Notifications
You must be signed in to change notification settings - Fork 22
Timeout parameter doesn't work when retry is configured #71
Comments
I'm getting a different error:
|
@eoogbe Try using the project |
It's maxxed on keys. I can't create a new one. |
Thank you for your bug report. Based on its current description, we are unable to reproduce it. If you are still experiencing this issue and are reasonably certain that it is a bug, please feel free to re-open this issue with additional information to help us reproduce it. |
@eoogbe we've updated the timeout configuration since the original bug report; are you sure you're not just seeing that? I'd be surprised if the root cause was fixed in GAX because AFAIK no work has been done there. Happy to sync offline in more detail. |
I've confirmed the bug still exists with a print debug geigerj@248eab9, even though the configuration has changed for the specific video-intelligence case. I am fairly certain the retry settings are overriding the timeout parameter, even though the expect behavior is for the method parameters to override the configuration. @eoogbe PTAL. |
The docs say:
I don't think the timeout parameter is supposed to affect retry. I was able to test setting the Closing as works as intended. |
This is a pretty big usability issue as is -- I don't think we can reasonably expect anyone to pass a full retry configuration as a parameter to a retrying call just to change the initial timeout parameter, and this is not an advanced use case. Let's change the behavior so that the timeout param is not ignored for retrying calls, but instead overrides the initial_rpc_timeout (and the max_rpc_timeout/total_timeout if either of those values is less than the explicitly specified timeout param). |
Also, FWIW, the type of the |
This is an issue with i.e here gax-ruby/lib/google/gax/settings.rb Lines 85 to 87 in ed62589
gax-ruby/lib/google/gax/api_callable.rb Line 252 in ed62589
gax-ruby/lib/google/gax/settings.rb Lines 85 to 87 in ed62589
Need to check empty def retry_codes?
@retry_options && @retry_options.retry_codes && !@retry_options.retry_codes.empty?
end |
This still seems to be in progress. |
Hi, Has there been any updates to this issue re: I think something like this should fix it:
Not sure how this repository works -- I am happy to open a PR for this! |
Hi @alex-lange we'd be happy to review a PR if you'd like to take a shot a fixing this. Let us know if we can help. |
This fixes an issue where timeout wasn't being used. [fixes #71]
Originally reported by @frankyn
What
Setting CallOptions timeout does nothing when the RPC is configured to retry.
To reproduce
Expected behavior
The call retries with an initial timeout of 60s.
Observed behavior
The call fails with "INVALID_ARGUMENT" due to an initial timeout of 19s; the configured timeout is ignored. It is possible to change the timeout only by manually configuring the full backoff settings.
The text was updated successfully, but these errors were encountered: