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: SQS partial batch responses error handling #70

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

aecorredor
Copy link
Member

Motivations

The logic for SQS partial batch responses had an error that caused it to log false negatives in terms of errors. It was caused by the processWithOrdering logic pre-filling the object that kept track of errors per group, which caused the subsequent Object.entries call to always return something.

Corrected and simplified logic inside processWithOrdering + fixed call site in the SQS module + added a unit test to catch the error. Without code changes, the unit test was failing.

Copy link
Contributor

@swain swain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thanks for being thorough with the testing.

@aecorredor aecorredor merged commit 2b90896 into master Mar 14, 2024
4 checks passed
@aecorredor aecorredor deleted the fix/sqs-partial-batching branch March 14, 2024 14:26
Copy link

🎉 This PR is included in version 5.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants