Skip to content

Fix WorkQueuePolicy retention issue#5697

Merged
derekcollison merged 2 commits intomainfrom
neil/wqretention
Jul 25, 2024
Merged

Fix WorkQueuePolicy retention issue#5697
derekcollison merged 2 commits intomainfrom
neil/wqretention

Conversation

@neilalexander
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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