summaryrefslogtreecommitdiff
path: root/kafka
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2016-02-02 09:59:56 -0800
committerDana Powers <dana.powers@gmail.com>2016-02-02 16:58:28 -0800
commitdaa082c07435f3d50a691cc3f8437e3a5d116a50 (patch)
tree4dab79dc0d0cda0a0309873bc3a0084e128b29c8 /kafka
parent1fabef18bf586be4e12f71c8a8b03639f5eb590a (diff)
downloadkafka-python-daa082c07435f3d50a691cc3f8437e3a5d116a50.tar.gz
KAFKA-3170: default consumer config for fetch_min_bytes should be 1
Diffstat (limited to 'kafka')
-rw-r--r--kafka/consumer/fetcher.py4
-rw-r--r--kafka/consumer/group.py4
2 files changed, 4 insertions, 4 deletions
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,