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

Use new consumer create subject when single subject filter specified in SubjectFilters #4564

Merged
merged 2 commits into from Sep 20, 2023

Conversation

neilalexander
Copy link
Member

This fixes an issue where specifying a single subject filter, i.e. in SubjectFilters or SubjectTransforms, instead of using SubjectFilter would result in the old consumer create subject being incorrectly used.

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

@jnmoyne
Copy link
Contributor

jnmoyne commented Sep 19, 2023

LGTM

derekcollison

This comment was marked as outdated.

@tbeets
Copy link
Contributor

tbeets commented Sep 20, 2023

LGTM - let's get those test flappers fixed and light the candle.

@derekcollison
Copy link
Member

This test (at least) is truly broke, so we need to fix it.

TestJetStreamSourceBasics

@derekcollison
Copy link
Member

The change introduced a breaking behavior.

neilalexander and others added 2 commits September 20, 2023 10:51
…in `SubjectFilters`

Signed-off-by: Neil Twigg <neil@nats.io>
The server consumer creation code is picky and does indeed not accept a request send to the ExT subject if that request specifies the subject filter in the array (even if there is only one entry in the array).

Signed-off-by: Jean-Noël Moyne <jnmoyne@gmail.com>
Signed-off-by: Neil Twigg <neil@nats.io>

Co-authored-by: Jean-Noël Moyne <jnmoyne@gmail.com>
Co-authored-by: Neil Twigg <neil@nats.io>
@neilalexander
Copy link
Member Author

Have added a comment explaining what is happening and rebased to top of main.

Thanks @jnmoyne for the fix!

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

@neilalexander neilalexander merged commit 81c0a14 into main Sep 20, 2023
2 checks passed
@neilalexander neilalexander deleted the neil/filtersubject branch September 20, 2023 12:02
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.

None yet

4 participants