Closed
Description
Describe the issue
I noticed what appears to be a discrepancy between the documented retry behavior and the actual implementation in the AWS SDK for Ruby. I wanted to bring this to your attention in case the documentation needs clarification.
The documentation mentions: "By default, the AWS SDK for Ruby performs up to three retries, with 15 seconds between retries, for a total of up to four attempts."
However, when I examined the source code, I found what appears to be a different implementation:
Source code references:
option(
:retry_base_delay,
default: 0.3,
doc_type: Float,
docstring: <<-DOCS)
The base delay in seconds used by the default backoff function. This option
is only used in the `legacy` retry mode.
DOCS
DEFAULT_BACKOFF = lambda do |c|
delay = 2**c.retries * c.config.retry_base_delay
# ... (jitter and max delay logic)
end
Links
https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/retries.html