Skip to content

Fix DataError exception#1984

Closed
jl2005 wants to merge 7 commits into
fluent:masterfrom
jl2005:dataerror
Closed

Fix DataError exception#1984
jl2005 wants to merge 7 commits into
fluent:masterfrom
jl2005:dataerror

Conversation

@jl2005

@jl2005 jl2005 commented May 15, 2018

Copy link
Copy Markdown
Contributor

Fixed #1903 #1847

This exception is caused by submit_flush_once wake up the output thread and interrupting gzip compression, causing a DataError exception to be thrown in the close.

repeatedly added a commit that referenced this pull request Nov 8, 2018
Thread#run causes unexpected interruption and it affects
the behaviour of some libraries, e.g. DataError in zlib.
Use condition variable instead to handle thread execution.

This change is based on jl2005's #1984 patch.

Signed-off-by: Masahiro Nakagawa <repeatedly@gmail.com>
@repeatedly

Copy link
Copy Markdown
Member

This patch has a bug of thread control so I wrote new patch based on this change and merged.

1c79a23

Thanks for the contribution!

@repeatedly repeatedly closed this Nov 11, 2018
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.

buffer flush failed by unexpected Zlib::DataError

2 participants