[ 
https://issues.apache.org/jira/browse/KAFKA-18648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17921768#comment-17921768
 ] 

Ismael Juma commented on KAFKA-18648:
-------------------------------------

It turns out that kafka-python actually needs metadata v0 as well: 
https://github.com/dpkp/kafka-python/blob/38e8d045e33b894bad30f55c212f8ff497a5a513/kafka/conn.py#L1252

 

> kafka-python requires metadata request version 0
> ------------------------------------------------
>
>                 Key: KAFKA-18648
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18648
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Ismael Juma
>            Assignee: Ismael Juma
>            Priority: Blocker
>             Fix For: 4.0.0
>
>
> KIP-896 captured protocol api support from a few clients including 
> kafka-python. However, when we actually test a client, unexpected 
> dependencies can sometimes be uncovered.
> It turns out that kafka-python has a path where the metadata version used is 
> hardcoded to be v0 or v1:
> [https://github.com/dpkp/kafka-python/blob/a6d0579d3cadd3826dd364b01bc12a2173139abc/kafka/client_async.py#L835]
> We need to decide whether we keep the existing behavior in 4.0/trunk and 
> update the KIP to reflect that kafka-python won't work without a (small) 
> change or add back support for Metadata request v1-v3.
> I also filed an issue with kafka-python-ng (which is a fork of the original 
> that is not abandoned).
> https://github.com/wbarnha/kafka-python-ng/issues/208



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to