Skip to content

KAFKA-20837: Fix slow MirrorConnectorsIntegrationBaseTest#produceMessages - #23021

Open
mingyen066 wants to merge 1 commit into
apache:trunkfrom
mingyen066:KAFKA-20837
Open

KAFKA-20837: Fix slow MirrorConnectorsIntegrationBaseTest#produceMessages#23021
mingyen066 wants to merge 1 commit into
apache:trunkfrom
mingyen066:KAFKA-20837

Conversation

@mingyen066

@mingyen066 mingyen066 commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

produceMessages waited for each record's ack before sending the next
one, so the accumulator never held more than one record and the producer
could not batch.

Send all the records first, then wait for the acks. The Timer still
bounds the whole batch, so the timeout behaviour is unchanged.

./gradlew :connect:mirror:test --tests
"*MirrorConnectorsIntegrationBaseTest.testOffsetTranslationBehindReplicationFlow"
-PmaxParallelForks=1

95.8s -> 41.0s

@github-actions github-actions Bot added triage PRs from the community connect tests Test fixes (including flaky tests) mirror-maker-2 small Small PRs labels Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connect mirror-maker-2 small Small PRs tests Test fixes (including flaky tests) triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant