sumitagrawl commented on code in PR #9655:
URL: https://github.com/apache/ozone/pull/9655#discussion_r2992305307


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/ContainerData.java:
##########
@@ -672,6 +674,14 @@ public synchronized void updateWrite(long length, boolean 
overwrite) {
       writeBytes += length;
     }
 
+    /**
+     * Increment blockBytes by the given delta.
+     * This is used for overwrite operations that extend the file.
+     */
+    public synchronized void incrementBlockBytes(long delta) {
+      blockBytes += delta;

Review Comment:
   what is the impact of not updating below as earlier before this method used 
to happen,
   writeCount++;
   writeBytes += length;



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