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

Updating a push consumer to be pull should fail. #2829

Merged
merged 1 commit into from
Jan 29, 2022
Merged

Conversation

derekcollison
Copy link
Member

This CL will disallow that upgrade. We had a check in place for pull to push, but not the reverse.

Signed-off-by: Derek Collison derek@nats.io

/cc @nats-io/core

…f used.

This disallows that upgrade. We had a check in place for pull to push, but not the reverse.

Signed-off-by: Derek Collison <derek@nats.io>
Copy link
Contributor

@jnmoyne jnmoyne left a comment

Choose a reason for hiding this comment

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

Test scenario now returns
nats: error: Consumer creation failed: can not update push consumer to pull based (10012) when attempting to create the consumer again.

LGTM!

Copy link
Member

@kozlovic kozlovic 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 617e1fb into main Jan 29, 2022
@derekcollison derekcollison deleted the consumer_update branch January 29, 2022 00:58
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.

3 participants