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

   ## What changes were proposed in this pull request?
   When deleting a file, DN will check whether the Block file to be deleted 
exists or not in the `FilePerBlockStrategy#deleteChunk`.
   This step of checking for the existence of a Block file can be omitted, and 
basically does not change the behavior of `FilePerBlockStrategy#deleteChunk`.
   This can reduce the IO-times of `FilePerBlockStrategy#deleteChunk`
   the `FilePerBlockStrategy#deleteChunk`
   
   ### `FilePerBlockStrategy#deleteChunk` Change
   - For an existing file `FilePerBlockStrategy#deleteChunk` is no change in 
the result, just one less once IO with System.
   - For non-existent files, the `FilePerBlockStrategy#deleteChunk' function 
behaves the same as before the change, the only difference is that it prints a 
log of successful deletions.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-8748
   
   ## How was this patch tested?
   existing 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