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

Modify TimeSlicedOutput#emit mechanizm to fit BufferedOutput#emit way #634

Merged
merged 1 commit into from
Jul 20, 2015

Conversation

repeatedly
Copy link
Member

Current TimeSlicedOutput#emit emits records to buffer one by one.
It causes inconsistent state when queue has a problem.
For example, some records are stored into buffers and
raises BufferQueueLimitError. In this situation,
logs are duplicated if input plugin retries.
BufferedOutput and ObjectBufferedOutput uses another way.
These outputs format all records into data chunk first.
New behaviour is more safer than current TimeSlicedOutput way.

@sonots @tagomoris Could you check this patch? It increases temporary memory usage but current behaviour should be fixed.

Current TimeSlicedOutput#emit emits records to buffer one by one.
It causes inconsistent state when queue has a problem.
For example, some records are stored into buffers and
raises BufferQueueLimitError. In this situation,
logs are duplicated if input plugin retries.
BufferedOutput and ObjectBufferedOutput uses another way.
These outputs format all records into data chunk first.
It is more safer than current TimeSlicedOutput way.
@tagomoris
Copy link
Member

LGTM, except for failing tests :D

@repeatedly
Copy link
Member Author

If there is no concern, I will merge this today.

repeatedly added a commit that referenced this pull request Jul 20, 2015
Modify TimeSlicedOutput#emit mechanizm to fit BufferedOutput#emit way
@repeatedly repeatedly merged commit a7592fa into master Jul 20, 2015
@sonots sonots deleted the fix-timeslicedoutput-emit branch July 30, 2015 15:24
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.

2 participants