Skip to content

Commit 840c0d6

Browse files
authored
Release 2.0.3
1 parent 8ebb14c commit 840c0d6

File tree

4 files changed

+123
-12
lines changed

4 files changed

+123
-12
lines changed

CHANGES.md

+52
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
# 2.0.3 (Feb 12, 2025)
2+
3+
Improvements
4+
* Add optional compression libs to extras_require (#2123, #2387)
5+
* KafkaConsumer: Exit poll if consumer is closed (#2152)
6+
* Support configuration of custom kafka client for Admin/Consumer/Producer (#2144)
7+
* Core Protocol: Add support for flexible versions (#2151)
8+
* (Internal) Allow disabling thread wakeup in _send_request_to_node (#2335)
9+
* Change loglevel of cancelled errors to info (#2467)
10+
* Strip trailing dot off hostname for SSL validation. (#2472)
11+
* Log connection close(error) at ERROR level (#2473)
12+
* Support DescribeLogDirs admin api (#2475)
13+
14+
Compatibility
15+
* Support for python 3.12 (#2379, #2382)
16+
* Kafka 2.5 / 2.6 (#2162)
17+
* Try collections.abc imports in vendored selectors34 (#2394)
18+
* Catch OSError when checking for gssapi import for windows compatibility (#2407)
19+
* Update vendored six to 1.16.0 (#2398)
20+
21+
Documentation
22+
* Update usage.rst (#2308, #2334)
23+
* Fix typos (#2319, #2207, #2178)
24+
* Fix links to the compatibility page (#2295, #2226)
25+
* Cleanup install instructions for optional libs (#2139)
26+
* Update license_file to license_files (#2462)
27+
* Update some RST documentation syntax (#2463)
28+
* Add .readthedocs.yaml; update copyright date (#2474)
29+
30+
Fixes
31+
* Use isinstance in builtin crc32 (#2329)
32+
* Use six.viewitems instead of six.iteritems to avoid encoding problems in StickyPartitionAssignor (#2154)
33+
* Fix array encoding TypeError: object of type 'dict_itemiterator' has no len() (#2167)
34+
* Only try to update sensors fetch lag if the unpacked list contains elements (#2158)
35+
* Avoid logging errors during test fixture cleanup (#2458)
36+
* Release coordinator lock before calling maybe_leave_group (#2460)
37+
* Dont raise RuntimeError for dead process in SpawnedService.wait_for() (#2461)
38+
* Cast the size of a MemoryRecordsBuilder object (#2438)
39+
* Fix DescribeConfigsResponse_v1 config_source (#2464)
40+
* Fix base class of DescribeClientQuotasResponse_v0 (#2465)
41+
* Update socketpair w/ CVE-2024-3219 fix (#2468)
42+
43+
Testing
44+
* Transition CI/CD to GitHub Workflows (#2378, #2392, #2381, #2406, #2419, #2418, #2417, #2456)
45+
* Refactor Makefile (#2457)
46+
* Use assert_called_with in client_async tests (#2375)
47+
* Cover sticky assignor's metadata method with tests (#2161)
48+
* Update fixtures.py to check "127.0.0.1" for auto port assignment (#2384)
49+
* Use -Djava.security.manager=allow for Java 23 sasl tests (#2469)
50+
* Test with Java 23 (#2470)
51+
* Update kafka properties template; disable group rebalance delay (#2471)
52+
153
# 2.0.2 (Sep 29, 2020)
254

355
Consumer

docs/changelog.rst

+62-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,65 @@ Changelog
22
=========
33

44

5+
2.0.3 (Feb 12, 2025)
6+
####################
7+
8+
Improvements
9+
------------
10+
* Add optional compression libs to extras_require (#2123, #2387)
11+
* KafkaConsumer: Exit poll if consumer is closed (#2152)
12+
* Support configuration of custom kafka client for Admin/Consumer/Producer (#2144)
13+
* Core Protocol: Add support for flexible versions (#2151)
14+
* (Internal) Allow disabling thread wakeup in _send_request_to_node (#2335)
15+
* Change loglevel of cancelled errors to info (#2467)
16+
* Strip trailing dot off hostname for SSL validation. (#2472)
17+
* Log connection close(error) at ERROR level (#2473)
18+
* Support DescribeLogDirs admin api (#2475)
19+
20+
Compatibility
21+
-------------
22+
* Support for python 3.12 (#2379, #2382)
23+
* Kafka 2.5 / 2.6 (#2162)
24+
* Try collections.abc imports in vendored selectors34 (#2394)
25+
* Catch OSError when checking for gssapi import for windows compatibility (#2407)
26+
* Update vendored six to 1.16.0 (#2398)
27+
28+
Documentation
29+
-------------
30+
* Update usage.rst (#2308, #2334)
31+
* Fix typos (#2319, #2207, #2178)
32+
* Fix links to the compatibility page (#2295, #2226)
33+
* Cleanup install instructions for optional libs (#2139)
34+
* Update license_file to license_files (#2462)
35+
* Update some RST documentation syntax (#2463)
36+
* Add .readthedocs.yaml; update copyright date (#2474)
37+
38+
Fixes
39+
-----
40+
* Use isinstance in builtin crc32 (#2329)
41+
* Use six.viewitems instead of six.iteritems to avoid encoding problems in StickyPartitionAssignor (#2154)
42+
* Fix array encoding TypeError: object of type 'dict_itemiterator' has no len() (#2167)
43+
* Only try to update sensors fetch lag if the unpacked list contains elements (#2158)
44+
* Avoid logging errors during test fixture cleanup (#2458)
45+
* Release coordinator lock before calling maybe_leave_group (#2460)
46+
* Dont raise RuntimeError for dead process in SpawnedService.wait_for() (#2461)
47+
* Cast the size of a MemoryRecordsBuilder object (#2438)
48+
* Fix DescribeConfigsResponse_v1 config_source (#2464)
49+
* Fix base class of DescribeClientQuotasResponse_v0 (#2465)
50+
* Update socketpair w/ CVE-2024-3219 fix (#2468)
51+
52+
Testing
53+
-------
54+
* Transition CI/CD to GitHub Workflows (#2378, #2392, #2381, #2406, #2419, #2418, #2417, #2456)
55+
* Refactor Makefile (#2457)
56+
* Use assert_called_with in client_async tests (#2375)
57+
* Cover sticky assignor's metadata method with tests (#2161)
58+
* Update fixtures.py to check "127.0.0.1" for auto port assignment (#2384)
59+
* Use -Djava.security.manager=allow for Java 23 sasl tests (#2469)
60+
* Test with Java 23 (#2470)
61+
* Update kafka properties template; disable group rebalance delay (#2471)
62+
63+
564
2.0.2 (Sep 29, 2020)
665
####################
766

@@ -1243,7 +1302,7 @@ Consumers
12431302
* Improve FailedPayloadsError handling in KafkaConsumer (dpkp PR 398)
12441303
* KafkaConsumer: avoid raising KeyError in task_done (dpkp PR 389)
12451304
* MultiProcessConsumer -- support configured partitions list (dpkp PR 380)
1246-
* Fix SimpleConsumer leadership change handling (dpkp PR 393)
1305+
* Fix SimpleConsumer leadership change handling (dpkp PR 393)
12471306
* Fix SimpleConsumer connection error handling (reAsOn2010 PR 392)
12481307
* Improve Consumer handling of 'falsy' partition values (wting PR 342)
12491308
* Fix _offsets call error in KafkaConsumer (hellais PR 376)
@@ -1348,7 +1407,7 @@ Internals
13481407
* Add test timers via nose-timer plugin; list 10 slowest timings by default (dpkp)
13491408
* Move fetching last known offset logic to a stand alone function (zever - PR 177)
13501409
* Improve KafkaConnection and add more tests (dpkp - PR 196)
1351-
* Raise TypeError if necessary when encoding strings (mdaniel - PR 204)
1410+
* Raise TypeError if necessary when encoding strings (mdaniel - PR 204)
13521411
* Use Travis-CI to publish tagged releases to pypi (tkuhlman / mumrah)
13531412
* Use official binary tarballs for integration tests and parallelize travis tests (dpkp - PR 193)
13541413
* Improve new-topic creation handling (wizzat - PR 174)
@@ -1362,7 +1421,7 @@ Internals
13621421
* Fix connection error timeout and improve tests (wizzat - PR 158)
13631422
* SimpleProducer randomization of initial round robin ordering (alexcb - PR 139)
13641423
* Fix connection timeout in KafkaClient and KafkaConnection (maciejkula - PR 161)
1365-
* Fix seek + commit behavior (wizzat - PR 148)
1424+
* Fix seek + commit behavior (wizzat - PR 148)
13661425

13671426

13681427
0.9.0 (Mar 21, 2014)

docs/usage.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ KafkaConsumer
2828
# consume json messages
2929
KafkaConsumer(value_deserializer=lambda m: json.loads(m.decode('ascii')))
3030
31-
# consume msgpack
31+
# consume msgpack
3232
KafkaConsumer(value_deserializer=msgpack.unpackb)
3333
3434
# StopIteration if no message after 1sec
@@ -104,16 +104,16 @@ KafkaProducer
104104
log.error('I am an errback', exc_info=excp)
105105
# handle exception
106106
107-
# produce asynchronously with callbacks
107+
# produce asynchronously with callbacks
108108
producer.send('my-topic', b'raw_bytes').add_callback(on_send_success).add_errback(on_send_error)
109109
110110
# block until all async messages are sent
111111
producer.flush()
112112
113113
# configure multiple retries
114114
producer = KafkaProducer(retries=5)
115-
116-
115+
116+
117117
ClusterMetadata
118118
=============
119119
.. code:: python
@@ -131,7 +131,7 @@ ClusterMetadata
131131
# get all partitions of a topic
132132
print(clusterMetadata.partitions_for_topic("topic"))
133133
134-
# list topics
134+
# list topics
135135
print(clusterMetadata.topics())
136136
137137
@@ -140,9 +140,9 @@ KafkaAdminClient
140140
.. code:: python
141141
from kafka import KafkaAdminClient
142142
from kafka.admin import NewTopic
143-
143+
144144
admin = KafkaAdminClient(bootstrap_servers=['broker1:1234'])
145-
145+
146146
# create a new topic
147147
topics_list = []
148148
topics_list.append(NewTopic(name="testtopic", num_partitions=1, replication_factor=1))
@@ -160,4 +160,4 @@ KafkaAdminClient
160160
# get consumer group offset
161161
print(admin.list_consumer_group_offsets('cft-plt-qa.connect'))
162162
163-
163+

kafka/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.0.3-dev'
1+
__version__ = '2.0.3'

0 commit comments

Comments
 (0)