-
Notifications
You must be signed in to change notification settings - Fork 140
msgpack 1.0.0 changes default string encoding / breaks fluentbit communication #157
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
Comments
I'm not sure what the correct path forward is --- perhaps use_bin_type=False should be included by default in msgpack_kwargs. Alternatively, the dependency could be pinned to python-msgpack <= 0.6.2, since 1.0.0 has degraded performance for python 2. |
I'm going to pin it under 1.0.0 for now as a short term solution. Python 2 being dead is not a terrible concern anymore. Thanks for the report! |
Hello, Firstly I would like to say thank you for python-fluent-logger ! https://review.opendev.org/c/openstack/kolla-ansible/+/755775 I am also packaging python-fluent-logger for debian distro, so can I expect new version ? Thank you very much ! |
There is also pull request for unpin msgpack and some patch here -> Could you please verify and merge ? |
In #173 I'm removing Python 2 compatibility and setting |
fixes fluent#157 Signed-off-by: Matt Cipperly <mcipperly@fb.com>
fixes fluent#157 Signed-off-by: Matt Cipperly <mcipperly@fb.com>
https://pypi.org/project/msgpack/1.0.0/ -- see the section, "Major breaking changes in 1.0":
if use_bin_type=False isn't passed to FluentSender in msgpack_kwargs, fluentbit will see that the first element of each received message is not of type MSGPACK_OBJECT_STR, and refuse to enqueue the message. If you have debug output turned on in fluent-bit, you should see it output a message like,
I have verified that this happens in fluent-bit 1.3.5, and while I haven't tried it using 1.3.8, the relevant code in that release appears unchanged.
The text was updated successfully, but these errors were encountered: