Closed ffissore closed 1 month ago
Got exactly the same issue (after upgrading confluent-kafka
from 2.5.3 to 2.6.0 which uses librdkafka 2.6.0)
There's a problem with versions of Apache Kafka < 2.7 because they haven't got Fetch RPC version 12, used for fallback. The problem is with this fallback:
/* Fallback to version 12 if topic id is null which can happen if
* inter.broker.protocol.version is < 2.8 */
ApiVersion =
ApiVersion > 12 && can_use_topic_ids(rkb) ? ApiVersion : 12;
it should be
if (ApiVersion > 12 && !can_use_topic_ids(rkb))
ApiVersion = 12;
Description
When consuming from a broker at version 2.1.1, the latest librdkafka 2.6.0 fails to connect. It logs this (with
debug: protocol
):This happens both with and without using our internal CA and self-signed certificates.
The broker logs this:
How to reproduce
confluentinc/cp-kafka:5.1.4
)confluent-kafka[schema-registry,avro]==2.6.0
and thus librdkafka 2.6.0)Downgrade to 2.5.3 and all will go smoothly.
Checklist
Please provide the following information:
2.6.0
2.1.1
{'auto.commit.interval.ms': 10, 'bootstrap.servers': 'PLAINTEXT://kafka-1:19091,PLAINTEXT://kafka-2:19092,PLAINTEXT://kafka-3:19093', 'client.id': 'a-client-id', 'group.id': 'random', 'enable.auto.offset.store': False, 'auto.offset.reset': 'earliest', 'enable.auto.commit': True, 'debug': 'protocol', 'socket.nagle.disable': True, 'enable.partition.eof': False}
Ubuntu
debug=..
as necessary) from librdkafka