You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "nzw921rx (via GitHub)" <gi...@apache.org> on 2026/09/03 05:39:11 UTC
Re: [PR] [Fix][Connector-Kafka] Warm up Kafka topics before submitting e2e jobs to avoid topic-readiness flake [seatunnel]
nzw921rx commented on PR #11835:
URL: https://github.com/apache/seatunnel/pull/11835#issuecomment-5521067059
Non-blocking: waitForKafkaTopicsReady() currently checks only once and may still be flaky. If you push another commit, consider retrying with Awaitility:
```java
await().atMost(60, SECONDS).untilAsserted(() -> {
Map<String, TopicDescription> descriptions =
adminClient.describeTopics(topics).allTopicNames().get(10, SECONDS);
descriptions.values().stream()
.flatMap(topic -> topic.partitions().stream())
.forEach(partition -> Assertions.assertNotNull(partition.leader()));
});
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org