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: don't duplicate on tailer restart #496

Merged
merged 1 commit into from
May 5, 2023

Conversation

jakedipity
Copy link
Contributor

The agent reuses the same initial offsets created on agent startup each time the tailer is restarted. This causes the agent to send duplicate logs each time the tailer restarts. This PR fixes that issue by generating the offsets each time the tailer restarts.

Ref: LOG-16194

Copy link
Collaborator

@c-nixon c-nixon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Good catch

@jakedipity jakedipity force-pushed the jakedipity/dupe-on-restart branch 3 times, most recently from 7792832 to d1e559e Compare May 2, 2023 21:14
The agent reuses the same initial offsets created on agent startup each
time the tailer is restarted. This causes the agent to send duplicate
logs each time the tailer restarts. This PR fixes that issue by
generating the offsets each time the tailer restarts.

Ref: LOG-16194
Signed-off-by: Jacob Hull <jacob@planethull.com>
@jakedipity jakedipity merged commit 4a4aaf2 into master May 5, 2023
@jakedipity jakedipity deleted the jakedipity/dupe-on-restart branch May 5, 2023 18:23
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.

3 participants