-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix setTtl workflow and ttlbucket bugs
### What changes are proposed in this pull request? 1)setttl cmd on a big directory unnecessary setattr recursively, while dir ttl already supercedes children ttl. there's absolutely no reason to save ttl on children node individually. 2)ttlbucket unnecessarily saves Inode obj on heap unboundedly, where it could and should only save inodeid and load inode from inodestore to double check expiry during inodettlchecker processing. 3)fix race condition on ttlbucketlists from ttlchecker and insertion from foreground. 4)fix case where any expiration of inodes failed during ttlchecker it will never be retried again. ### Why are the changes needed? Reduce heavy GC when setttl on a huge folder / bug fixes as indicated above for ttl ### Does this PR introduce any user facing changes? yes. So now setTtl command on a dir will not set ttl attributes for all its children. pr-link: #16933 change-id: cid-36ec524b2178220886cccb7a82de119bdcc8203f
- Loading branch information
1 parent
cb8d7ca
commit 7313853
Showing
8 changed files
with
332 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.