You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the confluent_kafka Python client and calling consumer.store_offsets() with offset=OFFSET_BEGINNING succeeds, but it doesn't result in actually updating the stored offset to the beginning of the partition. Our workaround was to use offset=0
How to reproduce
The following reproducible files are below: consumer.py, producer.py, and reset_offset_beginning.py
Hi @joshuaphelpsms, do you notice any difference in behavior with the native Kafka broker? I just did some testing with Kafka v3.3.1 and observed the same behavior. The client doesn't seem to send an offset commit request to the broker/service to really commit the OFFSET_BEGINNING offset.
Description
Using the confluent_kafka Python client and calling
consumer.store_offsets()
with offset=OFFSET_BEGINNING succeeds, but it doesn't result in actually updating the stored offset to the beginning of the partition. Our workaround was to use offset=0How to reproduce
The following reproducible files are below:
consumer.py
,producer.py
, andreset_offset_beginning.py
consumer.py
producer.py
reset_offset_beginning.py
Steps
pip install confluent-kafka
$ python producer.py Waiting for 3 deliveries Message delivered to topic1, partition=0, offset=0 Message delivered to topic1, partition=0, offset=1 Message delivered to topic1, partition=0, offset=2
offset = 0
on line 23 ofreset_offset_beginning.py
.Has it worked previously?
No
Checklist
IMPORTANT: We will close issues where the checklist has not been completed or where adequate information has not been provided.
Please provide the relevant information for the following items:
Name: confluent-kafka, Version: 1.9.2
included above
consumer.store_offsets() succeeds but does not match native Kafka behavior
The text was updated successfully, but these errors were encountered: