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 WorkQueuePolicy retention issue #5697

Merged
merged 2 commits into from
Jul 25, 2024
Merged

Fix WorkQueuePolicy retention issue #5697

merged 2 commits into from
Jul 25, 2024

Conversation

neilalexander
Copy link
Member

The isInterestRetention function, which gates whether or not we run checkInterestState, was matching for both InterestPolicy and WorkQueuePolicy.

This meant that a work queue stream could throw away messages for which there was no consumer interest as the consumer ack floors for other subjects moved up.

This PR changes isInterestRetention to match only InterestPolicy which fixes the issue. Notably this doesn't change the ackMsg behaviour which will continue to remove messages once they have been acked.

Signed-off-by: Neil Twigg neil@nats.io

…tion`

Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander requested a review from a team as a code owner July 24, 2024 14:47
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

…atch filters (#5699)

Signed-off-by: Derek Collison <derek@nats.io>

Signed-off-by: Derek Collison <derek@nats.io>
@derekcollison derekcollison self-requested a review July 25, 2024 15:25
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit 05c747e into main Jul 25, 2024
5 checks passed
@derekcollison derekcollison deleted the neil/wqretention branch July 25, 2024 15:26
bruth added a commit that referenced this pull request Jul 30, 2024
Includes the following:

* #5602
* #5672
* #5668
* #5607
* #5687
* #5695
* #5697
* #5704
* #5706
* #5709
* #5710
* #5713
* #5719

Some PRs specifically excluded:

* #5707 — based on a 2.11 NRG
PR
* #5690 — continue to allow
Go 1.20 for 2.10.x
* Various other NRG PRs which are higher risk and destined for 2.11
instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants