Skip to content

Bugfixes #1803

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

Merged
merged 3 commits into from
Dec 19, 2018
Merged

Bugfixes #1803

merged 3 commits into from
Dec 19, 2018

Conversation

kjnilsson
Copy link
Contributor

@kjnilsson kjnilsson commented Dec 17, 2018

Bugfixes of bugs discovered by @Vanlightly

  1. rabbit_quorum_queue:update_metrics/2 used calls to remote processes.
    To avoid this blocking the ra server in a partition we now spawn a new
    process for this.

  2. Due to a refactoring miss commands over the soft limit where never
    formatted successfully in rabbit_fifo_client and thus never got processed.

  3. return messages in order …
    Fixes bug that muddled up the checkout order when a consumer is
    cancelled with more than 32 messages checked out.

  4. Fix bug that would crash the ra leader when a disconnected consumer was reconnected.

1. rabbit_quorum_queue:update_metrics/2 used calls to remote processes.
To avoid this blocking the ra server in a partition we now spawn a new
process for this.

2. Due to a refactoring miss commands over the soft limit where never
formatted successfully.
Fixes bug that muddled up the checkout order when a consumer is
cancelled with more than 32 messages checked out.

Dialyzer fixes.

[#162698673]
@kjnilsson kjnilsson requested a review from dcorbacho December 17, 2018 16:25
When a consumer node is disconnected the quorum queue will return all
outstanding messages for the consumer to the queue as it cannot know if
the consumer will ever come back or not and cannot leave things checked
out forever. If the consumer node then reconnectes and the consumer
channel is still alive it may try to query for missing deliveries and
this previously crashed if the messages had been returned to the main
queue. This fix makes the query safer as well as handling missing
messages better.
@dcorbacho dcorbacho merged commit e8fb108 into master Dec 19, 2018
@lukebakken lukebakken deleted the vanlightly-bugs branch December 21, 2018 19:11
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