Skip to content

Releases: dpkp/kafka-python

2.2.6

08 May 20:08
Compare
Choose a tag to compare

2.2.6 (May 8, 2025)

Fixes

  • Only disable heartbeat thread once at beginning of join-group (#2617)

2.2.5

08 May 18:06
Compare
Choose a tag to compare

2.2.5 (May 8, 2025)

Fixes

  • Fix producer busy loop with no pending batches (#2616)
  • Fixup py27 fetcher test failure

2.2.4

04 May 03:00
Compare
Choose a tag to compare

2.2.4 (May 3, 2025)

Fixes

  • Do not reset_generation after RebalanceInProgressError; improve CommitFailed error messages (#2614)
  • Fix KafkaConsumer.poll() with zero timeout (#2613)
  • Fix Fetch._reset_offsets_async() KeyError when fetching from multiple nodes (#2612)

2.1.6

02 May 17:06
Compare
Choose a tag to compare

2.1.6 (May 2, 2025)

Fixes

  • Only create fetch requests for ready nodes (#2607)

2.2.3

01 May 20:02
Compare
Choose a tag to compare

2.2.3 (May 1, 2025)

Fixes

  • Ignore leading SECURITY_PROTOCOL:// in bootstrap_servers (#2608)
  • Only create fetch requests for ready nodes (#2607)

2.2.2

01 May 20:02
Compare
Choose a tag to compare

2.2.2 (Apr 30, 2025)

Fixes

  • Fix lint errors

2.2.1

29 Apr 16:56
Compare
Choose a tag to compare

2.2.1 (Apr 29, 2025)

Fixes

  • Always try ApiVersionsRequest v0, even on broker disconnect (#2603)
  • Fix SubscriptionState AttributeError in KafkaConsumer (#2599)

Documentation

  • Add transactional examples to docs

2.2.0

28 Apr 19:11
Compare
Choose a tag to compare

2.2.0 (Apr 28, 2025)

KafkaProducer

  • KIP-98: Add idempotent producer support (#2569)
  • KIP-98: Transactional Producer (#2587)
  • KIP-98: Add offsets support to transactional KafkaProducer (#2590)
  • Prefix producer logs w/ client id and transactional id (#2591)
  • KAFKA-5429: Ignore produce response if batch was previously aborted
  • KIP-91: KafkaProducer delivery_timeout_ms
  • Default retries -> infinite
  • Expand KafkaProducer docstring w/ idempotent and transactional notes
  • RecordAccumulator: Use helper method to get/set _tp_locks; get dq with lock in reenqueue()

KafkaConsumer

  • KIP-98: Add Consumer support for READ_COMMITTED (#2582)
  • KIP-394: handle MEMBER_ID_REQUIRED error w/ second join group request (#2598)
  • KAFKA-5078: Defer fetch record exception if iterator has already moved across a valid record
  • KAFKA-5075: Defer consumer fetcher exception if fetch position has already increased
  • KAFKA-4937: Batch offset fetches in the Consumer
  • KAFKA-4547: Avoid resetting paused partitions to committed offsets
  • KAFKA-6397: Consumer should not block setting positions of unavailable partitions (#2593)

Potentially Breaking Changes (internal)

  • Rename CorruptRecordException -> CorruptRecordError
  • Rename Coordinator errors to generic not group (#2585)
  • Rename ClusterMetadata.add_group_coordinator -> add_coordinator + support txn type
  • Use SaslAuthenticationFailedError in kafka.conn connection failure; Drop unused AuthenticationFailedError
  • Remove old/unused errors; reorder; KafkaTimeout -> retriable
  • Drop log_start_offset from producer RecordMetadata

Internal

  • MemoryRecords iterator; MemoryRecordsBuilder records() helper
  • Convert DefaultRecordsBuilder.size_in_bytes to classmethod

Fixes

  • Resolve datetime deprecation warnings (#2589)
  • Avoid self refcount in log messages; test thread close on all pythons
  • Fix client.wakeup() race from producer/sender close
  • Fix ElectionNotNeededError handling in admin client

Tests

  • Move integration tests and fixtures to test/integration/; simplify unit fixtures (#2588)
  • Expand Sender test coverage (#2586)
  • py2 test fixups
  • Drop unused KafkaClient import from test_fetcher

2.1.5

07 Apr 21:44
Compare
Choose a tag to compare

2.1.5 (Apr 4, 2025)

Fixes

  • Fix python2.7 errors (#2578)

Improvements

  • Move benchmark scripts to kafka.benchmarks module (#2584)
  • Use __slots__ for metrics (#2583)
  • Pass metrics_enabled=False to disable metrics (#2581)
  • Drop unused kafka.producer.buffer / SimpleBufferPool (#2580)
  • Raise UnsupportedVersionError from coordinator (#2579)

2.1.4

28 Mar 18:04
Compare
Choose a tag to compare

2.1.4 (Mar 28, 2025)

Fixes

  • Dont block pending FetchRequests when Metadata update requested (#2576)
  • Fix MetadataRequest for no topics (#2573)
  • Send final error byte x01 on Sasl OAuth failure (#2572)
  • Reset SASL state on disconnect (#2571)
  • Try import new Sequence before old to avoid DeprecationWarning

Improvements

  • Update Makefile default to 4.0 broker; add make fixture
  • Improve connection state logging (#2574)