You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When manually configuring the SdkConfig, it's easy to unwittingly not set the sleep_impl, which results in timeouts and retries not working. A warning is emitted when this happens, but if logging is not configured, or if libraries are set to the error log level, then these messages aren't seen. This leads to customer confusion around why retries/timeouts aren't working.
Expected Behavior
If retries or timeouts are enabled, but no sleep_impl is given, then configuration should fail either by panic or by error.
Current Behavior
A warning is emitted, and then retries/timeouts are broken.
Reproduction Steps
N/A
Possible Solution
No response
Additional Information/Context
No response
Version
N/A
Environment details (OS name and version, etc.)
N/A
Logs
No response
The text was updated successfully, but these errors were encountered:
We should probably remove the Rust Default from RetryConfig
Write some integration tests from a customers perspective to exercise this error condition for timeouts and retries, and work backwards to a friendly experience
Use cases:
No timeouts or retries
No timeouts, retries
Timeouts, no retries
Timeouts and retries
Make sure the experience makes sense--that the sleep impl requirement is well explained and easy to address
The checks will likely end up in the fluent client constructor; the Smithy client concept may get revised to be far more limited in scope (not being coupled to Config), so this should be fine
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
When manually configuring the
SdkConfig
, it's easy to unwittingly not set thesleep_impl
, which results in timeouts and retries not working. A warning is emitted when this happens, but if logging is not configured, or if libraries are set to the error log level, then these messages aren't seen. This leads to customer confusion around why retries/timeouts aren't working.Expected Behavior
If retries or timeouts are enabled, but no
sleep_impl
is given, then configuration should fail either by panic or by error.Current Behavior
A warning is emitted, and then retries/timeouts are broken.
Reproduction Steps
N/A
Possible Solution
No response
Additional Information/Context
No response
Version
Environment details (OS name and version, etc.)
N/A
Logs
No response
The text was updated successfully, but these errors were encountered: