Skip to content

[tracing-appender] Use file's mtime instead of created time to sort. #3288

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

c98
Copy link

@c98 c98 commented May 27, 2025

First, rolling based on modified time and created time should not be much different.

On the other hand, because the created time attribute has higher requirements for the Linux kernel version (>=4.11), while the modified time does not have this restriction, it has a wider range of usage scenarios.

When the host Linux kernel version is less than 4.11, the roll function is not available, which will lead to more and more log files, and then cause the disk to be full.

First, rolling based on modified time and created time
should not be much different.

On the other hand, because the created time attribute has
higher requirements for the Linux kernel version (>=4.11),
while the modified time does not have this restriction,
it has a wider range of usage scenarios.

When the host Linux kernel version is less than 4.11, the
roll function is not available, which will lead to more
and more log files, and then cause the disk to be full.
@c98 c98 requested a review from a team as a code owner May 27, 2025 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant