Skip to content

No way of getting metadata, that was committed with OffsetAndMetadata #1082

@tvoinarovskyi

Description

@tvoinarovskyi

When we use consumer.commit({tp: OffsetAndMetadata(msg.offset+1, "Some metadata")}) the API requires us to pass the OffsetAndMetadata structure, but then that metadata can't be retured nowhere.
In Java Client it's returned as part of consumer.committed(tp) response. See https://kafka.apache.org/0101/javadoc/org/apache/kafka/clients/consumer/KafkaConsumer.html#committed(org.apache.kafka.common.TopicPartition)

@dpkp Any ideas how to go with API change to fix this? Like we can't just change the return value of committed at this point without a deprecation period.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions