Skip to content

Commit d6fc4cd

Browse files
committed
Document enable_incremental_fetch_sessions config
1 parent 08fc286 commit d6fc4cd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

kafka/consumer/fetcher.py

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def __init__(self, client, subscriptions, metrics, **configs):
6969
raw message key and returns a deserialized key.
7070
value_deserializer (callable, optional): Any callable that takes a
7171
raw message value and returns a deserialized value.
72+
enable_incremental_fetch_sessions: (bool): Use incremental fetch sessions
73+
when available / supported by kafka broker. See KIP-227. Default: True.
7274
fetch_min_bytes (int): Minimum amount of data the server should
7375
return for a fetch request, otherwise wait up to
7476
fetch_max_wait_ms for more data to accumulate. Default: 1.

kafka/consumer/group.py

+3
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ class KafkaConsumer(six.Iterator):
6060
raw message key and returns a deserialized key.
6161
value_deserializer (callable): Any callable that takes a
6262
raw message value and returns a deserialized value.
63+
enable_incremental_fetch_sessions: (bool): Use incremental fetch sessions
64+
when available / supported by kafka broker. See KIP-227. Default: True.
6365
fetch_min_bytes (int): Minimum amount of data the server should
6466
return for a fetch request, otherwise wait up to
6567
fetch_max_wait_ms for more data to accumulate. Default: 1.
@@ -266,6 +268,7 @@ class KafkaConsumer(six.Iterator):
266268
'group_id': None,
267269
'key_deserializer': None,
268270
'value_deserializer': None,
271+
'enable_incremental_fetch_sessions': True,
269272
'fetch_max_wait_ms': 500,
270273
'fetch_min_bytes': 1,
271274
'fetch_max_bytes': 52428800,

0 commit comments

Comments
 (0)