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

   ## What changes were proposed in this pull request?
   
   During RocksDB compaction, `RocksDBCheckpointDiffer.onCompactionBegin` 
hard-links input SST files into the SST backup directory. If OM crashes or 
restarts before `onCompactionCompleted`, those backup files remain on disk but 
do not appear in `compactionLogTable` because that specific compaction never 
completed. There orphaned backup files are never cleaned from the SST backup 
directory. Existing cleanup only removes non-leaf SST files from completed 
compactions.
   
   The proposed solution removes the orphaned files from SST backup directory 
on OM startup in `loadAllCompactionLogs()`. 
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-14742
   
   ## How was this patch tested?
   
   Unit Test.
   


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