You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this library uses aiokafka according to the readme, I wanted to raise attention to an issue that was found in aiokafka's support of the metadata request key as suggested in this issue: aio-libs/aiokafka#1085.
Thanks for the detailed write-up. I dug into this against a real broker, and the short answer is: faust works with Apache Kafka 4.0 when using a current aiokafka.
What I tested
I ran faust's live-broker integration suite against a real Apache Kafka 4.0.0 broker (KRaft, metadata.version 4.0-IV3), with aiokafka 0.14.0 and confluent-kafka 2.x:
raw aiokafka produce → consume round-trip — ✅
raw confluent-kafka produce → consume round-trip — ✅
a faust App with an agent: consumer-group join, fetch, and offset commit (through the real Consumer.commit() / _new_offset path) — ✅
All green. That App path exercises the metadata / FindCoordinator / OffsetFetch / OffsetCommit APIs that KIP-896 tightens, so with the default broker_api_version="auto" negotiation aiokafka is selecting request versions a 4.0 broker accepts — i.e. the Metadata-version concern from aio-libs/aiokafka#1085 does not surface with a current aiokafka. (If it did, producer.start() / consumer.start() would fail outright with an UnsupportedVersion error rather than round-tripping.)
Making it a continuous guarantee
#714 adds Kafka 4.0.0 to faust's CI integration matrix (alongside 3.8.1), so both transport drivers are verified against a 4.x broker on every change instead of a one-off check. faust also already picked up broader aiokafka-4.0-readiness work in v0.12.0 (e.g. guarding metadata/admin calls by the negotiated protocol-API version, #682).
Recommendation
If you're on Kafka 4.0, use a recent aiokafka. faust requires aiokafka>=0.10.0 and does not cap the upper bound, so pip install -U aiokafka gets you a 4.0-compatible client; I verified 0.14.0. Very old aiokafka releases that predate its Metadata-version handling could still hit KIP-896 against a 4.0 broker.
Happy to help chase anything down if you can share a specific failure (broker version, aiokafka version, and the traceback), but on current versions this checks out. This can probably be closed once #714 lands — leaving that to the maintainers.
Activity
wbarnha commentedon Jul 19, 2026
Thanks for the detailed write-up. I dug into this against a real broker, and the short answer is: faust works with Apache Kafka 4.0 when using a current aiokafka.
What I tested
I ran faust's live-broker integration suite against a real Apache Kafka 4.0.0 broker (KRaft,
metadata.version 4.0-IV3), with aiokafka 0.14.0 and confluent-kafka 2.x:Appwith an agent: consumer-group join, fetch, and offset commit (through the realConsumer.commit()/_new_offsetpath) — ✅All green. That App path exercises the metadata /
FindCoordinator/OffsetFetch/OffsetCommitAPIs that KIP-896 tightens, so with the defaultbroker_api_version="auto"negotiation aiokafka is selecting request versions a 4.0 broker accepts — i.e. the Metadata-version concern from aio-libs/aiokafka#1085 does not surface with a current aiokafka. (If it did,producer.start()/consumer.start()would fail outright with anUnsupportedVersionerror rather than round-tripping.)Making it a continuous guarantee
#714 adds Kafka 4.0.0 to faust's CI integration matrix (alongside 3.8.1), so both transport drivers are verified against a 4.x broker on every change instead of a one-off check. faust also already picked up broader aiokafka-4.0-readiness work in v0.12.0 (e.g. guarding metadata/admin calls by the negotiated protocol-API version, #682).
Recommendation
If you're on Kafka 4.0, use a recent aiokafka. faust requires
aiokafka>=0.10.0and does not cap the upper bound, sopip install -U aiokafkagets you a 4.0-compatible client; I verified 0.14.0. Very old aiokafka releases that predate its Metadata-version handling could still hit KIP-896 against a 4.0 broker.Happy to help chase anything down if you can share a specific failure (broker version, aiokafka version, and the traceback), but on current versions this checks out. This can probably be closed once #714 lands — leaving that to the maintainers.
Generated by Claude Code