-
Notifications
You must be signed in to change notification settings - Fork 20
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
Listen and propagate RD_KAFKA_RESP_ERR__PARTITION_EOF #124
Comments
@felixschlegel Can you check this? |
Hi @FranzBusch and @felixschlegel! Could you advise how can I help you to move it forward, please? |
IMO we should make the Alternatively, we could emit this as an event in the On that note: for this feature, we would also have to expose an option like |
Can we ever recover from a partition EOF error? Like does this happen during rebalance or is this really a terminal state |
Not a terminal state afaik, just means that there are no more messages to read |
Ah right, it is just when we hit the end of the partition and then we can still continue once more messages have been produced. So finishing the sequence is not the correct thing. I think the only thing we can really do is have an enum on the sequence. If we produce the EOF event into a separate sequence then there might be reordering problems when consuming both sequences where the EOF happens before the last message. Overall, I am wondering how the consumption pattern look like and what you do when you hit EOF. @blindspotbounty could you provide some examples? |
Hi @FranzBusch, thank you for looking into this case! That would be great to have such enum in KafkaConsumerMessage to determine that partition is read up to the end. Looking forward to help/provide more details if needed! |
Sometimes it is nice to know that partition/topic was read to EOF and it is supported by librdkafka.
It should be explicitly enabled with property
enable.partition.eof=true
and error is handled, e.g.:Probably, it could be extended with current api e.g.:
or changed to enum:
The text was updated successfully, but these errors were encountered: