Skip to content

Releases: confluentinc/confluent-kafka-go

v2.6.1

18 Nov 18:27
995fa17
Compare
Choose a tag to compare

This is a maintenance release:

Fixes

  • Minor optimization to reduce schema ID lookups (#1318).
  • Support transforming maps in Data Contract rules (#1324).
  • Minor optimization to not derive schema when using existing schema (#1327).

confluent-kafka-go is based on librdkafka v2.6.1, see the
librdkafka v2.6.1 release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.

v2.6.0

10 Oct 23:02
e69ce7b
Compare
Choose a tag to compare

This is a feature release:

  • KIP-848 EA: Admin API for listing consumer groups now has an optional filter to return only groups of given types (#1267).
  • KIP-460 Admin Leader Election RPC (#1311)

confluent-kafka-go is based on librdkafka v2.6.0, see the
librdkafka v2.6.0 release notes
for a complete list of changes, enhancements, fixes and upgrade considerations.

v2.5.4

24 Sep 15:22
0e86e8b
Compare
Choose a tag to compare

v2.5.4 is a maintenance release with the following fixes and enhancements:

  • Upgrade azidentity library to 1.6.0.
  • Upgrade vault library to 1.15.0.
  • Handle primitives in avrov2 library.
  • Allow RuleRegistry to be set in serdes.

confluent-kafka-go is based on librdkafka v2.5.3, see the librdkafka v2.5.3 release notes for a complete list of changes, enhancements, fixes and upgrade considerations.

v2.5.3

03 Sep 04:26
3ee4497
Compare
Choose a tag to compare

v2.5.3 is a maintenance release with the following fixes and enhancements:

  • Properly handle 409 conflicts when registering KEKs/DEKs.
  • Run rule actions when a rule condition fails.
  • Include deleted schemas when getting schemas by subject and version.
  • Handle signed ints when transforming Protobuf payloads.
  • Use correct URL when calling DEK Registry to retrieve a DEK by version.
  • Upgrade Hamba Avro library to 2.24.0.
  • Perform Avro schema resolution in the Avro deserializer if necessary.
  • Add some missing APIs to the Schema Registry client.

confluent-kafka-go is based on librdkafka v2.5.3, see the librdkafka v2.5.3 release notes for a complete list of changes, enhancements, fixes and upgrade considerations.

There were no v2.5.1 or v2.5.2 releases.

v2.5.0

10 Jul 19:50
dd336f6
Compare
Choose a tag to compare

Warning

This version has introduced a regression in which an assert is triggered during PushTelemetry call. This happens when no metric is matched on the client side among those requested by broker subscription.

You won't face any problem if:

  • Broker doesn't support KIP-714.
  • KIP-714 feature is disabled on the broker side.
  • KIP-714 feature is disabled on the client side. This is enabled by default. Set configuration enable.metrics.push to false.
  • If KIP-714 is enabled on the broker side and there is no subscription configured there.
  • If KIP-714 is enabled on the broker side with subscriptions that match the KIP-714 metrics defined on the client.

Having said this, we strongly recommend using v2.5.3 and above to not face this regression at all.

This is a feature release.

  • Adds an AdminAPI DeleteRecords() (#1141, @PratRanj07).
  • Add support for metadata and ruleSet in the schema registry client, which together support data
    contracts.
  • Add a new Avro package "avrov2" which uses the Avro hamba library. The old package "avro" uses
    Avro libraries which are no longer maintained and should not be used in new code.
  • Move rest service for schema registry client into internal package for use by both the SR client
    and the DEK Registry client.
  • Add support for CSFLE (client-side field-level encryption) for AWS, Azure, GCP, and HashiCorp
    Vault. See the encryption examples in the examples directory.
  • Add support for CEL, CEL_FIELD, and JSONata rules.

Fixes

  • Issues: #965
    Windows builds are linked to libssp in addition to other libraries, since
    the bundled zstd and zlib are built with -fstack-protector, and not linking
    causes build failures.
    Happening since 2.0.0 (#1184).

confluent-kafka-go is based on librdkafka v2.5.0, see the librdkafka v2.5.0 release notes for a complete list of changes, enhancements, fixes and upgrade considerations.

v2.4.0

07 May 16:51
1bb141d
Compare
Choose a tag to compare

This is a feature release.

  • KIP-848: Integration tests running with the new consumer group protocol. The feature is an Early Access: not production ready (#1185).
  • Allow custom http.Client to be passed to schema registry client (#1099)
  • Cache schemas when setting UseLatestVersion=true (#1100)
  • Add CacheLatestTtlSecs to allow expiration of latest schemas (#1106)
  • Cache parsed file descriptors in Protobuf deserializer (#1128)
  • Add CacheSchemas option to Protobuf serializer (#1151)
  • Add tags field to Confluent metadata (#1131)

Fixes

  • The version of Go in go.mod has been changed from 1.17 to 1.21. This is necessary to update test dependencies with security vulnerabilities. Code using the library will still work with Go 1.17 (#1136, @rzeijde).
  • Fix JSON validation during serialization (#1101)
  • Fix counter in mock schema registry client (#1170)

confluent-kafka-go is based on librdkafka v2.4.0, see the librdkafka v2.4.0 release notes for a complete list of changes, enhancements, fixes and upgrade considerations.

v2.3.0

25 Oct 15:55
5f88a1c
Compare
Choose a tag to compare

This is a feature release.

  • Adds support for AdminAPI DescribeCluster() and DescribeTopics() (#964, @jainruchir).
  • KIP-430: Return authorized operations in Describe Responses. (#964, @jainruchir).
  • Adds Rack to the Node type, so AdminAPI calls can expose racks for brokers (currently, all Describe Responses) (#964, @jainruchir).
  • KIP-396: completed the implementation with the addition of ListOffsets (#1029).
  • Adds cache for Schema Registry client's GetSchemaMetadata (#1042).
  • MockCluster can now be shutdown and started again to test broker availability problems (#998, @kkoehler).
  • Adds CreateTopic method to the MockCluster. (#1047, @mimikwang).
  • Honor HTTPS_PROXY environment variable, if set, for the Schema Registry client (#1065, @finncolman).
  • KIP-516: Partial support of topic identifiers. Topic identifiers in metadata response are available through the new DescribeTopics function (#1068).

Fixes

  • Fixes a bug in the mock schema registry client where the wrong ID was being returned for pre-registered schema (#971, @srlk).
  • The minimum version of Go supported has been changed from 1.16 to 1.17 (#1074).
  • Fixes an issue where testing was being imported by a non-test file, testhelpers.go. (#1049, @dmlambea).
  • Fixes the optional Coordinator field in ConsumerGroupDescription in case it's not known. It now contains a Node with ID -1 in that case. Avoids a C segmentation fault.
  • Fixes an issue with Producer.Flush. It was waiting for queue.buffering.max.ms while flushing (#1013).
  • Fixes an issue where consumer methods would not be allowed to run while the consumer was closing, and during the final partition revoke (#1073).

confluent-kafka-go is based on librdkafka v2.3.0, see the librdkafka v2.3.0 release notes for a complete list of changes, enhancements, fixes and upgrade considerations.

v2.2.0

12 Jul 10:28
7804dbd
Compare
Choose a tag to compare

This is a feature release.

  • KIP-339: IncrementalAlterConfigs API (#945).
  • KIP-554: User SASL/SCRAM credentials alteration and description (#1004).

Fixes

  • Fixes a nil pointer bug in the protobuf Serializer.Serialize(), caused due to an unchecked error (#997, @baganokodo2022).
  • Fixes incorrect protofbuf FileDescriptor references (#989, @Mrmann87).
  • Allow fetching all partition offsets for a consumer group by passing a nil slice in AdminClient.ListConsumerGroupOffsets, when earlier it was not processing that correctly (#985, @alexandredantas).
  • Deprecate m.LeaderEpoch in favor of m.TopicPartition.LeaderEpoch (#1012).

confluent-kafka-go is based on librdkafka v2.2.0, see the librdkafka v2.2.0 release notes for a complete list of changes, enhancements, fixes and upgrade considerations.

v2.1.1

03 May 06:57
9a07b92
Compare
Choose a tag to compare

This is a maintenance release.

It is strongly recommended to update to v2.1.1 if v2.1.0 is being used, as it fixes a critical issue in the consumer (#980).

confluent-kafka-go is based on librdkafka v2.1.1, see the librdkafka v2.1.1 release notes for a complete list of changes, enhancements, fixes and upgrade considerations.

v2.1.0

06 Apr 09:12
64c6582
Compare
Choose a tag to compare

This is a feature release.

  • Added Consumer SeekPartitions() method to seek multiple partitions at once and deprecated Seek() (#940).
  • KIP-320: add offset leader epoch to the TopicPartition and Message structs (#968).
  • The minimum version of Go supported has been changed from 1.14 to 1.16 (#973).
  • Add validation on the Producer, the Consumer and the AdminClient to prevent panic when they are used after close (#901).
  • Fix bug causing schema-registry URL with existing path to not be parsed correctly (#950).
  • Support for Offset types on Offset.Set() (#962, @jdockerty).
  • Added example for using rebalance callback with manual commit.

confluent-kafka-go is based on librdkafka v2.1.0, see the librdkafka v2.1.0 release notes and later ones for a complete list of changes, enhancements, fixes and upgrade considerations.