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 'checkSkipFirstBlock' with '_EMPTY_' filter #5709

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

MauriceVanVeen
Copy link
Member

As mentioned in #5705 (comment), an issue was introduced starting from 2.10.17.

A call to fs.numFilteredPending(filter, &ss) was replaced with nbi := fs.checkSkipFirstBlock(filter, wc). But the latter wouldn't handle the case where filter == _EMPTY_ from a call to LoadNextMsg, whereas the former would.

Resolves #5705

Signed-off-by: Maurice van Veen github@mauricevanveen.com

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner July 28, 2024 15:49
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 efc891c into nats-io:main Jul 28, 2024
2 checks passed
@MauriceVanVeen MauriceVanVeen deleted the fix/5705 branch July 28, 2024 20:28
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.

Consumer dropping messages in 2.10.17 / 2.10.18
2 participants