-
Notifications
You must be signed in to change notification settings - Fork 15
SQS short polling broken in SDK v2 #261
Comments
Thanks for reporting this issue @jtorkkola. This looks to be a modeling bug with how the We'll reach out to the service to identify the correct update, but this most likely will result in the |
Thanks @jasdel. Could we make sure all the other integers in the SQS input structs get looked at as well? I did take a look at using middleware to mitigate the issue from the user side, but it looks like there's no way to tweak the behavior of the serializer without replacing it entirely. |
Any updates on this? We're migrating our services to the V2 SDK for the new security features, but can't move forward because our service relies on SQS and this bug is holding us up. It hasn't been touched in almost 9 months. @jasdel @vudh1 @RanVaknin |
Hi @calscoo, @jtorkkola Sorry for the long wait. We have tried getting the SQS team to solve this but they are unable to prioritize this fix. Thanks, |
Running into this with Version:
|
This is now fixed. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
ReceiveMessageInput.WaitTimeSeconds
has changed from an integer pointer in SDK v1 to an integer in SDK v2. Previously anil
value meant that aReceiveMessage
call would defer to the queue setting, and a 0 value meant short polling. Now 0 means deferring to the queue setting, and there's no way to short poll if the queue default isn't 0 (see theReceiveMessageInput
serialization logic here).ReceiveMessageInput.VisibilityTimeout
andSendMessageInput.DelaySeconds
look to have the same issue.Expected Behavior
Calling
ReceiveMessage
withReceiveMessageInput.WaitTimeSeconds = 0
causes short polling like in SDK v1.Current Behavior
Calling
ReceiveMessage
withReceiveMessageInput.WaitTimeSeconds = 0
defers to the queue's default receive message wait time, which may not be 0.Reproduction Steps
Call
ReceiveMessage
withReceiveMessageInput.WaitTimeSeconds = 0
on an empty queue with a default receive message wait time of 10 seconds, and observe the duration of the call.Possible Solution
No response
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
v1.16.0
Compiler and Version used
1.18
Operating System and version
macOS 12.3.1
The text was updated successfully, but these errors were encountered: