Skip to content

KafkaCompanion no longer works with DevServices (3.25.0) #49208

@vonatzigenc

Description

@vonatzigenc

Describe the bug

KafkaCompanion, which is initialized via @WithTestResource(value = KafkaCompanionResource.class), no longer works correctly since upgrading from Quarkus 3.24.5 to 3.25.0.

On the one hand, the “CommonClientConfig” is no longer completely filled, and on the other hand, additional TestContainers are started.

It appears that the property “kafka.bootstrap.servers” is not set correctly from the perspective of KafkaCompanionResource, and it therefore ignores the started DevServices.

Reproducer for the issue: https://github.com/vonatzigenc/reproducer_quarkus_kafka_companion

Expected behavior

KafkaCompanion is initialized correctly for DevServices.

Actual behavior

  • KafkaCompanion is not initialized correctly for DevServices.
  • In addition to DevServices, a “quay.io/strimzi-test-container/test-container:0.109.2-kafka-3.9.0” is started.

How to Reproduce?

Preproducer repo: https://github.com/vonatzigenc/reproducer_quarkus_kafka_companion#

(With downgrade to 3.24.5 the test is green

Output of uname -a or ver

No response

Output of java -version

openjdk version "21.0.7" 2025-04-15 LTS

Quarkus version or git rev

3.25.0

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions