Always consuming a topic from the earliest offset #3282
Unanswered
buckfullingham
asked this question in
Q&A
Replies: 1 comment
-
We would need to see the output from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following use-case:
I am storing a series of state changes in a kafka topic. The idea is that a client process should be able to rebuild its state simply by reading from the earliest point in the topic and applying all the deltas. For each topic there is a single partition (as the order of the deltas is important).
I have been playing around with the rd_kafka_subscribe and rd_kafka_assign APIs in an attempt to get librdkafka to pick up from the beginning but it appears I'm missing something (perhaps a rebalance callback?). Although debug logging shows that I have set the offset correctly (RD_KAFKA_OFFSET_BEGINNING) initially, it appears that after a few steps communicating with the broker that that information is lost and the library falls back to the auto reset behaviour (logs below).
I need the following:
How do I do that?
Beta Was this translation helpful? Give feedback.
All reactions