J-HowHuang opened a new pull request, #15496: URL: https://github.com/apache/pinot/pull/15496
## Description To preserve a certain order of the pre-check items. Use `LinkedHashMap` instead of `HashMap` to store the pre-check result. It will order the items as inserting order. We have the inserting order: https://github.com/apache/pinot/blob/b9da6a7786a1e46dc6dda68be872dae668de0c2b/pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/DefaultRebalancePreChecker.java#L82-L100 ### Before <img width="908" alt="image" src="https://github.com/user-attachments/assets/a7fdd7f3-be9d-4263-bbd7-f5f0e7d6929f" /> ### After <img width="911" alt="image" src="https://github.com/user-attachments/assets/c05522c8-1719-4129-9fb9-f6f9829ca29e" /> ## Note If pre-check items are to be done in parallel in the future, then we should sort the items in the end instead of using linked hash map. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org