Skip to content

KafkaListener with property overrides: overridden properties are not applied to key- and value-deserializers #3526

@sjann0

Description

@sjann0

In what version(s) of Spring for Apache Kafka are you seeing this issue?

3.2.1

Describe the bug

When @Listener is used with "properties" (consumer properties overrides) set as part of the annotation, those properties are not applied to configure the key- and value-deserializer.

This is relevant when the deserializers use a schema-registry, and we want to use different clusters and schema-registries for multiple @Listener's.

To Reproduce

Override the "schema.registry.url" property using properties field of listener annotation, check values that are applied in deserializer.

The configs map which is part of public void configure(Map<String, ?> configs, boolean isKey) in Deserializers does currently not contain overridden properties.

Expected behavior

The overridden properties from Listener annotation should be part of the config map which is used to configure the deserializers.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions