[ 
https://issues.apache.org/jira/browse/HDDS-13486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sreeja updated HDDS-13486:
--------------------------
    Description: 
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=true --node-id=<dn-id>{code}
will attempt filter to a single specified node and then to sort by usage. 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.

  was:
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=true --node-id=<dn-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.


> 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
>            Priority: Major
>
> 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=true --node-id=<dn-id>{code}
> will attempt filter to a single specified node and then to sort by usage. 
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to