kafka-python icon indicating copy to clipboard operation
kafka-python copied to clipboard

Handle temporary errors on getting offsets for consumer pending request

Open vshlapakov opened this issue 11 years ago • 3 comments

There are several very common Kafka errors related with cluster changes. Currently these errors are followed by resetting metadata operation but then they are reraised as we're not sure if it's temporary or not.

But afaik NotLeaderForPartitionError is temporary, and in the case of getting offsets for calculating pending messages count - the offset request should be retried after getting fresh metadata. Is it so or it's a responsibility of user application and not kafka-python library to handle such errors when get pending count?

vshlapakov avatar Jun 23 '15 09:06 vshlapakov

That makes sense to me. Want to submit a PR?

dpkp avatar Jun 23 '15 14:06 dpkp

Great! Yes, I'll prepare it then.

vshlapakov avatar Jun 23 '15 14:06 vshlapakov

closing per 0.9.0.0 KafkaConsumer refactor

dpkp avatar Jan 08 '16 18:01 dpkp