Skip to content

HDDS-15077. Explain exclusiveSize and exclusiveSizeDeltaFromDirDeepCleaning#10544

Draft
jojochuang wants to merge 2 commits into
apache:masterfrom
jojochuang:HDDS-15077
Draft

HDDS-15077. Explain exclusiveSize and exclusiveSizeDeltaFromDirDeepCleaning#10544
jojochuang wants to merge 2 commits into
apache:masterfrom
jojochuang:HDDS-15077

Conversation

@jojochuang

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

HDDS-15077. Explain exclusiveSize and exclusiveSizeDeltaFromDirDeepCleaning

Please describe your PR in detail:

SnapshotInfo.java

Added comprehensive Javadocs to the metadata representation of Snapshots:

• Fields: Documented the purpose of all six space and replication size metrics:
• referencedSize & referencedReplicatedSize : Logical and replicated sizes of active bucket contents at snapshot creation time.
• exclusiveSize & exclusiveReplicatedSize : Exclusive sizes calculated by KeyDeletingService (key-level deep cleaning).
• exclusiveSizeDeltaFromDirDeepCleaning & exclusiveReplicatedSizeDeltaFromDirDeepCleaning : Exclusive size deltas discovered by
SnapshotDirectoryCleaningService (directory-level deep cleaning).
• Builder: Replaced terse parameter markers (e.g., /** @param ... */ ) with detailed descriptions explaining the calculations and units.
• Getters: Added descriptive method Javadocs for the respective getters.
──────

3. Documentation Changes

Snapshot.md

Added a new subsection under "System Architecture Deep Dive" titled "Snapshot Space & Size Tracking":

• Documented the definition of Referenced Size (logical and replicated).
• Explained the architecture of Exclusive Size Tracking and how it is split between the two independent background services ( KeyDeletingService and
SnapshotDirectoryCleaningService ) to prevent write overlaps and correctness bugs.
• Specified how the true total exclusive size is calculated:
• Total Exclusive Size = exclusiveSize + exclusiveSizeDeltaFromDirDeepCleaning
• Total Exclusive Replicated Size = exclusiveReplicatedSize + exclusiveReplicatedSizeDeltaFromDirDeepCleaning

What is the link to the Apache JIRA

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

How was this patch tested?

Javadoc and markdown user doc only.

…eaning

Change-Id: Ia27efffe27156997f82a4db99ed810efb6b7900f
…erencedReplicatedSize

Change-Id: I5fa24e9eeec4d88b5da2629a1175883c330b1cc0
@jojochuang jojochuang requested review from sadanand48 and smengcl June 18, 2026 20:23
@jojochuang jojochuang added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Jun 18, 2026

@sadanand48 sadanand48 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.

LGTM

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants