-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AMORO-3192] Add the "clean-orphan-file.interval-time-minutes" parameter #3193
[AMORO-3192] Add the "clean-orphan-file.interval-time-minutes" parameter #3193
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work, but I think the default check interval should be less than the default min existing time.
Why is this necessary? The "min existing time" ensures that useful files are not mistakenly deleted, so setting it to two to three days is usually sufficient. However, cleaning orphan files is a performance-intensive task, so it's generally appropriate to configure the cleanup to occur once a week or once a month. |
@lintingbin Thanks for the contribution. The scheduling interval for the current expiration task is usually set as an AMS configuration like BTW, we are improving the configuration value for time duration with unit support like 3d, we can do it for the new configuration. |
I agree with @lintingbin, there is no connection between the values of these two configurations. |
The modifications have been completed according to the suggestions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Why are the changes needed?
Close #3192.
Brief change log
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before making a pull request
Documentation