Skip to content

Documentation discrepancy: AWS SDK for Ruby retry interval is not 15 seconds as documented #3260

Closed
@u-kai

Description

@u-kai

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:

  1. Default retry configuration
  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
  1. Backoff calculation
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThis is a problem with documentation.in-progressWork is in progress to resolve the issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions