Skip to content

HDDS-15095. Deletion Metrics Page for Ozone Manager Web UI.#10110

Open
sadanand48 wants to merge 3 commits into
apache:masterfrom
sadanand48:HDDS-15095
Open

HDDS-15095. Deletion Metrics Page for Ozone Manager Web UI.#10110
sadanand48 wants to merge 3 commits into
apache:masterfrom
sadanand48:HDDS-15095

Conversation

@sadanand48
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

  1. Last Run (Per iteration) metrics for DirectoryDeletingService
  2. Separate OM Deletion page shown if leader
  3. Tagged deletion related properties in ozone-default.xml

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-15095

How was this patch tested?

Screenshot 2026-04-23 at 11 38 35 AM Screenshot 2026-04-23 at 11 38 45 AM

On follower:
Screenshot 2026-04-23 at 11 37 09 AM

@sadanand48 sadanand48 changed the title HDDS-15095. Deletion Metrics Page for Ozone Manager Web UI. HDDS-15095. Deletion Metrics Page for Ozone Manager Web UI. Apr 23, 2026
@jojochuang jojochuang added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Apr 27, 2026
Copy link
Copy Markdown
Contributor

@jojochuang jojochuang left a comment

Choose a reason for hiding this comment

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

I can access

the page if I know the link: http://localhost:9874/#!/metrics/deletion

but I don't see a menu item linking to the deletion page.

Image

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a dedicated OM web UI page for deletion-related metrics/configuration and wires new DirectoryDeletingService per-run metrics into the backend so deletion activity is easier to inspect from the OM UI.

Changes:

  • Added a new OM /metrics/deletion route, page template, and navigation entry for deletion dashboards.
  • Moved deletion UI content out of the overview page and expanded it with config, latency, key deletion, and directory deletion sections.
  • Added new DirectoryDeletingService last-run/timestamp metrics and tagged deletion-related properties in ozone-default.xml.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/ozoneManager.js Registers the new deletion route/component and fetches config/JMX data for the page.
hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/om-overview.html Removes the old embedded deletion section from the overview page.
hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/om-deletion.html New deletion dashboard template showing leader gating, config, latency, and deletion metrics.
hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/index.html Adds the new “Deletion” nav link to the OM UI.
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/DirectoryDeletingService.java Records DDS current/last-run timing and per-run AOS/snapshot counters.
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/DeletingServiceMetrics.java Defines new JMX gauges and setters for DDS run/tally metrics.
hadoop-hdds/framework/src/main/resources/webapps/static/templates/menu.html Renders optional extra top-level nav links.
hadoop-hdds/framework/src/main/resources/webapps/static/ozone.js Adds extraNavLinks binding support to the shared nav component.
hadoop-hdds/common/src/main/resources/ozone-default.xml Tags more deletion-related properties with DELETION for UI lookup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +224 to +226
resetDdsRoundStats();
ddsRunStartMs = System.currentTimeMillis();
getMetrics().setDdsCurRunTimestamp(ddsRunStartMs);
Comment on lines +51 to +60
<h2>Service iteration latency (last run)</h2>
<p class="text-muted" ng-show="!$ctrl.perf">OMPerformanceMetrics JMX bean not available.</p>
<table class="table table-bordered table-striped" ng-show="$ctrl.perf">
<tbody>
<tr>
<td>KeyDeletingService (ms)</td>
<td>{{$ctrl.perf.KeyDeletingServiceLatencyMs != null ? $ctrl.perf.KeyDeletingServiceLatencyMs : 'N/A'}}</td>
</tr>
<tr>
<td>DirectoryDeletingService (ms)</td>
Comment on lines +31 to +32
<h2>Effective configuration (DELETION tag)</h2>
<p class="text-muted small">Properties tagged <code>DELETION</code> in <code>ozone-default.xml</code>, loaded via <code>conf?cmd=getPropertyByTag&amp;tags=DELETION</code>.</p>
</p>
</div>

<div ng-show="!$ctrl.role || ($ctrl.role.Role || '').trim() === 'LEADER'">

<h3>DirectoryDeletingService (last run)</h3>
<div class="mt-3">
<div class="row mb-2" ng-if="$ctrl.del.DdsCurRunTimestamp">
@sadanand48
Copy link
Copy Markdown
Contributor Author

the page if I know the link: http://localhost:9874/#!/metrics/deletion

but I don't see a menu item linking to the deletion page.

@jojochuang could you try a different browser ? I see this problem when I try to access via 0.0.0.0 on chrome but with localhost it works fine. Looks like some caching issue

Copy link
Copy Markdown
Contributor

@jojochuang jojochuang left a comment

Choose a reason for hiding this comment

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

I don't think Snapshot defrag services are related to deletion. Other than that it looks good to go. (code conflicts needs to resolve)

Comment thread hadoop-hdds/common/src/main/resources/ozone-default.xml
Comment thread hadoop-hdds/common/src/main/resources/ozone-default.xml
Comment thread hadoop-hdds/common/src/main/resources/ozone-default.xml
@jojochuang jojochuang marked this pull request as ready for review May 11, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI-gen snapshot https://issues.apache.org/jira/browse/HDDS-6517

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants