Skip to content

Chore/use faust assignore if changelogtopics#18

Open
Mopsgeschwindigkeit wants to merge 2 commits intomasterfrom
chore/use-faust-assignore-if-changelogtopics
Open

Chore/use faust assignore if changelogtopics#18
Mopsgeschwindigkeit wants to merge 2 commits intomasterfrom
chore/use-faust-assignore-if-changelogtopics

Conversation

@Mopsgeschwindigkeit
Copy link

Description

  • Force the usage of the faust-assignor if app uses changelog_topics.
  • Use newest version of Kafka API-Requests for Metadata and Create Topic.

Problems

  • If self.app.conf.table_standby_replicas = 0 the RoundRobinPartitionAssignor is used even is the app contains changelog_topics, which leads to a situation where changelog_topics are not consumed at the start of the app.

  • With newer version of aiokafka, some older api-version where deprecated.

Additional

This PR is based on the work of @nightcityblade (faust-streaming#674).

nightcityblade and others added 2 commits February 27, 2026 00:21
aiokafka 0.13.0 removed the `api_version` parameter from both
`AIOKafkaConsumer` and `AIOKafkaProducer`. Since faust requires
`aiokafka>=0.10.0`, it needs to handle both old and new versions.

This adds a version check and conditionally includes `api_version`
only when running with aiokafka < 0.13.0.

Fixes faust-streaming#672
@Mopsgeschwindigkeit Mopsgeschwindigkeit force-pushed the chore/use-faust-assignore-if-changelogtopics branch from b987610 to 310b7ce Compare March 11, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant