devmadhuu commented on code in PR #8591: URL: https://github.com/apache/ozone/pull/8591#discussion_r2162927660
########## hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/OMDBInsightEndpoint.java: ########## @@ -733,6 +755,28 @@ public Response getDeletedDirectorySummary() { return Response.ok(dirSummary).build(); } + /** + * Retrieves the summary of the total delete pending directory size (unreplicated and replicated). + * + * @return The HTTP response body includes a map with the following entries: + * - "totalUnreplicatedDataSize": the total replicated size of delete pending directories. + * - "totalReplicatedDataSize": the total unreplicated size of delete pending directories. + * + * Example response: + * { + * "totalUnreplicatedDataSize": 30000, + * "totalReplicatedDataSize": 90000 + * } + */ + @GET + @Path("/deletePending/dirs/size") + public Response getTotalDeletedDirectorySizeSummary() { Review Comment: Hope this end point is being used only for CLI ? If used anywhere for Recon UI, we should consider the recursiveness cost for calling this as we have experienced time taken upto 54 secs for upto one dir size computation if depth could reach upto 11 levels with near to 5.6 million dirs. -- 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-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org