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
Fix line skipping issue in receive_lines method #4491
base: master
Are you sure you want to change the base?
Conversation
@yugeeklab Thanks for this fix! I see the intent of this fix as follows.
Surely, such a fix would allow us to limit memory consumption by the This PR would be effective to some extent, however I believe the problem of memory consumption will remain. Are these my understandings correct? |
Hi, @daipom I've just published an issue #4491 for more information.
When max_line_size isn't set, FIFO's @buffer can grow indefinitely. Or if max_line_size has large value, FIFO's buffer will be limited, but there's still a possibility of fluentd experiencing slowdowns. Summary: as-is: max_line_size helps you avoid buffer overflow configuring via buffer section. If you have any suggestions, such as the fifo_buffer_size parameter or any other ideas, please feel free to discuss them with me. Thank you for your review! |
Thanks so much!
Now I understand!
This fix clears
Thanks! |
Thank you for your comment!! @daipom Please let me know if there's any feedback on my code or idea. I'll review and accept your feedback as soon as possible. Thank you. |
@yugeeklab The CI issue has been resolved. Sorry for the trouble. |
Before this patch, long lines could cause breakdowns in fluentd, potentially posing a vulnerability. With this patch, max_line_size will be integrated into the FIFO, enabling the system to skip lines exceeding the maximum size before executing receive_lines. Co-authored-by: yugeeklab <yugeeklab@gmail.com> Co-authored-by: moggaa <donionbs7@gmail.com> Signed-off-by: been.zino <been.zino@kakaocorp.com>
Hi, @daipom Rebase is done!! Thank you for your review!! |
Which issue(s) this PR fixes:
Fixes #4494
What this PR does / why we need it:
Before this patch, long lines could cause breakdowns in fluentd, potentially posing a vulnerability. With this patch, max_line_size will be integrated into the FIFO, enabling the system to skip lines exceeding the maximum size before executing receive_lines.
Docs Changes:
Release Note: