You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "devmadhuu (via GitHub)" <gi...@apache.org> on 2023/09/14 11:16:35 UTC

[GitHub] [ozone] devmadhuu commented on a diff in pull request #5265: HDDS-9260. Optimize OmDbInsight API to avoid redundant recursive size calculations for deleted directories during data retrieval.

devmadhuu commented on code in PR #5265:
URL: https://github.com/apache/ozone/pull/5265#discussion_r1325776176


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/OMDBInsightEndpoint.java:
##########
@@ -580,10 +580,22 @@ protected long fetchSizeForDeletedDirectory(long objectId)
     if (nsSummary == null) {
       return 0L;
     }
+    // Check if the deleted dir size is already computed and set previously.
+    if (nsSummary.getIsSizeOfDeletedDirectoryComputed()) {

Review Comment:
   @ArafatKhan2198 Thanks for working on this patch. Since this is new field in NSSummary, I think you need to update its Codec as well to read and persist in rocksDb successfully.



-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org