KAFKA-19965: Increasing batch size to fix throttled delivery test #21081
+5
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The PR increases the max.poll.records config to 512 as the produced
batch is of 512 records. SharePartition creates batches as per
share fetchrequest batch-size config, which is currently controlled bymax.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:
kafka/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerTest.java
Line 3707 in a8b1fb9
Reviewers: Andrew Schofield [email protected], Lan Ding
[email protected]