Skip to content

Wrong comparison of server bootstrap addresses in KafkaTemplate.afterSingletonsInstantiated #3466

@bleipold1

Description

@bleipold1

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

3.2.3

Describe the bug

In line 490 of KafkaTemplate are the bootstrap server addresses of the producer factory and the bootstrap server addresses of the kafka admin bean compared with each other. In most cases this will fail, because producerServers is a list of strings and adminServers always string. Even if the string represents the same list.

To Reproduce

Expected behavior

If producerServers and adminServers represent the same bootstrap servers, the if branch should not be entered.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions