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

rabbitmq_federation: Handle shutdown from upstream #10471

Merged

Conversation

dumbbell
Copy link
Member

@dumbbell dumbbell commented Feb 2, 2024

Why

The downstream process was already handling a {shutdown, Term} termination reason from upstream gracefully: it would log a message an close the connection.

However it didn't handle the more common shutdown reason, which happens with a regular stop of the upstream node. It led to the log of a giant scary crash message.

How

We handle shutdown the same as {shutdown, Term}.

[Why]
The downstream process was already handling a `{shutdown, Term}`
termination reason from upstream gracefully: it would log a message an
close the connection.

However it didn't handle the more common `shutdown` reason, which
happens with a regular stop of the upstream node. It led to the log of a
giant scary crash message.

[How]
We handle `shutdown` the same as `{shutdown, Term}`.
@dumbbell dumbbell added this to the 3.13.0 milestone Feb 2, 2024
@dumbbell dumbbell self-assigned this Feb 2, 2024
@dumbbell dumbbell marked this pull request as ready for review February 2, 2024 16:33
@michaelklishin michaelklishin merged commit 6115f8f into main Feb 2, 2024
14 checks passed
@michaelklishin michaelklishin deleted the handle-shutdown-reason-in-federation-downstream branch February 2, 2024 22:34
michaelklishin added a commit that referenced this pull request Feb 2, 2024
rabbitmq_federation: Handle `shutdown` from upstream (backport #10471)
michaelklishin added a commit that referenced this pull request Feb 3, 2024
rabbitmq_federation: Handle `shutdown` from upstream (backport #10471) (backport #10473)
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.

2 participants