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

fix: reset checkpoint dump time after dir registration completes to avoid log duplication #1291

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

henryzhx8
Copy link
Collaborator

@henryzhx8 henryzhx8 commented Dec 27, 2023

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.

@henryzhx8 henryzhx8 added the bug Something isn't working label Dec 28, 2023
@yyuuttaaoo yyuuttaaoo changed the title fix: reset checkpoint dump time after dir registration completes fix: reset checkpoint dump time after dir registration completes to avoid log duplication Dec 28, 2023
@yyuuttaaoo yyuuttaaoo merged commit 9874816 into main Dec 28, 2023
20 checks passed
@henryzhx8 henryzhx8 deleted the fix/dump branch December 30, 2023 03:25
@yyuuttaaoo yyuuttaaoo added this to the v2.0 milestone Jan 2, 2024
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.

3 participants