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

Kafka client's fail_on_error option

Open khangnguyen opened this issue 9 years ago • 1 comments

I occasionally run into this error

2017-03-21 02:46:19,426 - kafka.consumer.simple - WARNING - FailedPayloadsError for scheduling_scrape_request:2
2017-03-21 02:46:19,429 - kafka.client - ERROR - Request failed: TooManyInFlightRequests: <BrokerConnection host=kafka_pp_prod_01/10.16.1.140 port=9140>

Which I assume caused due to network problem in the data center. What makes this interesting is that I couldn't catch in and handle the error properly. I noticed that there is a fail_on_error in kafka client, which decides whether the error will be propagated to next level. But consumer doesn't seem to use this option (while producer does).

Is there a reason behind this (so I decide to make a PR or just make a subclass in my project)?

khangnguyen avatar Mar 21 '17 02:03 khangnguyen

Closing -- this relates to the SimpleClient / SimpleConsumer / SimpleProducer classes which have now been removed.

dpkp avatar Dec 29 '19 19:12 dpkp