Skip to content

Conversation

@giograno
Copy link
Member

@giograno giograno commented Dec 9, 2025

Motivation

Whenever we save an SQS state, we should avoid snapshotting expired messages.
We have seen reports from users claiming that the saved states contain messages that should have been cleared.

Closes PNX-548

Changes

  • Before saving the state, we update the queues via do_update_all_queues. This should trigger the deletion of expired messages. Since I am not very familiar with the service internals, I am not 100% sure we can use any other internal API to do the same.

@giograno giograno self-assigned this Dec 9, 2025
@giograno giograno added area: persistence Retain state between LocalStack runs aws:sqs Amazon Simple Queue Service docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes labels Dec 9, 2025
@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Test Results - Preflight, Unit

23 000 tests  ±0   21 158 ✅ ±0   6m 23s ⏱️ -4s
     1 suites ±0    1 842 💤 ±0 
     1 files   ±0        0 ❌ ±0 

Results for commit 347c56d. ± Comparison against base commit 3eb426d.

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Test Results (amd64) - Acceptance

7 tests  ±0   5 ✅ ±0   3m 0s ⏱️ -3s
1 suites ±0   2 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 347c56d. ± Comparison against base commit 3eb426d.

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Test Results (amd64) - Integration, Bootstrap

    5 files      5 suites   1h 33m 7s ⏱️
3 523 tests 3 330 ✅ 193 💤 0 ❌
3 529 runs  3 330 ✅ 199 💤 0 ❌

Results for commit 347c56d.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

LocalStack Community integration with Pro

    2 files      2 suites   1h 5m 53s ⏱️
3 499 tests 3 303 ✅ 196 💤 0 ❌
3 501 runs  3 303 ✅ 198 💤 0 ❌

Results for commit 347c56d.

@giograno giograno added the semver: patch Non-breaking changes which can be included in patch releases label Dec 9, 2025
@aidehn aidehn added this to the 4.12 milestone Dec 10, 2025
@giograno giograno marked this pull request as ready for review December 10, 2025 09:36
Copy link
Member

@baermat baermat left a comment

Choose a reason for hiding this comment

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

Change looks good to me! Would be nice if we either have a persistence test, or at least a manual confirmation that this does what we are expecting and is not causing any unexpected problems.

@giograno giograno modified the milestones: 4.12, Playground Dec 10, 2025
@giograno giograno marked this pull request as draft December 10, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: persistence Retain state between LocalStack runs aws:sqs Amazon Simple Queue Service docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes semver: patch Non-breaking changes which can be included in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants