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 data loss on filebeat/winlogbeat shutdown #2046

Merged
merged 3 commits into from
Jul 15, 2016

Conversation

urso
Copy link

@urso urso commented Jul 15, 2016

filebeat/winlogbeat in master branch might loose data between restarts, due to non-published events still being forwarded to registry as success on shutdown.

syncPublisher needs to check (publisher.Client).PublishEvents return code and
stop if false is returned. Only in case of client.Close() is run while
sending, false will be returned.

urso added 2 commits July 15, 2016 16:05
syncPublisher needs to check (publisher.Client).PublishEvents return code and
stop if `false` is returned. Only in case of client.Close() is run while
sending, `false` will be returned.
@urso
Copy link
Author

urso commented Jul 15, 2016

Closes #2041

@andrewkroh
Copy link
Member

LGTM.

@andrewkroh andrewkroh merged commit 6b5ddb4 into elastic:master Jul 15, 2016
@urso urso deleted the fix/2041-logs-lost-on-stop branch February 19, 2019 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants