-
Notifications
You must be signed in to change notification settings - Fork 653
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
dynamodb.TableExistsWaiter won't wait if waitTime < minDelay #2551
Comments
Hi @mmunoz3 , Thanks for reaching out. The behavior you are describing here is the expected behavior, and not a bug. The expectation that the wait operation should execute at least once regardless of the The To align with this, you should ensure that the So yes, while While I totally understand why you might want to poll immediately in the first run, the current waiter behavior is in line with our internal spec for waiters, and should be the same across all newer SDKs. Thanks again for taking the time and reaching out. I hope this makes sense and doesn't discourage you from submitting additional bug reports/ feature requests in the future. All the best, |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Thanks for the comprehensive response. I find the default behaviour cumbersome and somewhat hidden to the user but I understand the reasoning. Best regards |
Acknowledgements
go get -u github.com/aws/aws-sdk-go-v2/...
)Describe the bug
The table waiter won't wait at all when passed
waitTime < MinDelay
.So to get any wait time smaller than the default 20 seconds stablished for
MinDelay
the caller is forced to set this MinDelay optional parameter to something smaller than the wanted waitTime:Expected Behavior
The waiter should wait for
waitTime
without having to worry about theMinDelay
optional parameter.Current Behavior
The waiter performs the check :
Deciding it doesn't have to wait as if it were in the middle of the computational backoff and returning the error.
Reproduction Steps
Possible Solution
Implement some logic like: "if this is the first wait and remainingTime < minDelay then wait remainingTime"
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.27.1
Compiler and Version used
go version go1.21.5 darwin/arm64
Operating System and version
MacOS Sonoma
The text was updated successfully, but these errors were encountered: