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 there are messages with same id in a single batch , deletion fails with the error BatchEntryIdsNotDistinct . This is already handled in AWS SDK ruby , we can do the same for js as well .
Proposed Solution
From AWS docs ,
If you receive a message more than once, each time you receive it, you get a different receipt handle. You must provide the most recently received receipt handle when you request to delete the message (otherwise, the message might not be deleted).
We could reverse the order of message Id's remove the duplicate and reverse the message to the original order . This should retain the duplicate message with recent receipt handle .
Other Information
No response
Acknowledgements
I may be able to implement this feature request
This feature might incur a breaking change
SDK version used
v3
Environment details (OS name and version, etc.)
All OS
The text was updated successfully, but these errors were encountered:
Thanks for reaching out. I have raised this with the SDK team and we have decided that we have no plans implementing this for multiple reasons.
SDKs have moved away from customizations exactly for this reason. Unless there is a unified, customer driven, cross SDK feature request that standardizes high level libraries (for example lib-storage or lib-dynamo) implementing features on a per SDK level can create feature parity gaps.
Since this would be a handwritten customization (not code generated unlike 95% of the SDK), this means we will have to port it over to the next major version otherwise will cause feature parity between the two major versions.
The solution here is to write a helper function to dedupe the batch list yourself.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the feature
Remove the duplicate messages within a single batch when deleting in sqs.
This has been handled in the aws sdk for ruby - https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-sqs/lib/aws-sdk-sqs/queue_poller.rb#L434
aws/aws-sdk-ruby#2908 (comment)
PR - aws/aws-sdk-ruby#2918
Use Case
When there are messages with same id in a single batch , deletion fails with the error BatchEntryIdsNotDistinct . This is already handled in AWS SDK ruby , we can do the same for js as well .
Proposed Solution
From AWS docs ,
We could reverse the order of message Id's remove the duplicate and reverse the message to the original order . This should retain the duplicate message with recent receipt handle .
Other Information
No response
Acknowledgements
SDK version used
v3
Environment details (OS name and version, etc.)
All OS
The text was updated successfully, but these errors were encountered: