diff options
author | Viktor Shlapakov <vshlapakov@gmail.com> | 2015-05-15 12:58:34 +0300 |
---|---|---|
committer | Viktor Shlapakov <vshlapakov@gmail.com> | 2015-06-03 11:22:49 +0300 |
commit | a3fb3225a27ba6ca1a9fdac519c1f4257754d4eb (patch) | |
tree | 0d2746735852a9e3b1f6cebfbd2e33e237ff2aea /kafka/client.py | |
parent | 4c682f3d4da6c5af8bfbb00700c431a272b37dc1 (diff) | |
download | kafka-python-a3fb3225a27ba6ca1a9fdac519c1f4257754d4eb.tar.gz |
Improve async producer code: logic and style fixes
- send_producer_request with fail_on_error=False to retry failed reqs only
- using an internal dict with with namedtuple keys for retry counters
- refresh metadata on refresh_error irrespective to retries options
- removed infinite retries (retry_options.limit=None) as an over-feature
- separate producer init args for retries options (limit,backoff,on_timeouts)
- AsyncProducerQueueFull returns a list of failed messages
- producer tests improved thanks to @rogaha and @toli
Diffstat (limited to 'kafka/client.py')
0 files changed, 0 insertions, 0 deletions