Migrate ConsumerRecord constructors removed in Kafka 4.0
ProprietaryKafka 4.0 removed the ConsumerRecord constructors that take a checksum, which Kafka had ignored since 3.0. Drop the checksum and call the constructor that takes Headers and a leader epoch, passing the empty RecordHeaders and Optional that the removed constructors defaulted to.
io. moderne. kafka. MigrateConsumerRecordConstructorsmod run . --recipe= io. moderne. kafka. MigrateConsumerRecordConstructorsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.