ArafatKhan2198 opened a new pull request, #5159:
URL: https://github.com/apache/ozone/pull/5159

   ## What changes were proposed in this pull request?
   
   The Insights endpoint, specifically the **`/deletePending/dirs`** endpoint, 
retrieves information from the **`deletedDirectoryTable`**. This table contains 
the directory path as the key and **`OmKeyInfo`** object as its value. The 
OmKeyInfo object is expected to provide details such as directoryName, path, 
creationTime, etc. However, the **size** associated with that directory is 
currently left blank, rendering it unreferenced. Consequently, there is a need 
to implement a new method for calculating the size of the deleted directories. 
This can be achieved by utilizing the **NSSummaryTable**, which should hold the 
**Namespace Summary** of the deleted directory.
   
   To retrieve the size of a single Deleted Pending directory, we need to 
implement the DU space calculation logic. I am currently utilizing the 
`NameSpaceSummaryTable` to fetch the information regarding sub-directories and 
files linked to the DeletedDirectory.
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9088
   
   ## How was this patch tested?
   The existing unit tests passed successfully, and I've also added new tests 
to verify the size calculation.
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to