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

[FIXED] stree: Fix duplicate callbacks on full wildcard Match #5610

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

neilalexander
Copy link
Member

On a full wildcard Match, we were iterating through children but then also falling through to a regular continuation instead of returning, which meant that the Match callback could fire twice for the same filter.

Fixes #5608.

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

Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander requested a review from a team as a code owner July 1, 2024 10:42
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 2b67aa5 into main Jul 1, 2024
3 checks passed
@derekcollison derekcollison deleted the neil/streefwc branch July 1, 2024 16:11
@wallyqs wallyqs changed the title stree: Fix duplicate callbacks on full wildcard Match [FIXED] stree: Fix duplicate callbacks on full wildcard Match Jul 9, 2024
wallyqs added a commit that referenced this pull request Jul 9, 2024
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.

JetStream: incorrect consumer num_pending against stream with subjects ending in .>
2 participants