Skip to content

Conversation

@apoorvmittal10
Copy link
Contributor

@apoorvmittal10 apoorvmittal10 commented Dec 4, 2025

The PR increases the max.poll.records config to 512 as the produced
batch is of 512 records. SharePartition creates batches as per share fetch request batch-size config, which is currently controlled by
max.poll.records. Drfault max.poll.records config is 500 and If producer
generates multiple batches on log then there will be multiple batches in
share partition. The throttled response in fetch is based on batch size
in share partition hence subsequent throttles fetch calls can have
different sizes as per the produces batches. To make sure the batch is
of correct size in share partition increase the max.poll.records to 512.

The same has been done in other test but missed in the current PR test:

Reviewers: Andrew Schofield [email protected], Lan Ding
[email protected]

@github-actions github-actions bot added triage PRs from the community tests Test fixes (including flaky tests) clients small Small PRs labels Dec 4, 2025
@apoorvmittal10 apoorvmittal10 added ci-approved and removed triage PRs from the community labels Dec 4, 2025
Copy link
Collaborator

@DL1231 DL1231 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch, LGTM

@apoorvmittal10 apoorvmittal10 merged commit 13c89e8 into apache:trunk Dec 5, 2025
23 of 24 checks passed
apoorvmittal10 added a commit that referenced this pull request Dec 5, 2025
…1081)

The PR increases the max.poll.records config to 512 as the produced
batch is of 512 records. SharePartition creates batches as per `share
fetch` request batch-size config, which is currently controlled by
max.poll.records. Drfault max.poll.records config is 500 and If producer
generates multiple batches on log then there will be multiple batches in
share partition. The throttled response in fetch is based on batch size
in share partition hence subsequent throttles fetch calls can have
different sizes as per the produces batches. To make sure the batch is
of correct size in share partition increase the max.poll.records to 512.

The same has been done in other test but missed in the current PR test:

https://github.com/apache/kafka/blob/a8b1fb9203133a356732bf069aa3e0dd9b1716b7/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerTest.java#L3707

Reviewers: Andrew Schofield <[email protected]>, Lan Ding
<[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved clients small Small PRs tests Test fixes (including flaky tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants