[ https://issues.apache.org/jira/browse/KAFKA-16657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17843227#comment-17843227 ]
Andrew Schofield commented on KAFKA-16657: ------------------------------------------ I just checked the KIP and I don't think it says explicitly. However, I worked on the client for this KIP and it was certainly necessary to enable KRaft for all of the tests. Having just created a ZK broker, I can confirm that a consumer which tries to connect with the new protocol fails with `org.apache.kafka.common.errors.UnsupportedVersionException`. For one thing, this KIP is expected to reach production readiness in AK 4.0 and that's KRaft only. > KIP-848 does not work well on Zookeeper Mode > -------------------------------------------- > > Key: KAFKA-16657 > URL: https://issues.apache.org/jira/browse/KAFKA-16657 > Project: Kafka > Issue Type: Bug > Reporter: sanghyeok An > Priority: Major > > Hi, Kafka Team. > I am testing the new rebalance protocol of KIP-848. It seems that the KIP-848 > protocol works well in KRaft mode. However, KIP-848 protocol does not work > well in `Zookeeper` mode. > > I have created two versions of docker-compose files for Zookeeper Mode and > KRaft Mode. And I tested KIP-848 using the same consumer code and settings. > > In KRaft Mode, the consumer received the assignment correctly. However, an > error occurred in Zookeeper Mode. > > *Is KIP-848 supported in Zookeeper mode? or only KRaft is supported?* > > FYI, This is the code I used. > * ZK docker-compose: > https://github.com/chickenchickenlove/kraft-test/blob/main/docker-compose2/docker-compose.yaml > * ZK Result: > https://github.com/chickenchickenlove/kraft-test/blob/main/docker-compose2/README.md > * KRaft docker-compose: > https://github.com/chickenchickenlove/kraft-test/blob/main/docker-compose3/docker-compose.yaml > * KRaft Result: > https://github.com/chickenchickenlove/kraft-test/blob/main/docker-compose3/README.md > * Consumer code: > https://github.com/chickenchickenlove/kraft-test/blob/main/src/main/java/org/example/Main.java > > > -- This message was sent by Atlassian Jira (v8.20.10#820010)