-
Notifications
You must be signed in to change notification settings - Fork 514
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
HDDS-11946. Require all ozone repair commands to support a --dry-run option #7682
base: master
Are you sure you want to change the base?
Conversation
@sarvekshayr @Tejaskriya please review |
In my opinion, it would be better to make the Since the primary focus of this PR is to add the |
I think we can decide and implement the default behavior here, that's why I initially created the PR as draft. I have no objection against making dry run the default, but I find |
We can go ahead and use the |
@errose28 could you please review? |
I actually prefer |
What changes were proposed in this pull request?
--dry-run
option to allozone repair
subcommands that modify state. The new option currently defaults tofalse
, so commands perform repair by default. (Otherwise we'd need to use it as--dry-run=false
.)https://issues.apache.org/jira/browse/HDDS-11946
How was this patch tested?
Enforce
--dry-run
optionAdded unit test to verify that each subcommand under
ozone repair
satisfies one of the following:--dry-run
optionReadOnlySubcommand
(currently onlyQuotaStatus
)Test failure before implementing
ReadOnlyCommand
inQuotaStatus
:Tool operation
Sample output of
ozone repair om fso-tree
from integration tests:Manual test of
ozone repair om update-transaction
in compose environment:CI:
https://github.com/adoroszlai/ozone/actions/runs/12714010228