Skip to content

tests: remove flakyness from kafka tests#2647

Merged
xrmx merged 1 commit into
elastic:mainfrom
xrmx:fix-kafka-tests-flakyness
May 22, 2026
Merged

tests: remove flakyness from kafka tests#2647
xrmx merged 1 commit into
elastic:mainfrom
xrmx:fix-kafka-tests-flakyness

Conversation

@xrmx
Copy link
Copy Markdown
Member

@xrmx xrmx commented May 22, 2026

What does this pull request do?

The Kafka clients could be created/subscribed before topics existed, while fixed topic names also leaked broker state because Kafka topic deletion is async.

So make topic names unique, wait for consumer partition assignment before producing and remember to close the kafka clients on teardown.

Assisted-by: Cursor

Related issues

Closes #2630

The Kafka clients could be created/subscribed before topics existed, while
fixed topic names also leaked broker state because Kafka topic deletion is async.

So make topic names unique, wait for consumer partition assignment before producing
and remember to close the kafka clients on teardown.

Assisted-by: Cursor
@xrmx xrmx requested a review from a team as a code owner May 22, 2026 14:05
@github-actions
Copy link
Copy Markdown

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@xrmx xrmx enabled auto-merge (squash) May 22, 2026 14:08
Copy link
Copy Markdown

@hegerchr hegerchr left a comment

Choose a reason for hiding this comment

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

LGTM

@xrmx xrmx merged commit 6854f9b into elastic:main May 22, 2026
96 of 97 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky kafka-newest test on 3.14

2 participants