Arafat Khan created HDDS-13479:
----------------------------------
Summary: Support Tracking of Deleted Files and Directories in
Recon NSSummary
Key: HDDS-13479
URL: https://issues.apache.org/jira/browse/HDDS-13479
Project: Apache Ozone
Issue Type: Improvement
Components: Ozone Recon
Affects Versions: 2.0.0
Reporter: Arafat Khan
Fix For: 2.1.0
Steps to Reproduce:
1. Create directory structure: /dir1/dir2/f1.txt
2. Delete dir2 (Event 1: directory deletion)
3. Delete f1.txt (Event 2: file deletion)
4. Call fetchSizeForDeletedDirectory for dir2
Expected: Returns actual disk space consumed by f1.txt in deletedTable
Actual: Returns 0 because NamespaceSummary.sizeOfFiles was subtracted
Root Cause: NamespaceSummary tracks deleted files by subtracting their size,
but deletedTable still contains the actual data blocks.
fetchSizeForDeletedDirectory only considers NamespaceSummary data, leading to
incorrect size calculations.
Impact: Incorrect space reclamation reports and misleading storage summary.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]