-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rabbit_feature_flags: Protect concurrent reloads of the registry
[Why] When a node joins another node, it resets its feature flags registry (the registry is unloaded) and it copies the feature flags states from the remote cluster. Before this patch, there was a small window where a concurrent use of the registry right between these two steps would reload a registry from the default/empty states, which does not reflect the intent. This could happen because another node is running peer discovery and queries the cluster membership of the node joining a cluster. [How] We acquire the registry reload lock around the reset+copy and in `rabbit_ff_registry_wrapper`.
- Loading branch information
Showing
2 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters