rd_kafka_offsets_store
with rd_kafka_commit
does not preserve metadata on NULL
#4570
Closed
6 of 7 tasks
I use
rd_kafka_offsets_store
with metadata that is suppose to be stored based on #4084Then I invoke
rd_kafka_commit
with no tpl (NULL) and I would expect the metadata to be stored alongside the offsets but it is empty. Only passing explicit tpl tord_kafka_commit
stores the metadata.I find this behaviour weird because auto commit stores the offsets, so the issue is only with
rd_kafka_commit
.How to reproduce
I use a custom code for the Ruby bindings (maintainer here) but the steps are as follows:
rd_kafka_commit
with the TPL (not null) OR leave it to auto-commit metadata is saved back in Kafka alongside the offsetsrd_kafka_offsets_store
and thenrd_kafka_commit
with NULL, offsets are not preserved.The docs indicate:
However one does not contradict the other. Metadata IMHO should still be stored and saved on offset commit with NULL as expected. I find that behaviour maybe not erroneous per se but def inconsistent or unexpected.
Please provide the following information:
2.3.0
enable.auto.offset.store
set tofalse
Ubuntu 22.04.3 LTS
The text was updated successfully, but these errors were encountered: