Skip to content

Run rabbit_registry boot step after pre_boot (backport #13381) (backport #13393) #13394

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 1 commit into from
Feb 21, 2025

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Feb 21, 2025

The rabbit_registry boot step starts up the rabbit_registry gen server from rabbit_common. This is a registry somewhat similar to the feature flag registry - it's meant to protect an ETS table used for looking up implementers of behaviors. The registry and its ETS table should be available as early as possible: the step should enable external_infrastructure rather than require it.

This is a quick fix for #13352. The crash in #13352 occurs because the database boot step runs before the rabbit_registry and Khepri deletes transient queues for the local node on during init (and that operation reads from the registry).

Fixes #13352


This is an automatic backport of pull request #13381 done by Mergify.
This is an automatic backport of pull request #13393 done by Mergify.

The `rabbit_registry` boot step starts up the `rabbit_registry` gen
server from `rabbit_common`. This is a registry somewhat similar to
the feature flag registry - it's meant to protect an ETS table used for
looking up implementers of behaviors. The registry and its ETS table
should be available as early as possible: the step should enable
external_infrastructure rather than require it.

(cherry picked from commit 3867012)
(cherry picked from commit 1005a30)
@michaelklishin michaelklishin added this to the 4.0.7 milestone Feb 21, 2025
@michaelklishin michaelklishin merged commit 506ef6b into v4.0.x Feb 21, 2025
270 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.0.x/pr-13393 branch February 21, 2025 22:13
michaelklishin added a commit to rabbitmq/rabbitmq-delayed-message-exchange that referenced this pull request Feb 28, 2025
There are no boot steps that might depend on the one
defined by this plugin.

References rabbitmq/rabbitmq-server#13394.

Closes #298
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