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 consumer limits #4567

Merged
merged 1 commit into from Sep 20, 2023
Merged

Fix consumer limits #4567

merged 1 commit into from Sep 20, 2023

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented Sep 20, 2023

If Stream has consumer limits set, creating consumer with defaults will fail in most cases.

Test didn't catch this, as by default, old JS client sets ack policy to none. If the policy is different, it will fail to create consumer with defaults. We agreed that default Ack Policy should be explicit

Signed-off-by: Tomasz Pietrek tomasz@nats.io

Test didn't catch this error, as by default, old JS client
sets ack policy to none. If policy is different, it will fail
to create consumer with defaults.

Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
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 marked this pull request as ready for review September 20, 2023 16:02
@neilalexander neilalexander requested a review from a team as a code owner September 20, 2023 16:02
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

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

LGTM, good catch!

@neilalexander neilalexander merged commit 496ca98 into main Sep 20, 2023
2 checks passed
@neilalexander neilalexander deleted the fix-consumer-limits-defaults branch September 20, 2023 16:07
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

3 participants