diff options
author | Dana Powers <dana.powers@gmail.com> | 2016-02-02 09:59:56 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2016-02-02 16:58:28 -0800 |
commit | daa082c07435f3d50a691cc3f8437e3a5d116a50 (patch) | |
tree | 4dab79dc0d0cda0a0309873bc3a0084e128b29c8 /kafka/consumer/group.py | |
parent | 1fabef18bf586be4e12f71c8a8b03639f5eb590a (diff) | |
download | kafka-python-daa082c07435f3d50a691cc3f8437e3a5d116a50.tar.gz |
KAFKA-3170: default consumer config for fetch_min_bytes should be 1
Diffstat (limited to 'kafka/consumer/group.py')
-rw-r--r-- | kafka/consumer/group.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index 10f2b3b..82077b1 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -53,7 +53,7 @@ class KafkaConsumer(six.Iterator): raw message value and returns a deserialized value. fetch_min_bytes (int): Minimum amount of data the server should return for a fetch request, otherwise wait up to - fetch_max_wait_ms for more data to accumulate. Default: 1024. + fetch_max_wait_ms for more data to accumulate. Default: 1. fetch_max_wait_ms (int): The maximum amount of time in milliseconds the server will block before answering the fetch request if there isn't sufficient data to immediately satisfy the @@ -135,7 +135,7 @@ class KafkaConsumer(six.Iterator): 'key_deserializer': None, 'value_deserializer': None, 'fetch_max_wait_ms': 500, - 'fetch_min_bytes': 1024, + 'fetch_min_bytes': 1, 'max_partition_fetch_bytes': 1 * 1024 * 1024, 'request_timeout_ms': 40 * 1000, 'retry_backoff_ms': 100, |