[ 
https://issues.apache.org/jira/browse/CAMEL-23430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18078628#comment-18078628
 ] 

Aurélien Pupier edited comment on CAMEL-23430 at 5/6/26 8:48 AM:
-----------------------------------------------------------------

{noformat}
[camel-kafka] [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time 
elapsed: 0.474 s <<< FAILURE! -- in 
org.apache.camel.processor.idempotent.kafka.KafkaIdempotentRepositoryEagerIT
[camel-kafka] [ERROR] 
org.apache.camel.processor.idempotent.kafka.KafkaIdempotentRepositoryEagerIT -- 
Time elapsed: 0.474 s <<< FAILURE!
org.opentest4j.AssertionFailedError: Exception while creating Kafka topic
        at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:47)
        at org.junit.jupiter.api.Assertions.fail(Assertions.java:157)
        at 
org.apache.camel.component.kafka.integration.common.KafkaTestUtil.createTopic(KafkaTestUtil.java:105)
        at 
org.apache.camel.processor.idempotent.kafka.KafkaIdempotentRepositoryEagerIT.createRepositoryTopic(KafkaIdempotentRepositoryEagerIT.java:41)
Caused by: java.util.concurrent.ExecutionException: 
org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This server 
does not host this topic-partition.
        at 
java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
        at 
java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)
        at 
org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:173)
        at 
org.apache.camel.component.kafka.integration.common.KafkaTestUtil.createTopic(KafkaTestUtil.java:101)
        ... 1 more
{noformat}

EDIT: this second test has same error as me,ntioned on 
https://issues.apache.org/jira/browse/CAMEL-23316 which can occur on a lot of 
different tests


was (Author: apupier):
{noformat}
[camel-kafka] [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time 
elapsed: 0.474 s <<< FAILURE! -- in 
org.apache.camel.processor.idempotent.kafka.KafkaIdempotentRepositoryEagerIT
[camel-kafka] [ERROR] 
org.apache.camel.processor.idempotent.kafka.KafkaIdempotentRepositoryEagerIT -- 
Time elapsed: 0.474 s <<< FAILURE!
org.opentest4j.AssertionFailedError: Exception while creating Kafka topic
        at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:47)
        at org.junit.jupiter.api.Assertions.fail(Assertions.java:157)
        at 
org.apache.camel.component.kafka.integration.common.KafkaTestUtil.createTopic(KafkaTestUtil.java:105)
        at 
org.apache.camel.processor.idempotent.kafka.KafkaIdempotentRepositoryEagerIT.createRepositoryTopic(KafkaIdempotentRepositoryEagerIT.java:41)
Caused by: java.util.concurrent.ExecutionException: 
org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This server 
does not host this topic-partition.
        at 
java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
        at 
java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)
        at 
org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:173)
        at 
org.apache.camel.component.kafka.integration.common.KafkaTestUtil.createTopic(KafkaTestUtil.java:101)
        ... 1 more
{noformat}

> Flaky tests in camel-kafka: KafkaConsumerAutoInstResumeRouteStrategyIT and 
> KafkaIdempotentRepositoryEagerIT
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-23430
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23430
>             Project: Camel
>          Issue Type: Test
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Major
>              Labels: test-flaky
>
> Two tests in camel-kafka are flaky on CI:
> *1. KafkaConsumerAutoInstResumeRouteStrategyIT.testOffsetIsBeingChecked*
> {noformat}
> mock://result Received message count. Expected: <10> but was: <0>
> {noformat}
> Passed on rerun (Run 2).
> *2. KafkaIdempotentRepositoryEagerIT.createRepositoryTopic*
> {noformat}
> Exception while creating Kafka topic
> {noformat}
> Passed on rerun (Run 3 — needed 2 retries).
> Both are likely related to Kafka testcontainer startup timing — the broker 
> may not be fully ready when the test begins consuming or creating topics.
> *Observed in:* [GitHub Actions run 
> 25376798626|https://github.com/apache/camel/actions/runs/25376798626/job/74413951438]
>  (PR #22957, JDK 17)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to