rabbit_feature_flags: Accept "+feature1,-feature2" in $RABBITMQ_FEATURE_FLAGS
#12445
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
Before this patch, the
$RABBITMQ_FEATURE_FLAGSenvironment variable took an exhaustive list of feature flags to enable. This list overrode the default of enabling all stable feature flags.It made it inconvenient when a user wanted to enable an experimental feature flag like
khepri_dbwhile still leaving the default behavior.How
$RABBITMQ_FEATURE_FLAGSnow acceps the following syntax:This will start RabbitMQ with all stable feature flags, plus
feature1, but withoutfeature2.For users setting
forced_feature_flags_on_initin the config, the corresponding syntax is:{forced_feature_flags_on_init, {rel, [feature1], [feature2]}}While working on
rabbit_env, remove the support for$RABBITMQ_LOG_FF_REGISTRY. Its use was removed when the registry was converted from a compiled module to a persistent_term.