-
Notifications
You must be signed in to change notification settings - Fork 14.3k
KAFKA-19018,KAFKA-19063: Implement maxRecords and acquisition lock timeout in share fetch request and response resp. #19334
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
Conversation
8bfe7d5
to
a24c2b9
Compare
…meout in share fetch request and response resp.
a24c2b9
to
e6789a5
Compare
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.
Thanks for the PR. Some initial comments. I'll take another pass soon.
@@ -39,6 +39,8 @@ | |||
"about": "The top-level response error code." }, | |||
{ "name": "ErrorMessage", "type": "string", "versions": "0+", "nullableVersions": "0+", "default": "null", | |||
"about": "The top-level error message, or null if there was no error." }, | |||
{ "name": "AcquisitionLockTimeout", "type": "int64", "versions": "0+", |
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.
Please can you add Ms
to the field name? In RPCs, the convention for timeouts is always to have Ms
on the end, such as RebalanceTimeoutMs
. Also, they are always int32
, which is probably appropriate here too.
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.
Done.
"about": "The maximum bytes to fetch. See KIP-74 for cases where this limit may not be honored." }, | ||
"about": "The maximum bytes to fetch. See KIP-74 for cases where this limit may not be honored." }, | ||
{ "name": "MaxRecords", "type": "int32", "versions": "0+", | ||
"about": "The maximum number of records to fetch. This is a soft limit and records can exceed upto the end of fetch log batch." }, |
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.
I suggest for the second sentence "This limit can be exceeded for alignment of batch boundaries".
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.
Done.
…meout in share fetch request and response resp. (apache#19334) PR add `MaxRecords` to share fetch request and also adds `AcquisitionLockTimeout` to share fetch response. PR also removes internal broker config of `max.fetch.records`. Reviewers: Andrew Schofield <[email protected]>
PR add
MaxRecords
to share fetch request and also addsAcquisitionLockTimeout
to share fetch response. PR also removes internal broker config ofmax.fetch.records
.