Skip to content

Conversation

@Efrat19
Copy link
Contributor

@Efrat19 Efrat19 commented Feb 3, 2026

CI pipelines are failing lately with kafka connection errors Possibly due to the test suite not waiting for the kafka brokers to be up This fix will wait with timeout until kafka container is ready or fail earlier

Example: https://github.com/apache/flink-connector-kafka/actions/runs/21477736651/job/62177678922?pr=217

@Efrat19 Efrat19 force-pushed the tests-flakeyness-fix branch from 64a6e42 to 6eb973a Compare February 3, 2026 08:24
@Efrat19 Efrat19 changed the title [HOTFIX] Fix tests flakeyness [hotfix] Fix tests flakeyness Feb 3, 2026
CI pipelines are failing lately with kafka connection errors
Possibly due to the test suite not waiting for the kafka brokers to be up
This fix will wait with timeout until kafka container is ready
or fail earlier
@Efrat19 Efrat19 force-pushed the tests-flakeyness-fix branch from 6eb973a to 6dd4acf Compare February 3, 2026 08:26
@Efrat19 Efrat19 changed the title [hotfix] Fix tests flakeyness [hotfix] Fix kafka connection flakeyness in tests Feb 3, 2026
"PLAINTEXT:PLAINTEXT,BROKER:PLAINTEXT,CONTROLLER:PLAINTEXT")
.withEnv("KAFKA_INTER_BROKER_LISTENER_NAME", "BROKER");
.withEnv("KAFKA_INTER_BROKER_LISTENER_NAME", "BROKER")
.waitingFor(Wait.forSuccessfulCommand(CONTAINER_STARTUP_CHECK).withStartupTimeout(CONTAINER_STARTUP_TIMEOUT));
Copy link
Contributor

@Savonitar Savonitar Feb 3, 2026

Choose a reason for hiding this comment

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

Doesn't ConfluentKafkaContainer already have and use a wait strategy inside?
it has a wait strategy
in org.testcontainers.kafka.ConfluentKafkaContainer#ConfluentKafkaContainer(org.testcontainers.utility.DockerImageName)

this.waitingFor(KafkaHelper.WAIT_STRATEGY);

@Efrat19 Efrat19 changed the title [hotfix] Fix kafka connection flakeyness in tests [hotfix] Fix kafka connection flakiness in tests Feb 3, 2026
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.

2 participants