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 Acknowledgement Graceful Shutdown #1082

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

tomazfernandes
Copy link
Contributor

BatchingAcknowledgementProcessor had a racing condition where if the processor was stopped while there where still messages to ack in the main ack queue, it would stop polling and fail to acknowledge such messages even if there was time left for it.

This commit fixes this and adds relevant test coverage.

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

💚 How did you test it?

Automated tests

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • I updated reference documentation to reflect the change
  • All tests passing
  • No breaking changes

BatchingAcknowledgementProcessor had a racing condition where if the processor was stopped while there where still messages to ack in the main ack queue, it would stop polling and fail to acknowledge such messages even if there was time left for it.

This commit fixes this and adds relevant test coverage.
@maciejwalkowiak maciejwalkowiak added this to the 3.1.1 milestone Mar 10, 2024
@tomazfernandes tomazfernandes merged commit 2378662 into awspring:main Mar 12, 2024
4 checks passed
@tomazfernandes tomazfernandes deleted the GH-925 branch March 12, 2024 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: sqs SQS integration related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants