You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Arafat Khan (Jira)" <ji...@apache.org> on 2025/07/20 13:46:00 UTC
[jira] [Created] (HDDS-13479) Support Tracking of Deleted Files and Directories in Recon NSSummary
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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org