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


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/NSSummaryEndpoint.java:
##########
@@ -123,6 +124,12 @@ public Response getDiskUsage(@QueryParam("path") String 
path,
       return Response.ok(duResponse).build();
     }
 
+    NSSummaryTask.RebuildState rebuildState = 
ReconUtils.getNSSummaryRebuildState();

Review Comment:
   @priyeshkaratha I just realized that, till NSSummary rebuild is happening, 
APIs can serve from main rocksDB NSSummary tables instead of Staging DB table, 
so to be safe, you should have the logic as per 
[comment](https://github.com/apache/ozone/blob/f6bb53671fe07a3274a8774194b624f1679becc2/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/OMDBInsightEndpoint.java#L1083)
 mentioned by @ArafatKhan2198 



-- 
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