Shilun Fan created HDDS-15491:
---------------------------------
Summary: [DiskBalancer] Preserve datanode order in status command
output
Key: HDDS-15491
URL: https://issues.apache.org/jira/browse/HDDS-15491
Project: Apache Ozone
Issue Type: Sub-task
Components: Ozone CLI, Ozone Datanode
Reporter: Shilun Fan
Assignee: Shilun Fan
The DiskBalancer status command executes requests in the order provided by the
user, or in the order returned by SCM when --in-service-datanodes is used.
However, the non-JSON status output currently stores successful responses in a
ConcurrentHashMap and then builds the output from statuses.values().
ConcurrentHashMap does not guarantee iteration order, so the displayed status
rows may not match the input datanode order or SCM returned order.
This can make the command output harder to read and compare, especially when
users provide multiple datanodes explicitly.
The status command should preserve the successful datanode order when rendering
non-JSON output.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]