Skip to content

Conversation

@nickolaj-jepsen
Copy link
Contributor

Avoids setting filter_subject if filter_subjects is set, this avoids the server throwing this error when creating a consumer: "consumer cannot have both FilterSubject and FilterSubjects specified"

fixes: #710

Copy link
Collaborator

@caspervonb caspervonb left a comment

Choose a reason for hiding this comment

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

Thank you for your pull request. This seems sound, would need a test case however.

@nickolaj-jepsen
Copy link
Contributor Author

Hi @caspervonb, thanks for the review, I've added a test case for both the push and pull based subscriber. Let me know if you want any additional tests 🙂

@caspervonb caspervonb changed the title Don't set filter_subject if filter_subjects is set Fix filter_subject overriding filter_subjects Oct 15, 2025
@caspervonb caspervonb requested a review from wallyqs October 30, 2025 21:56
Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

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

LGTM

@caspervonb caspervonb merged commit 95e7fac into nats-io:main Oct 30, 2025
31 checks passed
Jarema pushed a commit that referenced this pull request Oct 30, 2025
caspervonb pushed a commit that referenced this pull request Nov 14, 2025
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.

Unable to create jetstream consumer if filter_subjects is specified

4 participants