Skip to content

deps: bump kafka-python from 2.3.2 to 3.0.0#309

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/kafka-python-3.0.0
Closed

deps: bump kafka-python from 2.3.2 to 3.0.0#309
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/kafka-python-3.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 15, 2026

Copy link
Copy Markdown
Contributor

Bumps kafka-python from 2.3.2 to 3.0.0.

Release notes

Sourced from kafka-python's releases.

3.0.0 (Jun 11, 2026)

This is a major release with significant changes to kafka-python internals to simplify networking and feature development. It introduces a new networking layer (kafka.net) and a dynamic protocol system that uses JSON schema files imported from Apache Kafka. It substantially refactors and expands the Admin client, including breaking changes to some API signatures, and it lands a long list of KIP features/changes across the producer, consumer, admin, and networking/metadata clients. Protocol support across kafka-python is now at or beyond the apache kafka 3.0 baseline.

Breaking Changes

Python Compatibility

Default Configuration Changes

  • KIP-679: Update Producer defaults -- enable_idempotence=True, acks='all' (#3013)
  • KIP-735: Increase default consumer session_timeout_ms from 10s to 45s (#3030)
  • Rename api_version_auto_timeout_ms -> bootstrap_timeout_ms; default 30s (#3028)
  • Producer: Remove deprecation warning for buffer_memory config (now raises) (#3047)

Abstract Interface Changes

  • Serializer/Deserializer: Pass headers to serialize/deserialize (#3046)
  • Partitioner: pass both key/value, serialized and unserialized, to partition() (#3045)

Admin API Changes

  • Admin: change response shapes to simple dicts (#2883)
  • Admin: groups apis renames; add offsets, members apis (#2892)
  • Admin: Deprecate NewTopics/NewPartitions in favor of simple dicts (#2869)

Consumer API Changes

  • Consumer: use assignor instances, not classes (#2775)

Error Hierarchy

  • KafkaError subclass Exception not RuntimeError (#2932)
  • Make IncompatibleBrokerVersion a subclass of UnsupportedVersionError (#2924)
  • Eliminate NoBrokersAvailableError (#2942)
  • KafkaProtocolError is not retriable (#2941)
  • Prefer raised Exceptions to assert / AssertionError (#3042)

Old Networking Stack Removal

  • Remove kafka.client_async / kafka.conn legacy modules (#2918)
  • Drop version probes for pre-0.10/ApiVersionsRequest brokers

SASL Module Rename

  • Rename kafka.sasl -> kafka.net.sasl

Networking (kafka.net)

Complete refactor of the networking layer using a bespoke event-loop supporting async/await (but no asyncio yet). All three clients (Admin, Consumer, Producer) use a dedicated IO thread that drives a selector-based event loop. AdminClient/KafkaConsumer leverage a built-in io thread supplied by kafka.net, KafkaProducer continues to use its existing background Sender thread for now.

Async IO Substrate

  • kafka.net: Refactored async networking modules (generator-based coroutines) (#2812)
  • kafka.net: Network IO thread (#2965, #2980, #2961, #2968, #2963)
  • KafkaNetClient: drop-in replacement for KafkaClient using kafka.net (#2816)
  • KafkaNetSocket: interface class for socket and proxy connections (#2992)

... (truncated)

Changelog

Sourced from kafka-python's changelog.

3.0.0 (Jun 11, 2026) ####################

This is a major release with significant changes to kafka-python internals to simplify networking and feature development. It introduces a new networking layer (kafka.net) and a dynamic protocol system that uses JSON schema files imported from Apache Kafka. It substantially refactors and expands the Admin client, including breaking changes to some API signatures, and it lands a long list of KIP features/changes across the producer, consumer, admin, and networking/metadata clients. Protocol support across kafka-python is now at or beyond the apache kafka 3.0 baseline.

Breaking Changes

Python Compatibility ^^^^^^^^^^^^^^^^^^^^

Default Configuration Changes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • KIP-679: Update Producer defaults -- enable_idempotence=True, acks='all' (#3013)
  • KIP-735: Increase default consumer session_timeout_ms from 10s to 45s (#3030)
  • Rename api_version_auto_timeout_ms -> bootstrap_timeout_ms; default 30s (#3028)
  • Producer: Remove deprecation warning for buffer_memory config (now raises) (#3047)

Abstract Interface Changes ^^^^^^^^^^^^^^^^^^^^^^^^^^

  • Serializer/Deserializer: Pass headers to serialize/deserialize (#3046)
  • Partitioner: pass both key/value, serialized and unserialized, to partition() (#3045)

Admin API Changes ^^^^^^^^^^^^^^^^^

  • Admin: change response shapes to simple dicts (#2883)
  • Admin: groups apis renames; add offsets, members apis (#2892)
  • Admin: Deprecate NewTopics/NewPartitions in favor of simple dicts (#2869)

Consumer API Changes ^^^^^^^^^^^^^^^^^^^^

  • Consumer: use assignor instances, not classes (#2775)

Error Hierarchy ^^^^^^^^^^^^^^^

  • KafkaError subclass Exception not RuntimeError (#2932)
  • Make IncompatibleBrokerVersion a subclass of UnsupportedVersionError (#2924)
  • Eliminate NoBrokersAvailableError (#2942)
  • KafkaProtocolError is not retriable (#2941)
  • Prefer raised Exceptions to assert / AssertionError (#3042)

Old Networking Stack Removal ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • Remove kafka.client_async / kafka.conn legacy modules (#2918)
  • Drop version probes for pre-0.10/ApiVersionsRequest brokers

SASL Module Rename ^^^^^^^^^^^^^^^^^^

  • Rename kafka.sasl -> kafka.net.sasl

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [kafka-python](https://github.com/dpkp/kafka-python) from 2.3.2 to 3.0.0.
- [Release notes](https://github.com/dpkp/kafka-python/releases)
- [Changelog](https://github.com/dpkp/kafka-python/blob/master/docs/changelog.rst)
- [Commits](dpkp/kafka-python@2.3.2...3.0.0)

---
updated-dependencies:
- dependency-name: kafka-python
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Jun 15, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #313.

@dependabot dependabot Bot closed this Jun 22, 2026
@dependabot
dependabot Bot deleted the dependabot/uv/kafka-python-3.0.0 branch June 22, 2026 19:34
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants