-
Notifications
You must be signed in to change notification settings - Fork 3k
[receiver/kafka] add support for max partition fetch bytes config #43105
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Paulo Dias <[email protected]>
Signed-off-by: Paulo Dias <[email protected]>
Co-authored-by: Vihas Makwana <[email protected]>
- `default_fetch_size` (default = `1048576`): The default number of message bytes to fetch in a request, defaults to 1MB. | ||
- `max_fetch_size` (default = `0`): The maximum number of message bytes to fetch in a request, defaults to unlimited. | ||
- `max_fetch_wait` (default = `250ms`): The maximum amount of time the broker should wait for `min_fetch_size` bytes to be available before returning anyway. | ||
- `max_partition_fetch_size` (default = `1048576`): The default number of message bytes to fetch in a request per partition, defaults to 1MB. If a single record batch is larger than this value, the broker will still return it to ensure the consumer can make progress. This setting only applies while using [`franz-go`](https://github.com/twmb/franz-go). |
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.
A thing we can work as a follow-up is to use human readable formats in documentation.
We can use 1 MiB
instead of 1048576
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.
Not a necessity for this PR as there few more places in this README.
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.
@VihasMakwana I opened a new issue for this and other components.
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.
LGTM, thank you!
Good to merge, as it is approved by codeowner! |
Description
This PR adds support for a new setting named
max_partition_fetch_size
to be used withkgo.FetchMaxPartitionBytes
franz-go option.Link to tracking issue
Fixes #43097
Testing
Updated tests to ensure the new config is applied and works as expected.
Documentation
Documentation updated with the new setting, and referencing will only work while using
franz-go
as Sarama doesn't have support for it.