Skip to content

KAFKA-21262: Do not cap total run time in ShareConsumerPerformance - #23781

Draft
unknowntpo wants to merge 1 commit into
apache:trunkfrom
unknowntpo:fix-share-benchmark-flaky
Draft

unknowntpo wants to merge 1 commit into
apache:trunkfrom
unknowntpo:fix-share-benchmark-flaky

Conversation

@unknowntpo

@unknowntpo unknowntpo commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

--timeout is documented as the maximum time between returned records,
but ShareConsumerPerformance also used it as a limit for the whole
run. A run longer than the timeout was interrupted and the tool printed
only the header line.

This is one of the two causes of the flaky share consumer benchmarks.
The other one is fixed in #23894, which should be merged first or
together: with only this change, a benchmark run that reads 0 records
still passes.

@github-actions github-actions Bot added triage PRs from the community tools small Small PRs labels Oct 12, 2026
@AndrewJSchofield
AndrewJSchofield requested a review from smjn October 17, 2026 21:23
@github-actions

Copy link
Copy Markdown

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

--timeout is the max time between records, but consume() also used it as a
total time limit and interrupted the consumers when it was reached. Wait for
every consumer task instead.
@unknowntpo
unknowntpo force-pushed the fix-share-benchmark-flaky branch from b7b4ed3 to ec090b8 Compare October 21, 2026 09:19
@unknowntpo unknowntpo changed the title KAFKA-21262: Fix flaky share consumer benchmark system tests KAFKA-21262: Do not cap total run time in ShareConsumerPerformance Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved KIP-932 Queues for Kafka small Small PRs tools triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants