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

feat: return an error when using small flush bytes with compression enabled #111

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

kruskall
Copy link
Member

Closes #95

When compression is enabled the gzip writer will buffer data internally
which will cause the unerlying buffer to grow from 0 to n once compression
happens and compressed data are flushed.
Because of this, small flush bytes values are ignored and will never be hit.
The PR returns an error when using a small flush bytes value with compression
enabled.

Users of this library are encouraged to have their own minimum value, log a warning and pass a bigger value if the value is too small.

…nabled

When compression is enabled the gzip writer will buffer data internally
which will cause the unerlying buffer to grow from 0 to n once compression
happens and compressed data are flushed.
Because of this, small flush bytes values are ignored and will never be hit.
The PR returns an error when using a small flush bytes value with compression
enabled.
@kruskall kruskall requested a review from a team as a code owner January 30, 2024 10:14
@kruskall kruskall merged commit cfb8144 into elastic:main Feb 5, 2024
3 checks passed
@kruskall kruskall deleted the feat/error-small-flush branch February 5, 2024 09:32
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.

issue: small flush bytes setting has no effect
3 participants