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

   ## What changes were proposed in this pull request?
   
   
   
   In FSO, directory modification time is modified only when there is direct 
children change(add, rename). 
   
   Add a new file to a directory will only change it's parent directory 
modification time, but not all its grand parents directory modification time. 
So it's not correct to treat a directory as expired only if it's modification 
time crosses the expiry date or days. 
   
   The right way is both check the directory's modification time and whether 
it's empty or not.  If it's not empty, then this directory cannot be expired 
regardless of its modification time. 
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-12793
   
   ## How was this patch tested?
   
   new unit tests


-- 
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: issues-unsubscr...@ozone.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to