Repository navigation
Update dependency confluent-kafka to v2.15.1 - #9
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==2.5.3→==2.15.1Release Notes
confluentinc/confluent-kafka-python (confluent-kafka)
v2.15.1Fixes
DeserializingConsumerandDeserializingShareConsumernow deserialize themessage key before the value, matching
SerializingProducerand the Javaclient. When both key and value fail to deserialize, the key error is now
surfaced instead of the value error.
AdminClient.delete_records()followedby another Admin API call (e.g.
list_topics()) on Python 3.14.asyncio.get_running_loop()instead ofasyncio.get_event_loop()to avoid creating a new event loop and raise an error in case a loop isn't available (@AlexCai26, #2339).confluent-kafka-python 2.15.1 is based on librdkafka 2.15.1, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.15.0KIP-932 Queues for Kafka – Now in Preview
confluent-kafka-python 2.15.0 adds a Preview implementation of the KIP-932 share consumer (Queues for Kafka). Members of a share group cooperatively consume from the same partitions with per-record acquire/acknowledge semantics and redelivery, providing queue-like consumption on top of Kafka.
ShareConsumerandDeserializingShareConsumerclients: subscribe, batch poll (poll()returns aMessagesbatch), and close (with context-manager support).share.acknowledgement.mode), withAcknowledgeTypeACCEPT / RELEASE / REJECT andMessage.delivery_count().commit_sync/commit_async) and an acknowledgement-commit callback.set_sasl_credentials) and newIllegalStateException/ConcurrentModificationExceptionexceptions.See the Share Consumer guide and the Share consumers section of librdkafka's INTRODUCTION.md.
Note: The share consumer is currently in Preview and should not be used in production environments. Its public interfaces may change before General Availability, and known limitations apply (see the guide). The share consumer is single-threaded and not thread-safe. It requires a broker with share groups enabled (generally available in Apache Kafka 4.2.0).
Features
confluent-kafka[oauthbearer-aws]provides AWS IAM-basedOAUTHBEARER authentication via AWS STS
GetWebIdentityToken. Activate by settingsasl.oauthbearer.method=oidc,sasl.oauthbearer.metadata.authentication.type=aws_iam, andsasl.oauthbearer.config="region=...,audience=...". See theAWS IAM OAUTHBEARER guide for full configuration, and
examples/oauth_oidc_ccloud_aws_iam.pyfor a worked example.
Enhancements
Fixes
confluent-kafka-python v2.15.0 is based on librdkafka v2.15.0, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.14.2v2.14.2 is a maintenance release with the following fixes and enhancements:
Fixes
confluent-kafka-python v2.14.2 is based on librdkafka v2.14.2, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.14.0v2.14.0 is a feature release with the following features, fixes and enhancements:
Enhancements
Fixes
confluent-kafka-python v2.14.0 is based on librdkafka v2.14.0, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.13.2v2.13.2 is a maintenance release with the following fixes and enhancements:
Enhancements
Fixes
Producer.produce()when called with headers and raisesBufferError(queue full) orRuntimeError(producer closed). The allocatedrd_headersmemory is now properly freed in error paths before returning. Fixes Issue #2167.KafkaErrorclass,Consumer.__init()__,Producer.__init()__,Producer.produce()andConsumer.commit()and introduced a script in tools directory to keep error codes up to date. Fixes Issue #2168.v2.13.0v2.13.0 is a feature release with the following features, fixes and enhancements:
Enhancements
close()method to producer (#2039)__len__function to AIOProducer (#2140)Fixes
__enter__to return the same object type that called it (#2157)Consumer.poll(),Consumer.consume(),Producer.poll(), andProducer.flush()blocking indefinitely and not responding to Ctrl+C (KeyboardInterrupt) signals. The implementation now uses a "wakeable poll" pattern that breaks long blocking calls into smaller chunks (200ms) and periodically re-acquires the Python GIL to check for pending signals. This allows Ctrl+C to properly interrupt blocking operations. Fixes Issues #209 and #807 (#2126).list_consumer_group_offsets()(#2118)commit()andstore_offsets()(#2145)confluent-kafka-python v2.13.0 is based on librdkafka v2.13.0, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.12.2v2.12.2 - 2025-11-06
v2.12.2 is a maintenance release with the following change:
Schema Registry Client
Accept-VersiontoConfluent-Accept-Unknown-Propertiesin request headerv2.12.1v2.12.1 is a maintenance release with the following fixes:
libversion()now returns the string/integer tuple for varients on version -- useversion()for string only responsesr.lookup_schema()v2.12.0v2.12.0 is a feature release with the following enhancements:
KIP-848 – General Availability
Starting with confluent-kafka-python 2.12.0, the next generation consumer group rebalance protocol defined in KIP-848 is production-ready. Please refer to the following migration guide for moving from
classictoconsumerprotocol.Note: The new consumer group protocol defined in KIP-848 is not enabled by default. There are few contract change associated with the new protocol and might cause breaking changes.
group.protocolconfiguration property dictates whether to use the newconsumerprotocol or olderclassicprotocol. It defaults toclassicif not provided.AsyncIO Producer (experimental)
Introduces beta class
AIOProducerfor asynchronous message production in asyncio applications.Added
AIOProducerforasynchronous message production in asyncio applications. This API offloads
blocking librdkafka calls to a thread pool and schedules common callbacks
(
error_cb,throttle_cb,stats_cb,oauth_cb,logger) onto the eventloop for safe usage inside async frameworks.
Features
await AIOProducer(...).produce(topic, value=...)buffers messages and flushes when the buffer threshold or timeout is reached.
await producer.flush(),await producer.purge(), andtransactional operations (
init_transactions,begin_transaction,commit_transaction,abort_transaction).Limitations
path. If headers are required, use the synchronous
Producer.produce(...)oroffload a sync produce call to a thread executor within your async app.
Guidance
asyncio tasks) to avoid blocking the event loop.
loop, the synchronous
Producerremains recommended.Enhancement and Fixes
confluent-kafka-python v2.12.0 is based on librdkafka v2.12.0, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.11.1v2.11.1 is a maintenance release with the following fixes:
confluent-kafka-python v2.11.1 is based on librdkafka v2.11.1, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.11.0v2.11.0 is a feature release with the following enhancements:
confluent-kafka-python v2.11.0 is based on librdkafka v2.11.0, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.10.1v2.10.1 is a maintenance release with the following fixes:
Nonevalue for optionalctxparameter inProtobufDeserializer(#1939)Nonevalue for optionalctxparameter inAvroDeserializer(#1973)confluent-kafka-python v2.10.1 is based on librdkafka v2.10.1, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.10.0v2.10.0 is a feature release with the following fixes and enhancements:
describe_consumer_groups()now supports KIP-848 introducedconsumergroups. Two new fields for consumer group type and target assignment have also been added. Type defines whether this group is aclassicorconsumergroup. Target assignment is only valid for theconsumerprotocol and its defaults to NULL. (#1873).confluent-kafka-python v2.10.0 is based on librdkafka v2.10.0, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.9.0v2.9.0 is a feature release with the following fixes and enhancements:
confluent-kafka-python v2.9.0 is based on librdkafka v2.8.0, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.8.2v2.8.1v2.8.0v2.9.0 is a feature release with the following fixes and enhancements:
confluent-kafka-python v2.9.0 is based on librdkafka v2.8.0, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.7.0v2.7.0 is a feature release with the features, fixes and enhancements present in v2.6.2 including the following fix:
confluent-kafka-python v2.7.0 is based on librdkafka v2.6.1, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.6.2v2.6.2 is a feature release with the following features, fixes and enhancements:
Note: This release modifies the dependencies of the Schema Registry client.
If you are using the Schema Registry client, please ensure that you install the
extra dependencies using the following syntax:
or
Please see the README.md for more information.
confluent-kafka-python is based on librdkafka v2.6.1, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
v2.6.1v2.6.0confluent-kafka-python v2.6.0
v2.6.0 is a feature release with the following features, fixes and enhancements:
confluent-kafka-python is based on librdkafka v2.6.0, see the
librdkafka release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.