Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per topic config #328

Closed
3 of 7 tasks
ecksun opened this issue Mar 7, 2018 · 1 comment
Closed
3 of 7 tasks

Per topic config #328

ecksun opened this issue Mar 7, 2018 · 1 comment
Assignees

Comments

@ecksun
Copy link

ecksun commented Mar 7, 2018

Description

I would like to be able to specify auto.offset.reset per topic.

I have some topics where its fine to miss messages but are huge (and I thus don't want to start over) and some topics where exactly once semantics are very important.

It seems like librdkafka supports this, however I cannot find any good documentation on how to use it from confluent-kafka-python.

Googling only really turns up this issue relating to the go client

How to reproduce

N/A

Checklist

Please provide the following information:

  • confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()): N/A
  • Apache Kafka broker version: N/A
  • Client configuration: Yes, that is the question
  • Operating system: N/A
  • Provide client logs (with 'debug': '..' as necessary)
  • Provide broker log excerpts
  • Critical issue
@edenhill
Copy link
Contributor

edenhill commented Mar 7, 2018

Per-topic configuration is not currently exposed in the Python client, but your interest in this feature is duly noted.

As a workaround you can implement your own on_assign callback and read committed offsets for the given partition set, if any partition does not have a committed offset you set the start offset to either END or BEGINNING according to your policy.

Please vote on this feature by up-thumbing this comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants