Comments (4)
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?
from cl-rdkafka.
Also, why does (sleep 5) work, but (sleep 4), (sleep 3) does not?
from cl-rdkafka.
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
from cl-rdkafka.
Thanks for pointing this out, I've released v1.2.0
which adds offset support to the kf:assign
and kf:assignment
methods
from cl-rdkafka.
Related Issues (11)
- Producer messages not seen by consumer HOT 2
- 'librdkafka/rdkafka.h' file not found HOT 3
- Something in the Kafka chain is not raising conditions HOT 2
- Potential deadlock HOT 1
- Provide a restart when producer's send reaches max queue
- Add Windows support
- Set client software configs
- Impossible to clone on Windows HOT 2
- don't put destructive instructions in your readme HOT 1
- Problem to connect to cluster HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cl-rdkafka.