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 tail following on EOF #7927

Merged
merged 2 commits into from
Jul 31, 2020
Merged

Fix tail following on EOF #7927

merged 2 commits into from
Jul 31, 2020

Conversation

reimda
Copy link
Contributor

@reimda reimda commented Jul 30, 2020

The Reader from x/text stops reading after the first io.EOF error is returned, preventing further tailing of the file when new lines are appended. This PR is based on #7886 and adds a unit test of the EOF condition.

closes #7880

@reimda reimda requested a review from ssoroka July 30, 2020 21:02
@reimda reimda merged commit c7236eb into master Jul 31, 2020
@reimda reimda deleted the fix-tail-eof-2 branch July 31, 2020 19:31
reimda added a commit that referenced this pull request Jul 31, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
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.

Tailing files stopped working since v1.15
2 participants