-
Notifications
You must be signed in to change notification settings - Fork 1.4k
in_tail: fix handling of encoding
parameter
#5010
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
Conversation
4734262
to
7f0dcb4
Compare
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I have added code refactoring.
Could you please check it?
Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Could you please prepare the release note?
|
Added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Which issue(s) this PR fixes:
Fixes #4863
What this PR does / why we need it:
If it configures
encoding
only (withoutfrom_encoding
), it will convert the string encoding unexpectedly and it might break the string.This PR will fix this behavior and we can handle the string correctly.
As a result, the behavior will be aligned with the documented in https://docs.fluentd.org/input/tail#encoding-from_encoding .
Docs Changes:
Not needed.
Release Note:
in_tail: fixed where specifying only
encoding
parameter might cause data corruption (affects since v0.14.12).