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] JetStream: stream and/or consumer name checks #537

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

kozlovic
Copy link
Member

@kozlovic kozlovic commented Apr 4, 2022

Some of the APIs were not properly checking for missing/invalid
stream and/or consumer names (presence of ".") which could lead
to API calls timing out because the server had no subscription
interest on the formed subject.

Signed-off-by: Ivan Kozlovic ivan@synadia.com

@kozlovic
Copy link
Member Author

kozlovic commented Apr 4, 2022

@aricart @derekcollison Please wait for the review. I will minimize the changes (can have a special function for non durables), but most importantly, I think that there are other APIs that accept a consumer name that should check on the name (like delete). Will ping when PR has been updated and is ready for review.

Some of the APIs were not properly checking for missing/invalid
stream and/or consumer names (presence of ".") which could lead
to API calls timing out because the server had no subscription
interest on the formed subject.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic force-pushed the fix_js_consumer_info_bad_name branch from 5e891b5 to 76d54b5 Compare April 4, 2022 21:50
@kozlovic kozlovic changed the title [FIXED] JetStream: js_GetConsumerInfo should check consumer name [FIXED] JetStream: stream and/or consumer name checks Apr 4, 2022
@kozlovic
Copy link
Member Author

kozlovic commented Apr 4, 2022

@aricart @derekcollison Ok, PR has been updated and is now ready for review.

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

@kozlovic kozlovic merged commit 15c6d3d into main Apr 4, 2022
@kozlovic kozlovic deleted the fix_js_consumer_info_bad_name branch April 4, 2022 23:03
@aricart
Copy link
Member

aricart commented Apr 4, 2022

LGTM

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