kafka-python
kafka-python copied to clipboard
Kafka client's fail_on_error option
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)?
Closing -- this relates to the SimpleClient / SimpleConsumer / SimpleProducer classes which have now been removed.