kafka-python v1.4.2 Release Notes
Release Date: 2018-03-10 // about 6 years ago-
๐ Bugfixes
- Close leaked selector in version check (dpkp #1425)
- ๐ Fix
BrokerConnection.connection_delay()
to return milliseconds (dpkp #1414) - Use local copies in
Fetcher._fetchable_partitions
to avoid mutation errors (dpkp #1400) - ๐ Fix error var name in
_unpack
(j2gg0s #1403) - ๐ Fix KafkaConsumer compacted offset handling (dpkp #1397)
- ๐ Fix byte size estimation with kafka producer (blakeembrey #1393)
- ๐ Fix coordinator timeout in consumer poll interface (braedon #1384)
Client
- โ Add
BrokerConnection.connect_blocking()
to improve bootstrap to multi-address hostnames (dpkp #1411) - Short-circuit
BrokerConnection.close()
if already disconnected (dpkp #1424) - Only increase reconnect backoff if all addrinfos have been tried (dpkp #1423)
- ๐ Make BrokerConnection .host / .port / .afi immutable to avoid incorrect 'metadata changed' checks (dpkp #1422)
- ๐ Connect with sockaddrs to support non-zero ipv6 scope ids (dpkp #1433)
- โฑ Check timeout type in KafkaClient constructor (asdaraujo #1293)
- โก๏ธ Update string representation of SimpleClient (asdaraujo #1293)
- Do not validate
api_version
against known versions (dpkp #1434)
Consumer
- ๐ Avoid tight poll loop in consumer when brokers are down (dpkp #1415)
- ๐ Validate
max_records
in KafkaConsumer.poll (dpkp #1398) - ๐ KAFKA-5512: Awake heartbeat thread when it is time to poll (dpkp #1439)
Producer
- Validate that serializers generate bytes-like (or None) data (dpkp #1420)
Core / Protocol
- ๐ Support alternative lz4 package: lz4framed (everpcpc #1395)
- ๐ Use hardware accelerated CRC32C function if available (tvoinarovskyi #1389)
- โ Add Admin CreatePartitions API call (alexef #1386)
โ Test Infrastructure
- โ Close KafkaConsumer instances during tests (dpkp #1410)
- โ Introduce new fixtures to prepare for migration to pytest (asdaraujo #1293)
- โ Removed pytest-catchlog dependency (asdaraujo #1380)
- ๐ Fixes racing condition when message is sent to broker before topic logs are created (asdaraujo #1293)
- โ Add kafka 1.0.1 release to test fixtures (dpkp #1437)
๐ฒ Logging / Error Messages