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
Is there a way to handle checkpointing in the kafka-python library, so if my program unexpectedly terminates, it can begin reading from the last marked offset in the Kafka log?
The text was updated successfully, but these errors were encountered:
Thanks for filing! I actually have never looked at OffsetCommitContext ... not sure if that works as advertised and pretty sure we have no tests for it. needs investigation.
It seems to be checkpointing, but during the running instance of the program. So I could roll back during a run of my application. It doesn't seem to (as far as I can tell) support picking up close to where I left off if my program terminates and is restarted.
I was working with this sample code: http://kafka-python.readthedocs.org/en/latest/apidoc/kafka.html?highlight=offsetcommitcontext#kafka.context.OffsetCommitContext (adding in consumer.commit() call every 100 marks). I noticed that when I would terminate and restart my Python script, it would read from the beginning of the log file rather than from the last marked offset.
Is there a way to handle checkpointing in the kafka-python library, so if my program unexpectedly terminates, it can begin reading from the last marked offset in the Kafka log?
The text was updated successfully, but these errors were encountered: