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

   ## What changes were proposed in this pull request?
   
   1. add detection of unreferenced chunks in full data scan
   2. add contanierGarbageCollector in **KeyValueHandler** to collect and 
remove the orphan files
   3. move the function **getChunkDir** from **ContainerLayoutVersion** to 
**ContainerUtils**
   
   This aims to solve the case B in 
   
https://docs.google.com/document/d/1Oi1zPKdmvA7DFwIcUWz6zw_p-pY3D1L76gyV37jQT94/edit#
   
   Currently, there is no report of such orphan chunk info forward to 
Recon/SCM. We directly delete them serially after a full data scan with a few 
checks to avoid possible accidents. Maybe we could add a recon to imply this 
info and add a button to trigger the removal.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-1202
   
   ## How was this patch tested?
   1. Created a POC test and tested deleting the orphan blocks created by EC 
write.
   2. 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