-
Notifications
You must be signed in to change notification settings - Fork 882
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
Is default.topic.config
really deprecated is consumer config?
#1316
Comments
Can you reproduce this with |
@edenhill ok, I added logs to gist:
|
Also it's interesting to me - why it's always works on freshly created topic for the first time. Looks like group.id |
Thank you! I unfortunately need more debug logs from the second consumer (group_id_BBB); could you please repro that with |
Ok, but i changed to group.id = |
I can see line in last logs here:
As I understand Looks like config didn't really apply |
Thanks! Can you provide the code for your test program? At least the consumer setup |
@edenhill it was my program all along :( Sorry for your wasted time and thanks a lot for very quick help! I got custom class with default kwarg equal to "latest" in init that override every config that I passed to it. So stupid :) At least now I know how to use |
No worries, happy you found the issue 👍 |
Description
I got issue with
auto.offset.reset: earliest
not working as expected.Here is my consumer config:
My original issue:
my_topic
, put there 100 messagesAAA
in configConsumer()
, subscribe, useconsumer.poll(1.0)
in loop. Eventually, I got 100 messages - ✅. Commit here too.TopicPartition{topic=my_topic,partition=0,offset=100,error=None}
- ✅BBB
in configconsumer.poll()
again - nothing, no messages - ❌TopicPartition{topic=my_topic,partition=0,offset=-1001,error=None}
auto.offset.reset: latest
Solution to this issue - adding
default.topic.config
:After changing config like that and creating new consumer with group.id =
CCC
- it starts polling from offset 0, like it should.Looks like:
default.topic.config
is not really deprecated?How to reproduce
See
Description
.Checklist
Please provide the following information:
confluent_kafka.version()
andconfluent_kafka.libversion()
):'debug': '..'
as necessary)The text was updated successfully, but these errors were encountered: