[
https://issues.apache.org/jira/browse/HDDS-12793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sammi Chen resolved HDDS-12793.
-------------------------------
Fix Version/s: 2.2.0
Resolution: Fixed
> Recursive iterate FSO directory
> -------------------------------
>
> Key: HDDS-12793
> URL: https://issues.apache.org/jira/browse/HDDS-12793
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: ChenXi
> Assignee: Sammi Chen
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.2.0
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]