slfan1989 opened a new pull request, #10450:
URL: https://github.com/apache/ozone/pull/10450

   ## What changes were proposed in this pull request?
   
   This PR preserves the datanode order in the non-JSON output of the 
DiskBalancer status command.
   
   The DiskBalancer status command executes requests in the order provided by 
the user, or in the order resolved by `--in-service-datanodes`. However, the 
non-JSON status output previously collected successful responses from 
`ConcurrentHashMap.values()`, which does not guarantee iteration order.
   
   As a result, the displayed status rows could appear in a different order 
from the input datanode list. This PR updates the rendering path to build the 
status result list according to the ordered `successNodes` list instead.
   
   The PR also updates the CLI unit test to verify that status output preserves 
the requested datanode order.
   
   ## What is the link to the Apache JIRA
   
   HDDS-15491. [DiskBalancer] Preserve datanode order in status command output.
   
   ## How was this patch tested?
   
   Add Junit Test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to