Skip to content

HDDS-14960. OM Web UI dashboard for Ozone Snapshot#10027

Open
jojochuang wants to merge 10 commits intoapache:masterfrom
jojochuang:snapshotui
Open

HDDS-14960. OM Web UI dashboard for Ozone Snapshot#10027
jojochuang wants to merge 10 commits intoapache:masterfrom
jojochuang:snapshotui

Conversation

@jojochuang
Copy link
Copy Markdown
Contributor

@jojochuang jojochuang commented Apr 2, 2026

What changes were proposed in this pull request?

HDDS-14960. OM Web UI dashboard for Ozone Snapshot

Please describe your PR in detail:

  • Create a Ozone Snapshot dashboard tab in OM Web UI, that displays:
  1. Usage statstics – number of active, deleted snapshots, size of current snapshot cache.
  2. List of snapshot diff jobs – status text, progress, creation time; search&sort capabilities.
  3. Snapshot internal metrics in OmSnapshotInternalMetrics.

The implementation includes:

  1. Frontend code to display usage statistics, snapshot diff jobs, internal metrics, code to support search and sort capabilities.
  2. Backend code: SnapshotDiffManager implements SnapshotDiffManagerMXBean and register it with the runtime.
  3. Test code to ensure the MXBean is registered correctly, and the values is expected.

SnapshotDiffJob getCodec() renamed to codec() to avoid clashes with JMXBean conventions.

Gemini CLI model gemini-3-flash-preview

What is the link to the Apache JIRA

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

How was this patch tested?

Screenshot 2026-04-01 at 5 53 56 PM

Unit tests, manually inspected frontend web UI after executing this command (screen shot attached)

ozone sh volume create vol1
ozone sh bucket create vol1/bucket1
ozone sh snapshot create vol1/bucket1 snap1
ozone sh key put vol1/bucket1/key1 /etc/krb5.conf
ozone sh snapshot create vol1/bucket1 snap2
ozone sh snapshot diff vol1/bucket1 snap1 snap2
ozone sh snapshot lsDiff vol1/bucket1 -a
ozone sh key delete vol1/bucket1/key1
ozone sh snapshot create vol1/bucket1 snap3
ozone sh snapshot diff vol1/bucket1 snap2 snap3
ozone sh snapshot diff vol1/bucket1 snap1 snap3
ozone sh snapshot lsDiff vol1/bucket1 -a```

Change-Id: Iea21514269d37a233c816a2cc55be44fe788382a
Change-Id: I93ba5bf171938338f00af6e1f07f27b9cee2bfe2
Change-Id: I5b5a2dd86eb12555e74146bf63f461642ceba058
Change-Id: Ibe1e0c84ec68936f7aa8837d9aea969b2bcc5701
Change-Id: I89b3585bbd5e34364a8a4567f81de485b737d69e
Change-Id: I96660319acfc3b135bd58e592e9d3ff8ebd4a05c
Change-Id: I7e742e806d493ecca8b543f6ad19266b10247cd7
Change-Id: I9f5b5040fe8835c7cc7aae98732368b12a053961
Change-Id: I4a2c082ddacd1868934179b4ec47beb64e046417
@jojochuang jojochuang added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Apr 2, 2026
@jojochuang jojochuang requested review from sadanand48 and smengcl April 2, 2026 01:24
Change-Id: If87353d4cdc540b271c183f339dd704e42cb8b46
@jojochuang jojochuang marked this pull request as ready for review April 2, 2026 22:32
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.

1 participant