-
Notifications
You must be signed in to change notification settings - Fork 291
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
Subscribing after unsubscribing no longer working in v0.24.0 #294
Comments
I'm debugging a similar issue where the Apologies if this ends up being a separate issue. |
@athre0z, mixing calls to assign/subscribe like that is odd. What are you trying to do, exactly? I can reproduce this behavior on the |
I pretty much have my own (ghetto) Flink-esque stream processing lib and it has a three topics for each stream: an input topic, a state topic where the stream processors full state is dumped to every 10mil events processed and one output topic. On startup, the code gathers the last message from the state topic which contains the offset to which the input topic must be rewound, then obtains the last output message written (which contains the offset of the corresponding input message) and combining this information can begin replaying messages to update it's state until it finally reaches the point where it is back in sync with the output stream and can start producing messages again. In short: I use |
Ohh, I see. You're intending to use
Every call to
This is all very confusing. It's not well explained in the librdkafka documentation because librdkafka assumes familiarity with the Java API, and it's doubly not well-explained in the rust-rdkafka documentation because we assume both familiarity with librdkafka and the Java API. But, the good news is the Java API docs are pretty good! I highly recommend reading the sections in the Java |
Wow, thanks for the excellent explanation -- this whole API makes a lot more sense to me now. I had indeed assumed that |
Awesome, glad I could help! 🥂 |
Assuming
mytopic
exists, the code above produces:when run with rdkafka the latest
v0.23
, but gets stuck after printingwhen using
v0.24.0
or the latest commit from master as of writing.Sample crate for repro -- just switch the version in
Cargo.toml
:rdkafka-debug.tar.gz
The text was updated successfully, but these errors were encountered: