You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Sreeja (Jira)" <ji...@apache.org> on 2025/07/22 06:05:00 UTC
[jira] [Created] (HDDS-13486) Enforce Exclusivity Between Node Selection and Sorting Options in ListInfoSubcommand
Sreeja created HDDS-13486:
-----------------------------
Summary: Enforce Exclusivity Between Node Selection and Sorting Options in ListInfoSubcommand
Key: HDDS-13486
URL: https://issues.apache.org/jira/browse/HDDS-13486
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Sreeja
Assignee: Sreeja
Currently, the ozone admin datanode list command allows users to combine node selection options (e.g., --node-id, --ip, --hostname) with usage sorting options (e.g., --most-used, --least-used).
This combination leads to confusing command behavior. For instance,
{code:java}
ozone admin datanode list --most-used --node-id=<some-id>{code}
will attempt to sort all datanodes by usage, but then filter the result down to a single specified node. This provides a misleading output to the user.
To improve command clarity and user experience, we need to make node selection options and usage sorting options mutually exclusive. This means a user will only be able to specify options for either selecting specific nodes or sorting the entire list by usage, but not both simultaneously. This ensures the command's intent is clear and its output is intuitive.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org