sarvekshayr commented on code in PR #9655:
URL: https://github.com/apache/ozone/pull/9655#discussion_r2734953959
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueHandler.java:
##########
@@ -1102,6 +1118,31 @@ ContainerCommandResponseProto handleWriteChunk(
return getWriteChunkResponseSuccess(request, blockDataProto);
}
+ /**
+ * Commit space reserved for write to usedSpace when write operation
succeeds.
+ */
+ private void commitSpaceReservedForWrite(HddsVolume volume, boolean
spaceReserved, long bytes) {
Review Comment:
Updated the logic to make the flow clearer by moving the `spaceReserved`
check to the call site. This makes it explicit that the commit operation is
invoked only when space has actually been reserved.
--
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]