Skip to content
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-12086. Allow --db option at leaf subcommand in debug tools #7710

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

ozone debug ldb --db <db> <subcommand> [other options]

Currently --db is accepted only directly after ldb, before any subcommand name or options. The goal of this PR is to improve usability by allowing --db after subcommand or even after other options.

https://issues.apache.org/jira/browse/HDDS-12086

How was this patch tested?

Updated integration test to cover three different positions of the option.

CI:
https://github.com/adoroszlai/ozone/actions/runs/12807326607

@adoroszlai adoroszlai added the tools Tools that helps with debugging label Jan 16, 2025
@adoroszlai adoroszlai self-assigned this Jan 16, 2025
@adoroszlai
Copy link
Contributor Author

@sarvekshayr @Tejaskriya please take a look

Copy link
Contributor

@sarvekshayr sarvekshayr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adoroszlai for the patch. LGTM.

Copy link
Contributor

@Tejaskriya Tejaskriya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making this change @adoroszlai. This usage is easier, LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Tools that helps with debugging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants