Uh oh!
There was an error while loading. Please reload this page.
HDDS-13095. Support sorting by most/least used nodes in ozone admin datanode list - #8520
Conversation
sreejasahithi
commented
May 29, 2025
This might conflict with #8523, let's wait until that one is merged. |
siddhantsangwan
left a comment
There was a problem hiding this comment.
Trying to understand the use case here. Are we trying to make this command have usage information so users don't need to use two different commands, list and usageinfo?
The jira isn't clear to me.
CLI options We are not trying to remove |
siddhantsangwan
commented
Jun 2, 2025
|
sreejasahithi
commented
Jun 2, 2025
yes your right @errose28 should we keep CLI options |
errose28
commented
Jun 2, 2025
@siddhantsangwan we are trying to move our datanode CLI to the same In context of this change, any options that deal with sorting a list should be under the |
sreejasahithi
commented
Jul 7, 2025
This PR can be reviewed first since #8523 is under discussion. |
Tejaskriya
left a comment
There was a problem hiding this comment.
Thanks for the patch @sreejasahithi , overall looks good, just a suggestion below for the tests
Uh oh!
There was an error while loading. Please reload this page.
aryangupta1998
left a comment
There was a problem hiding this comment.
Thanks for the patch, @sreejasahithi. It looks good, I have some minor comments inline.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
aryangupta1998
left a comment
There was a problem hiding this comment.
Thanks for addressing the comments @sreejasahithi, LGTM!
Uh oh!
There was an error while loading. Please reload this page.
Tejaskriya
commented
Jul 11, 2025
Thanks for the patch @sreejasahithi , and the reviews @aryangupta1998@siddhantsangwan@errose28 |
What changes were proposed in this pull request?
This change introduces new CLI options
--most-usedand--least-usedunder theozone admin datanode listcommand to enable sorting datanodes based on their usage. When these options are used, the output includes additional details such as used space, total capacity, and percentage of space used.Unit tests for this change are added in
TestListInfoSubcommand.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13095
How was this patch tested?
sample outputs when
--most-usedflag is used:When json flag is not given:
https://github.com/sreejasahithi/ozone/actions/runs/15297558597