Skip to content
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

[backport] fix: reset checkpoint dump time after dir registration completes to avoid log duplication #1301

Merged
merged 1 commit into from
Dec 31, 2023

Conversation

henryzhx8
Copy link
Collaborator

For file log collection, if watched dirs are in NFS, chances are it will take long to complete dir registration. Since current checkpoint dump time is reset before dir registration, and checkpoint dump period is set to 1 min in k8s, chances are checkpoints are dumped and cleared immediately after dir registration with NFS, right before log reader status can be recovered from checkpoints, which finally leads to log duplication.

Therefore, we should reset dump time after dir registration.

@yyuuttaaoo yyuuttaaoo added the bug Something isn't working label Dec 31, 2023
@yyuuttaaoo yyuuttaaoo added this to the v1.8 milestone Dec 31, 2023
@yyuuttaaoo yyuuttaaoo merged commit b9997e5 into 1.8 Dec 31, 2023
17 checks passed
@yyuuttaaoo yyuuttaaoo deleted the fix/dump branch January 2, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants