-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Make it hard to accidentally enable an experimental feature flag #11998
Conversation
a8da7bc
to
c55195e
Compare
What about naming the CLI flag Also, I feel that |
I agree with @dumbbell and would use |
c55195e
to
70efb12
Compare
The forced push was a rebase. |
70efb12
to
e9d4fa2
Compare
I've renamed the flag and slightly changed the error message (+rebase) |
e9d4fa2
to
86446c1
Compare
deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/enable_feature_flag_command.ex
Outdated
Show resolved
Hide resolved
deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/enable_feature_flag_command.ex
Outdated
Show resolved
Hide resolved
deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/enable_feature_flag_command.ex
Outdated
Show resolved
Hide resolved
Thanks for the feedback, I've pushed another commit fixing all the issues you pointed out. One question that came to mind is what should happen when |
Instead of ignoring, I think we should either do what it says (enable everithing including experimental feature flags), or reject the command with an error. As you said, given the goal, I would problably reject the command because the risks will be very specific to each experimental feature flag. |
deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/enable_feature_flag_command.ex
Show resolved
Hide resolved
cb32f8f
to
bd6f1b5
Compare
|
Plus, a slightly more scary error message
Also, remove the `undef` case which was only needed for RabbitMQ 3.7 and older.
bd6f1b5
to
396ad7a
Compare
The forced push was a rebase. |
AWS peer discovery tests occasionally fail for branches and then succeed once merged :( |
Make it hard to accidentally enable an experimental feature flag (backport #11998)
Currently it's easy to enable an experimental feature flag like
khepri_db
by accident. Given the operation is irreversible, this leads to serious consequences when done in a production environment.This PR implements the following changes:
rabbitmqctl enable_feature_flag khepri_db
won't work unless a new flag--experimental
is provided