Skip to content

Commit

Permalink
Merge pull request #36391 from coiouhkc/feature/doc-update-guide-for-…
Browse files Browse the repository at this point in the history
…kafka-companion

Update kafka.adoc
  • Loading branch information
ozangunalp authored Nov 7, 2024
2 parents 5d09f38 + feee394 commit 547ab92
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/src/main/asciidoc/kafka.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2453,6 +2453,20 @@ public class OrderProcessorTest {
<3> Create consumer task which subscribes to 'orders-processed' topic and consumes 10 records.
<4> Await completion of the consumer task.


[TIP]
====
You need to configure
[source,properties]
----
mp.messaging.incoming.orders.connector=smallrye-kafka
mp.messaging.incoming.orders.auto.offset.reset=earliest
----
otherwise you will get an `java.lang.AssertionError: No completion (or failure) event received in the last 10000 ms` in <4>
====

[TIP]
====
If the Kafka Dev Service is available during tests, `KafkaCompanionResource` uses the created Kafka broker, otherwise it creates a Kafka broker using https://github.com/strimzi/test-container[Strimzi Test Container].
Expand Down

0 comments on commit 547ab92

Please sign in to comment.