mingchao zhao created HDDS-6556:
-----------------------------------
Summary: Update usedBytes only when commit key.
Key: HDDS-6556
URL: https://issues.apache.org/jira/browse/HDDS-6556
Project: Apache Ozone
Issue Type: Sub-task
Reporter: mingchao zhao
As we disscussed in https://issues.apache.org/jira/browse/HDDS-5867.
The quota we are currently implementing have a bug. When allocate block, we add
usedBytes. If the key fails to write, the Clean Open Key Service subtracts the
usedBytes. But the bucket may no longer exist when the open key is being
deleted, or may have been deleted and re-created with the same name. This
causes usedBytes update error.
We can only update the usedByte when commit key. In this way, failed keys are
not counted in the usedByte(we‘ll add service in the background to delete
them). This is reasonable for the user. This is garbage data and belongs to the
Ozone system. And the Ozone system itself cleans this data.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]