From 512637386201977d1114d91c62cc681dc766c234 Mon Sep 17 00:00:00 2001 From: zmstone Date: Mon, 17 Jun 2024 16:19:16 +0200 Subject: [PATCH] ci: create a kafka topic with smalle max.message.bytes config --- .ci/docker-compose-file/kafka/kafka-entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.ci/docker-compose-file/kafka/kafka-entrypoint.sh b/.ci/docker-compose-file/kafka/kafka-entrypoint.sh index 336a78e74..987bfbccd 100755 --- a/.ci/docker-compose-file/kafka/kafka-entrypoint.sh +++ b/.ci/docker-compose-file/kafka/kafka-entrypoint.sh @@ -49,6 +49,9 @@ echo "+++++++ Creating Kafka Topics ++++++++" # there seem to be a race condition when creating the topics (too early) env KAFKA_CREATE_TOPICS="$KAFKA_CREATE_TOPICS_NG" KAFKA_PORT="$PORT1" create-topics.sh +# create a topic with max.message.bytes=100 +/opt/kafka/bin/kafka-topics.sh --create --bootstrap-server "${SERVER}:${PORT1}" --topic max-100-bytes --partitions 1 --replication-factor 1 --config max.message.bytes=100 + echo "+++++++ Wait until Kafka ports are down ++++++++" bash -c 'while printf "" 2>>/dev/null >>/dev/tcp/$0/$1; do sleep 1; done' $SERVER $PORT1