-
Notifications
You must be signed in to change notification settings - Fork 8
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
kf:seek signals rdkafka-error: Local: Erroneous state #67
Comments
I can put in (sleep 5) around the assign and seek calls, and then it works, but it feels hacky. Is there a way to explicitly sync? |
Also, why does (sleep 5) work, but (sleep 4), (sleep 3) does not? |
Seems related to this: https://github.com/edenhill/librdkafka/wiki/Manually-setting-the-consumer-start-offset Currently this API doesn't allow to set the offset in seek, right? For me, this works: --- src/high-level/consumer.lisp
+++ src/high-level/consumer.lisp
@@ -400,7 +400,7 @@
(with-slots (rd-kafka-consumer) consumer
(with-toppar-list
toppar-list
- (alloc-toppar-list partitions :topic #'car :partition #'cdr)
+ (alloc-toppar-list partitions :topic #'first :partition #'second :offset #'third)
(let ((err (cl-rdkafka/ll:rd-kafka-assign rd-kafka-consumer toppar-list)))
(unless (eq err 'cl-rdkafka/ll:rd-kafka-resp-err-no-error)
(error (make-rdkafka-error err)))))))
Diff finished. Wed Oct 26 13:31:12 2022 |
Thanks for pointing this out, I've released |
Maybe I don't know how to use it, but this fails for me:
While doing this as separate steps in repl works, weirdly:
The text was updated successfully, but these errors were encountered: