Skip to content

HDDS-15587. [Recon] Show 0 for offline DN pending deletion instead of -1#10585

Merged
ArafatKhan2198 merged 1 commit into
apache:masterfrom
priyeshkaratha:HDDS-15587
Jul 7, 2026
Merged

HDDS-15587. [Recon] Show 0 for offline DN pending deletion instead of -1#10585
ArafatKhan2198 merged 1 commit into
apache:masterfrom
priyeshkaratha:HDDS-15587

Conversation

@priyeshkaratha

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

In the Capacity Distribution → Datanode Details section of Recon, if a datanode is selected and later goes offline, the node becomes disabled for new selection. However, if it was already selected, some metrics such as Pending Deletion are displayed as -1, which can be confusing to users.

To provide a better user experience, Recon should display 0 (or an appropriate default value) for these metrics when the selected datanode is offline or unavailable, instead of showing -1.

What is the link to the Apache JIRA

HDDS-15587

How was this patch tested?

Tested using unit test and manually.
image

@priyeshkaratha priyeshkaratha changed the title HDDS-14577. Show 0 for offline DN pending deletion in Recon UI HDDS-14577. [Recon] Show 0 for offline DN pending deletion instead of -1 Jun 23, 2026
@priyeshkaratha priyeshkaratha marked this pull request as ready for review June 23, 2026 08:38
@priyeshkaratha priyeshkaratha changed the title HDDS-14577. [Recon] Show 0 for offline DN pending deletion instead of -1 HDDS-15587. [Recon] Show 0 for offline DN pending deletion instead of -1 Jun 24, 2026

@ArafatKhan2198 ArafatKhan2198 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 for working on this
Changes LGTM +1

Jut one small comment for the followup -
Rendering 0 B for an offline DN can read as "confirmed zero" rather than "unavailable." The ticket explicitly permits 0 as the default, so this is acceptable; a tooltip/"N/A" affordance would be a nice follow-up but isn't required here.

@spacemonkd spacemonkd 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 for the patch, this LGTM +1.

I agree with @ArafatKhan2198's comment. Maybe we can tackle this later but can we show a similar error card or N/A to indicate something went wrong? 0 would give the wrong idea.

@priyeshkaratha

Copy link
Copy Markdown
Contributor Author

Thanks @ArafatKhan2198 and @spacemonkd for review. I have created HDDS-15764 as followup ticket to improve UI.

@ArafatKhan2198 ArafatKhan2198 merged commit cb9430d into apache:master Jul 7, 2026
40 checks passed
errose28 added a commit to errose28/ozone that referenced this pull request Jul 7, 2026
* master: (519 commits)
  HDDS-14544. OM DB Insights: Duplicate API calls triggered when changing limit selector (apache#10677).
  HDDS-15587. [Recon] Show 0 for offline DN pending deletion instead of -1 (apache#10585).
  HDDS-15521. StreamBlockInputStream fails with TimeoutIOException without retry or failover. (apache#10479)
  HDDS-15170. Add mock-based unit tests for DataStream write path (apache#10230)
  HDDS-15552. Ratis events should not be published as metrics (apache#10523)
  HDDS-15746. Bump kerby to 2.1.2 (apache#10666)
  HDDS-15579. Replace SimpleSpanProcessor with BatchSpanProcessor (apache#10569)
  HDDS-15747. Address review comments for HDDS-15083 (apache#10669)
  HDDS-15732. Some ozone commands ignore OZONE_MODULE_ACCESS_ARGS (apache#10655)
  HDDS-15605. Fix flaky testContainerExclusionWithClosedContainerException (apache#10621)
  HDDS-11855. Fix flaky TestContainerBalancerDatanodeNodeLimit#checkIterationResultException (apache#10667)
  HDDS-15741. Bump awssdk to 2.46.17 (apache#10661)
  HDDS-10307. Speed up TestOzoneManagerHAWithStoppedNodes (apache#10658)
  HDDS-15651. Test case for DiskBalancer when markContainerForDelete fails (apache#10593)
  HDDS-15742. Bump nimbus-jose-jwt to 10.9.1 (apache#10662)
  HDDS-15719. Add check for allowed action usage in workflows (apache#10641)
  HDDS-15744. Bump javassist to 3.32.0-GA (apache#10665)
  HDDS-15737. Fix intermittent failure in balancerShouldOnlySelectConfiguredIncludeContainers (apache#10660)
  HDDS-15743. Bump gson to 2.14.0 (apache#10664)
  HDDS-11093. Fix intermittent failure in TestContainerBalancerDatanodeNodeLimit#testMetrics (apache#10659)
  ...

Conflicts:
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/ContainerScanHelper.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants