-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Broker offset store method does not work (implement ConsumerMetadataRequest) #192
Comments
While I dont recognize this error could you please try to reproduce this on the latest master? |
The behaviour on the broker has changed since this was implemented in librdkafka, |
Seems like the OffsetCommit API semantics changed in 0.8.1.1, and from what I understand it will not be properly implemented until Kafka 0.9, so there isn't much I can do at this point. |
Are you sure about that? After all the "new offset management" of version 0.8.2 is advertised all over the place. From what I understand the internal offset storage still needs testing and documentation but the offset management api itself should work. There is a sample client patch attached to KAFKA-1784. Nevertheless I think you have more insights than me so: if the OffsetCommit API is not usable anymore do we have to rely on file based storage when using librdkafka? That would be somehow a step backwards from 0.8.1. Thanks for your help. |
You are probably right, I will take a closer look. My previous statement was based on sketchy functionality in a 0.8.2 beta. |
Anything new on this one? |
Will look into it during this week, thanks for your patience. |
Thanks |
I've been having some trouble with creating consumers that support broker metadata offset requests. For me, messages just never come through at all. Is the current status that rdkafka doesn't support broker metadata requests past version 0.8.1.0? |
It would be good to have this working, but if it's broken, at least the docs should say don't use it, rather than recommending it as the preferred method. |
Any good news to this problem? |
Dup #227 |
Sorry for the slow response to this issue, it will soon be reprioritized and fixed. |
Was this ever fixed for 0.8? |
@matsbror Yes, this works with broker 0.8.2 and later. Just make sure to configure Let me know how it goes. example: |
Thanks! I got it working now. I had set topic store method to "file" which is why it didn't work. Date: Tue, 22 Mar 2016 02:08:07 -0700 @matsbror Yes, this works with broker 0.8.2 and later. Just make sure to configure group.id and calling consume_start() with offset set to RD_KAFKA_OFFSET_STORED Let me know how it goes. example: examples/rdkafka_example -b yourbroker -t yourtopic -p 0 -C -X group.id=yourgroup -o stored -X topic.auto.offsereset=smallest — |
I have consumer which works with with default store method ("file").
But when I set topic conf "offset.store.method" to "broker" everything stops working - I keep getting messages with "Broker: Unknown topic or partition" error set, and offset is -1.
I do have Kafka 2.9.2-0.8.1.1 installed, and also global config "group.id" set to "group1". Not sure what I am missing.
I am using librdkafka-0.8.5 release.
The text was updated successfully, but these errors were encountered: