From 533e21849d16aace2a2245630c67999ef071f03d Mon Sep 17 00:00:00 2001 From: Krystof Stekovic Date: Mon, 27 May 2024 09:24:50 +0200 Subject: [PATCH] [WFLY-19359] bootable jar with kafka can produce a warning message --- .../README-source.adoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/microprofile-reactive-messaging-kafka/README-source.adoc b/microprofile-reactive-messaging-kafka/README-source.adoc index 742f04b53b..cb77d0f5e6 100644 --- a/microprofile-reactive-messaging-kafka/README-source.adoc +++ b/microprofile-reactive-messaging-kafka/README-source.adoc @@ -971,6 +971,18 @@ data: three // Bootable JAR include::../shared-doc/build-and-run-the-quickstart-with-bootable-jar.adoc[leveloffset=+1] +[NOTE] +==== +The following warning message may be seen when starting the {productName} bootable jar, due to the topic missing in Kafka: +``` +WARN [org.apache.kafka.clients.NetworkClient] (smallrye-kafka-consumer-thread-0) [Consumer clientId=kafka-consumer-from-kafka, groupId="microprofile-reactive-messaging-kafka-group-id"] Error while fetching metadata with correlation id 2 : {testing=LEADER_NOT_AVAILABLE} +``` +You may ignore this warning, yet to avoid it the topic may be manually created in advance, with the following command: +``` +bin/kafka-topics.sh --create --topic testing --bootstrap-server localhost:9092 +``` +==== + // OpenShift include::../shared-doc/build-and-run-the-quickstart-with-openshift.adoc[leveloffset=+1]