Migrate Consumer.committed(TopicPartition) to committed(Set<TopicPartition>)
ProprietaryMigrates from the removed Consumer.committed(TopicPartition) to committed(Set<TopicPartition>) for Kafka 4.0 compatibility. The partition is wrapped in Collections.singleton(), and where the result is used, the returned map is read with .get(partition).
io. moderne. kafka. MigrateConsumerCommittedToSetmod run . --recipe= io. moderne. kafka. MigrateConsumerCommittedToSetInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.