Skip to content

HDDS-15853. [Recon] Show error card for unavailable datanode in Cluster Capacity#10767

Open
priyeshkaratha wants to merge 1 commit into
apache:masterfrom
priyeshkaratha:HDDS-15764
Open

HDDS-15853. [Recon] Show error card for unavailable datanode in Cluster Capacity#10767
priyeshkaratha wants to merge 1 commit into
apache:masterfrom
priyeshkaratha:HDDS-15764

Conversation

@priyeshkaratha

Copy link
Copy Markdown
Contributor

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
image

@priyeshkaratha
priyeshkaratha marked this pull request as ready for review July 15, 2026 02:11

@chihsuan chihsuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @priyeshkaratha LGTM. Tested locally as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants