From daa082c07435f3d50a691cc3f8437e3a5d116a50 Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Tue, 2 Feb 2016 09:59:56 -0800 Subject: KAFKA-3170: default consumer config for fetch_min_bytes should be 1 --- kafka/consumer/fetcher.py | 4 ++-- kafka/consumer/group.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'kafka') diff --git a/kafka/consumer/fetcher.py b/kafka/consumer/fetcher.py index 5cc1f9d..e136ea2 100644 --- a/kafka/consumer/fetcher.py +++ b/kafka/consumer/fetcher.py @@ -32,7 +32,7 @@ class Fetcher(six.Iterator): DEFAULT_CONFIG = { 'key_deserializer': None, 'value_deserializer': None, - 'fetch_min_bytes': 1024, + 'fetch_min_bytes': 1, 'fetch_max_wait_ms': 500, 'max_partition_fetch_bytes': 1048576, 'check_crcs': True, @@ -49,7 +49,7 @@ class Fetcher(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 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, -- cgit v1.2.1