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

Fix a timing issue in the waiters retry delay calculation #2259

Merged
merged 1 commit into from
May 2, 2024
Merged

Fix a timing issue in the waiters retry delay calculation #2259

merged 1 commit into from
May 2, 2024

Conversation

jdisanti
Copy link
Contributor

Background

Subtracting minDelay from remainingTime results in the waiter exiting before the user's desired max wait time. This is especially apparent in models that use a minDelay value that is larger than the default 2 seconds. For example, AWS EC2 uses 15 seconds, so it would exit the waiter a full 15 seconds before the desired max wait time.

Testing

Tested these changes in the implementation of waiters for the AWS Rust SDK.

Links


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Subtracting `minDelay` from `remainingTime` results in the waiter
exiting before the user's desired max wait time. This is especially
apparent in models that use a `minDelay` value that is larger than the
default 2 seconds. For example, AWS EC2 uses 15 seconds, so it would
exit the waiter a full 15 seconds before the desired max wait time.
@jdisanti jdisanti requested a review from a team as a code owner April 25, 2024 17:13
@jdisanti jdisanti requested a review from hpmellema April 25, 2024 17:13
@kstich kstich merged commit 4fb0fe2 into smithy-lang:main May 2, 2024
13 checks passed
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.

3 participants