captainzmc opened a new pull request, #3286:
URL: https://github.com/apache/ozone/pull/3286

   ## What changes were proposed in this pull request?
   
   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.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-6556
   
   ## How was this patch tested?
   
   existing UT, also add new UT.
   


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