Skip to content
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

Prevent exponential backoff from overflowing. #1491

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

burnison
Copy link

@burnison burnison commented Jan 9, 2025

Related issue: #1490

Description

When using -cut-over-exponential-backoff with -default-retries greater than 62, the sleep interval will overflow and immediately begin retrying in rapid succession. This commit corrects the backoff algorithm and adds test for both "retry operation" functions.

  • contributed code is using same conventions as original code
  • script/cibuild returns with no formatting errors, build errors or unit test errors.

When using `-cut-over-exponential-backoff` with `-default-retries`
greater than `64`, the sleep interval will overflow and immediately
begin retrying in rapid succession. This commit corrects the backoff
algorithm and adds test for both "retry operation" functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant