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

fix: Default input block size should be larger #306

Merged
merged 5 commits into from
Nov 22, 2023
Merged

Conversation

untitaker
Copy link
Member

We were under the assumption that we can pick an arbitrarily low value
here since it will be automatically resized. However, in the case where
a single message is larger than the block size, the consumer can still
crash.

This is too hard to fix right now and not worth it, so hardcode it to
16M (which is more than the max Kafka message size), and hope it never
happens again.

The original purpose of dynamically resizing input blocks was to make
performance tuning simpler, and IMO we still have achieved that.

We were under the assumption that we can pick an arbitrarily low value
here since it will be automatically resized. However, in the case where
a single message is larger than the block size, the consumer can still
crash.

This is too hard to fix right now and not worth it, so hardcode it to
16M (which is more than the max Kafka message size), and hope it never
happens again.

The original purpose of dynamically resizing input blocks was to make
performance tuning simpler, and IMO we still have achieved that.
@untitaker untitaker requested a review from a team as a code owner November 21, 2023 18:24
@untitaker untitaker merged commit 78a2809 into main Nov 22, 2023
8 checks passed
@untitaker untitaker deleted the fix/input-block-size branch November 22, 2023 14:49
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.

None yet

2 participants