aswinshakil commented on code in PR #3484:
URL: https://github.com/apache/ozone/pull/3484#discussion_r897048476
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/statemachine/background/BlockDeletingService.java:
##########
@@ -489,10 +490,11 @@ public ContainerBackgroundTaskResult
deleteViaTransactionStore(
deletedBlocksCount, releasedBytes);
// update count of pending deletion blocks, block count and used
- // bytes in in-memory container status.
+ // bytes in in-memory container status and used space in volume.
containerData.decrPendingDeletionBlocks(deletedBlocksCount);
containerData.decrBlockCount(deletedBlocksCount);
Review Comment:
For increment we had `incrWriteBytes()` which is used in
`updateWriteStats()` and is different from `incrBytesUsed()`, both are done as
two operations inside `updateWriteStats()`. We can do something like create a
function `decrWriteBytes()` and then call `decrementUsedSpace()`, but it will
be same instead of calling `containerData.getVolume().decrementUsedSpace()` we
will be calling `containerData.decrWriteBytes()`
--
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]