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

js: Fix issue with concurrent queue subscribers creating consumer #713

Merged
merged 1 commit into from Apr 19, 2021

Conversation

wallyqs
Copy link
Member

@wallyqs wallyqs commented Apr 17, 2021

When multiple concurrent subscribers start without an existing consumer, one of them would create the consumer, some of them would attach and others fail with a consumer already exists error. In this change, we make the subscriptions that would have failed with consumer already exists error to do an extra lookup of the latest consumer info to attach instead.

Signed-off-by: Waldemar Quevedo wally@synadia.com

Signed-off-by: Waldemar Quevedo <wally@synadia.com>
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 86.202% when pulling 1aefcb5 on qsub-race into 1a653a7 on master.

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

@wallyqs wallyqs merged commit 2052752 into master Apr 19, 2021
@wallyqs wallyqs deleted the qsub-race branch April 19, 2021 22:34
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