priyeshkaratha opened a new pull request, #10767: URL: https://github.com/apache/ozone/pull/10767
## What changes were proposed in this pull request? On the Recon **Cluster Capacity** page, the datanode detail card seeds its default selection to the first datanode in the filtered list, regardless of whether that DN is reachable. When the default-selected DN is unavailable — its pending-deletion query failed, signalled by the `pendingBlockSize === -1` sentinel — the card still rendered `used` / `remaining` / `committed` values from the storage report. For an offline or unreachable DN these values can be stale, so the UI silently displayed outdated capacity data. The node-selector dropdown already disables such DNs (`disabledOpts`), but the default seeding (`hostNames[0]`) can still land on one. This PR surfaces an error state for the selected DN instead of showing potentially outdated data, reusing the error-card pattern introduced for the SCM failure case in HDDS-15272 (#10411) Note : Code is generated using AI ## What is the link to the Apache JIRA HDDS-15853 ## How was this patch tested? Tested manually and updated unit test case <img width="3456" height="1662" alt="image" src="https://github.com/user-attachments/assets/4c827af5-412f-452a-97c0-f26d07926a15" /> -- 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]
