Skip to content

Sarama version >= 1.41.0,Kafka 2.11-0.10.2.2,sasl_scram_client can't connect correctly,old version kafka exist incompatibility problem。Hope to fix it in new version! #3361

@cheneylew

Description

@cheneylew
Description
Versions
Sarama Kafka Go
>=1.41.0 2.11-0.10.2.2 1.24.4

https://archive.apache.org/dist/kafka/0.10.2.2/kafka_2.11-0.10.2.2.tgz

Configuration
sasl_scram_client-brokers=10.0.70.128:9090 -username=test -passwd=test-1234 -tls-skip-verify=true -algorithm=sha256 -mode=produce -tls=true -topic=test-topic -ca=./certificates/ca-cert-0.10.2.2.pem
Logs

[Sarama] 2025/10/24 16:19:22 Initializing new client
[Sarama] 2025/10/24 16:19:22 client/metadata fetching metadata for all topics from broker 10.0.70.128:9090
[Sarama] 2025/10/24 16:19:22 Error while performing SASL handshake 10.0.70.128:9090
[Sarama] 2025/10/24 16:19:22 Closed connection to broker 10.0.70.128:9090
[Sarama] 2025/10/24 16:19:22 client/metadata got error from broker -1 while fetching metadata: kafka server: The version of API is not supported
[Sarama] 2025/10/24 16:19:22 client/metadata no available broker to send metadata request to
[Sarama] 2025/10/24 16:19:22 client/brokers resurrecting 1 dead seed brokers
[Sarama] 2025/10/24 16:19:23 client/metadata retrying after 250ms... (2 attempts remaining)
[Sarama] 2025/10/24 16:19:23 client/metadata fetching metadata for all topics from broker 10.0.70.128:9090
[Sarama] 2025/10/24 16:19:23 Error while performing SASL handshake 10.0.70.128:9090
[Sarama] 2025/10/24 16:19:23 Closed connection to broker 10.0.70.128:9090
[Sarama] 2025/10/24 16:19:23 client/metadata got error from broker -1 while fetching metadata: kafka server: The version of API is not supported
[Sarama] 2025/10/24 16:19:23 client/metadata no available broker to send metadata request to
[Sarama] 2025/10/24 16:19:23 client/brokers resurrecting 1 dead seed brokers
[Sarama] 2025/10/24 16:19:23 client/metadata retrying after 250ms... (1 attempts remaining)
[Sarama] 2025/10/24 16:19:23 client/metadata fetching metadata for all topics from broker 10.0.70.128:9090
[Sarama] 2025/10/24 16:19:23 Error while performing SASL handshake 10.0.70.128:9090
[Sarama] 2025/10/24 16:19:23 Closed connection to broker 10.0.70.128:9090
[Sarama] 2025/10/24 16:19:23 client/metadata got error from broker -1 while fetching metadata: kafka server: The version of API is not supported
[Sarama] 2025/10/24 16:19:23 client/metadata no available broker to send metadata request to
[Sarama] 2025/10/24 16:19:23 client/brokers resurrecting 1 dead seed brokers
[Sarama] 2025/10/24 16:19:23 client/metadata retrying after 250ms... (0 attempts remaining)
[Sarama] 2025/10/24 16:19:23 client/metadata fetching metadata for all topics from broker 10.0.70.128:9090
[Sarama] 2025/10/24 16:19:23 Error while performing SASL handshake 10.0.70.128:9090
[Sarama] 2025/10/24 16:19:23 Closed connection to broker 10.0.70.128:9090
[Sarama] 2025/10/24 16:19:23 client/metadata got error from broker -1 while fetching metadata: kafka server: The version of API is not supported
[Sarama] 2025/10/24 16:19:23 client/metadata no available broker to send metadata request to
[Sarama] 2025/10/24 16:19:23 client/brokers resurrecting 1 dead seed brokers
[Sarama] 2025/10/24 16:19:23 Closing Client
[Producer] 2025/10/24 16:19:23 failed to create producer: kafka: client has run out of available brokers to talk to

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues and pull requests without any recent activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions