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

Combine before_shutdown and shutdown call in one sequence. #1763

Merged
merged 3 commits into from
Nov 29, 2017

Conversation

repeatedly
Copy link
Member

@repeatedly repeatedly commented Nov 27, 2017

Currently, Output's flush_at_shutdown is executed in before_shutdown but
in_tail's multiline buffered logs are flushed in shutdown.
This mismatch causes log lost at shutdown/restart.
To avoid such problem, Input#shutdown should be called before Output#before_shutdown.

If this approach doesn't resolve all cases,
calling order will be changed to v0.12 like sequence.

In addition, we will consider moving flush_at_shutdown routine to shutdown.

Currently, Output's flush_at_shutdown is executed in before_shutdown but
in_tail's multiline buffered logs are flushed in shutdown.
To avoid such problem, Input#shutdown should be called before Output#before_shutdown.

If this approach doesn't resolve all cases,
calling order will be changed to input, filter and output order like v0.12.
@mururu
Copy link
Member

mururu commented Nov 28, 2017

Copy link
Member

@mururu mururu left a comment

Choose a reason for hiding this comment

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

Looks good other than that.

@repeatedly
Copy link
Member Author

Right, removed.

@repeatedly repeatedly merged commit 5342dd2 into master Nov 29, 2017
@repeatedly repeatedly deleted the fix-shutdown-call-sequence branch November 29, 2017 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v0.14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants