From 380d861e2edcda7de3bae9b4fd1e0284a84794a1 Mon Sep 17 00:00:00 2001 From: Emanuele Sabellico Date: Thu, 11 Jul 2024 02:09:11 +0200 Subject: [PATCH] Bump version to 2.5.0 (#2261) * Bump version to 2.5.0 * Version in README * Updated error codes --- README.md | 4 +- examples/AdminClient/AdminClient.csproj | 2 +- .../AvroBlogExamples/AvroBlogExamples.csproj | 2 +- examples/AvroGeneric/AvroGeneric.csproj | 2 +- .../AvroGenericEncryption.csproj | 2 +- .../AvroGenericMigration.csproj | 2 +- examples/AvroSpecific/AvroSpecific.csproj | 2 +- .../AvroSpecificEncryption.csproj | 2 +- examples/Configuration/Configuration.csproj | 2 +- examples/ConfluentCloud/ConfluentCloud.csproj | 2 +- examples/Consumer/Consumer.csproj | 2 +- examples/ExactlyOnce/ExactlyOnce.csproj | 2 +- .../ExactlyOnceOldBroker.csproj | 2 +- .../JsonSerializationEncryption.csproj | 2 +- .../JsonSerialization.csproj | 2 +- .../JsonWithReferences.csproj | 2 +- examples/MultiProducer/MultiProducer.csproj | 2 +- examples/OAuthConsumer/OAuthConsumer.csproj | 2 +- examples/OAuthOIDC/OAuthOIDC.csproj | 2 +- examples/OAuthProducer/OAuthProducer.csproj | 2 +- examples/Producer/Producer.csproj | 2 +- examples/Protobuf/Protobuf.csproj | 2 +- .../ProtobufEncryption.csproj | 2 +- examples/TlsAuth/TlsAuth.csproj | 2 +- examples/Web/Web.csproj | 2 +- src/Confluent.Kafka/Config_gen.cs | 2 +- src/Confluent.Kafka/Confluent.Kafka.csproj | 2 +- src/Confluent.Kafka/ErrorCode.cs | 47 ++++++++++++++++++- ...luent.SchemaRegistry.Encryption.Aws.csproj | 2 +- ...ent.SchemaRegistry.Encryption.Azure.csproj | 2 +- ...luent.SchemaRegistry.Encryption.Gcp.csproj | 2 +- ...t.SchemaRegistry.Encryption.HcVault.csproj | 2 +- ...Confluent.SchemaRegistry.Encryption.csproj | 2 +- .../Confluent.SchemaRegistry.Rules.csproj | 2 +- ...onfluent.SchemaRegistry.Serdes.Avro.csproj | 2 +- ...onfluent.SchemaRegistry.Serdes.Json.csproj | 2 +- ...uent.SchemaRegistry.Serdes.Protobuf.csproj | 2 +- .../Confluent.SchemaRegistry.csproj | 2 +- 38 files changed, 84 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index ea6ffd7cf..48e320c62 100644 --- a/README.md +++ b/README.md @@ -49,13 +49,13 @@ confluent-kafka-dotnet is distributed via NuGet. We provide the following packa To install Confluent.Kafka from within Visual Studio, search for Confluent.Kafka in the NuGet Package Manager UI, or run the following command in the Package Manager Console: ``` -Install-Package Confluent.Kafka -Version 2.4.0 +Install-Package Confluent.Kafka -Version 2.5.0 ``` To add a reference to a dotnet core project, execute the following at the command line: ``` -dotnet add package -v 2.4.0 Confluent.Kafka +dotnet add package -v 2.5.0 Confluent.Kafka ``` Note: `Confluent.Kafka` depends on the `librdkafka.redist` package which provides a number of different builds of `librdkafka` that are compatible with [common platforms](https://github.com/edenhill/librdkafka/wiki/librdkafka.redist-NuGet-package-runtime-libraries). If you are on one of these platforms this will all work seamlessly (and you don't need to explicitly reference `librdkafka.redist`). If you are on a different platform, you may need to [build librdkafka](https://github.com/edenhill/librdkafka#building) manually (or acquire it via other means) and load it using the [Library.Load](https://docs.confluent.io/current/clients/confluent-kafka-dotnet/api/Confluent.Kafka.Library.html#Confluent_Kafka_Library_Load_System_String_) method. diff --git a/examples/AdminClient/AdminClient.csproj b/examples/AdminClient/AdminClient.csproj index 3ef7fdf98..ae3733461 100755 --- a/examples/AdminClient/AdminClient.csproj +++ b/examples/AdminClient/AdminClient.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/AvroBlogExamples/AvroBlogExamples.csproj b/examples/AvroBlogExamples/AvroBlogExamples.csproj index 944a0ed33..1f4914dbf 100644 --- a/examples/AvroBlogExamples/AvroBlogExamples.csproj +++ b/examples/AvroBlogExamples/AvroBlogExamples.csproj @@ -8,7 +8,7 @@ - + diff --git a/examples/AvroGeneric/AvroGeneric.csproj b/examples/AvroGeneric/AvroGeneric.csproj index 6d39c16a5..26deb7239 100644 --- a/examples/AvroGeneric/AvroGeneric.csproj +++ b/examples/AvroGeneric/AvroGeneric.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/AvroGenericEncryption/AvroGenericEncryption.csproj b/examples/AvroGenericEncryption/AvroGenericEncryption.csproj index 81ece2c64..b018e4dc9 100644 --- a/examples/AvroGenericEncryption/AvroGenericEncryption.csproj +++ b/examples/AvroGenericEncryption/AvroGenericEncryption.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/AvroGenericMigration/AvroGenericMigration.csproj b/examples/AvroGenericMigration/AvroGenericMigration.csproj index 71fdd73e8..ea5d13796 100644 --- a/examples/AvroGenericMigration/AvroGenericMigration.csproj +++ b/examples/AvroGenericMigration/AvroGenericMigration.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/AvroSpecific/AvroSpecific.csproj b/examples/AvroSpecific/AvroSpecific.csproj index 487986f61..354c68d7a 100644 --- a/examples/AvroSpecific/AvroSpecific.csproj +++ b/examples/AvroSpecific/AvroSpecific.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/AvroSpecificEncryption/AvroSpecificEncryption.csproj b/examples/AvroSpecificEncryption/AvroSpecificEncryption.csproj index 6ed430924..4c26be01d 100644 --- a/examples/AvroSpecificEncryption/AvroSpecificEncryption.csproj +++ b/examples/AvroSpecificEncryption/AvroSpecificEncryption.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/Configuration/Configuration.csproj b/examples/Configuration/Configuration.csproj index 6053e7760..fd9c9827b 100644 --- a/examples/Configuration/Configuration.csproj +++ b/examples/Configuration/Configuration.csproj @@ -8,7 +8,7 @@ - + diff --git a/examples/ConfluentCloud/ConfluentCloud.csproj b/examples/ConfluentCloud/ConfluentCloud.csproj index 3c3ff626a..afa125d29 100644 --- a/examples/ConfluentCloud/ConfluentCloud.csproj +++ b/examples/ConfluentCloud/ConfluentCloud.csproj @@ -7,7 +7,7 @@ - + diff --git a/examples/Consumer/Consumer.csproj b/examples/Consumer/Consumer.csproj index a4eb94438..879f5a5e6 100755 --- a/examples/Consumer/Consumer.csproj +++ b/examples/Consumer/Consumer.csproj @@ -8,7 +8,7 @@ - + diff --git a/examples/ExactlyOnce/ExactlyOnce.csproj b/examples/ExactlyOnce/ExactlyOnce.csproj index a34e6b346..13c42f7c9 100644 --- a/examples/ExactlyOnce/ExactlyOnce.csproj +++ b/examples/ExactlyOnce/ExactlyOnce.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/ExactlyOnceOldBroker/ExactlyOnceOldBroker.csproj b/examples/ExactlyOnceOldBroker/ExactlyOnceOldBroker.csproj index 975e034d7..a1df99160 100644 --- a/examples/ExactlyOnceOldBroker/ExactlyOnceOldBroker.csproj +++ b/examples/ExactlyOnceOldBroker/ExactlyOnceOldBroker.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/JsonEncryption/JsonSerializationEncryption.csproj b/examples/JsonEncryption/JsonSerializationEncryption.csproj index d010f13ee..4dc610b9c 100644 --- a/examples/JsonEncryption/JsonSerializationEncryption.csproj +++ b/examples/JsonEncryption/JsonSerializationEncryption.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/JsonSerialization/JsonSerialization.csproj b/examples/JsonSerialization/JsonSerialization.csproj index 15fbc8282..b6cb9a61c 100644 --- a/examples/JsonSerialization/JsonSerialization.csproj +++ b/examples/JsonSerialization/JsonSerialization.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/JsonWithReferences/JsonWithReferences.csproj b/examples/JsonWithReferences/JsonWithReferences.csproj index b50db9dfa..59004d691 100644 --- a/examples/JsonWithReferences/JsonWithReferences.csproj +++ b/examples/JsonWithReferences/JsonWithReferences.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/MultiProducer/MultiProducer.csproj b/examples/MultiProducer/MultiProducer.csproj index 5a9b1fd90..4d293ebfe 100644 --- a/examples/MultiProducer/MultiProducer.csproj +++ b/examples/MultiProducer/MultiProducer.csproj @@ -8,7 +8,7 @@ - + diff --git a/examples/OAuthConsumer/OAuthConsumer.csproj b/examples/OAuthConsumer/OAuthConsumer.csproj index b6895d50d..066670c61 100644 --- a/examples/OAuthConsumer/OAuthConsumer.csproj +++ b/examples/OAuthConsumer/OAuthConsumer.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/OAuthOIDC/OAuthOIDC.csproj b/examples/OAuthOIDC/OAuthOIDC.csproj index 6a49daba0..c3e466fe9 100644 --- a/examples/OAuthOIDC/OAuthOIDC.csproj +++ b/examples/OAuthOIDC/OAuthOIDC.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/OAuthProducer/OAuthProducer.csproj b/examples/OAuthProducer/OAuthProducer.csproj index 79f75c9bf..4921cf949 100644 --- a/examples/OAuthProducer/OAuthProducer.csproj +++ b/examples/OAuthProducer/OAuthProducer.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/Producer/Producer.csproj b/examples/Producer/Producer.csproj index 840d44e22..b1d0aa813 100755 --- a/examples/Producer/Producer.csproj +++ b/examples/Producer/Producer.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/Protobuf/Protobuf.csproj b/examples/Protobuf/Protobuf.csproj index 656c2110b..18dd528e8 100644 --- a/examples/Protobuf/Protobuf.csproj +++ b/examples/Protobuf/Protobuf.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/ProtobufEncryption/ProtobufEncryption.csproj b/examples/ProtobufEncryption/ProtobufEncryption.csproj index f7311114e..e627bfc1e 100644 --- a/examples/ProtobufEncryption/ProtobufEncryption.csproj +++ b/examples/ProtobufEncryption/ProtobufEncryption.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/TlsAuth/TlsAuth.csproj b/examples/TlsAuth/TlsAuth.csproj index c0585eb6d..13b2e938b 100644 --- a/examples/TlsAuth/TlsAuth.csproj +++ b/examples/TlsAuth/TlsAuth.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/Web/Web.csproj b/examples/Web/Web.csproj index 39f5924dd..6579ca402 100644 --- a/examples/Web/Web.csproj +++ b/examples/Web/Web.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/Confluent.Kafka/Config_gen.cs b/src/Confluent.Kafka/Config_gen.cs index 14e3d97c7..2ce1db30a 100644 --- a/src/Confluent.Kafka/Config_gen.cs +++ b/src/Confluent.Kafka/Config_gen.cs @@ -1,4 +1,4 @@ -// *** Auto-generated from librdkafka v2.5.0-RC5 *** - do not modify manually. +// *** Auto-generated from librdkafka v2.5.0 *** - do not modify manually. // // Copyright 2018-2022 Confluent Inc. // diff --git a/src/Confluent.Kafka/Confluent.Kafka.csproj b/src/Confluent.Kafka/Confluent.Kafka.csproj index 41877055e..25f0f6e28 100644 --- a/src/Confluent.Kafka/Confluent.Kafka.csproj +++ b/src/Confluent.Kafka/Confluent.Kafka.csproj @@ -16,7 +16,7 @@ README.md Confluent.Kafka Confluent.Kafka - 2.5.0-RC5 + 2.5.0 netstandard2.0;netstandard1.3;net462;net6.0 true true diff --git a/src/Confluent.Kafka/ErrorCode.cs b/src/Confluent.Kafka/ErrorCode.cs index ddbdc0141..344ff6623 100644 --- a/src/Confluent.Kafka/ErrorCode.cs +++ b/src/Confluent.Kafka/ErrorCode.cs @@ -335,6 +335,12 @@ public enum ErrorCode /// Local_LogTruncation = -139, + /// + /// A different record in the batch was invalid + /// and this message failed persisting + /// + Local_InvalidDifferentRecord = -138, + /// /// Unknown broker error /// @@ -834,7 +840,46 @@ public enum ErrorCode /// /// Request principal deserialization failed during forwarding. /// - PrincipalDeserializationFailure = 97 + PrincipalDeserializationFailure = 97, + + /// + /// Unknown Topic Id. + /// + UnknownTopicId = 100, + + /// + /// The member epoch is fenced by the group coordinator. + /// + FencedMemberEpoch = 110, + + /// + /// The instance ID is still used by another member in the + /// consumer group. + /// + UnreleasedInstanceId = 111, + + /// + /// The assignor or its version range is not supported by + /// the consumer group. + /// + UnsupportedAssignor = 112, + + /// + /// The member epoch is stale. + /// + StaleMemberEpoch = 113, + + /// + /// Client sent a push telemetry request with an invalid or outdated + /// subscription ID. + /// + UnknownSubscriptionId = 117, + + /// + /// Client sent a push telemetry request larger than the maximum size + /// the broker will accept. + /// + TelemetryTooLarge = 118, }; /// diff --git a/src/Confluent.SchemaRegistry.Encryption.Aws/Confluent.SchemaRegistry.Encryption.Aws.csproj b/src/Confluent.SchemaRegistry.Encryption.Aws/Confluent.SchemaRegistry.Encryption.Aws.csproj index 5d4b4db7b..b24554259 100644 --- a/src/Confluent.SchemaRegistry.Encryption.Aws/Confluent.SchemaRegistry.Encryption.Aws.csproj +++ b/src/Confluent.SchemaRegistry.Encryption.Aws/Confluent.SchemaRegistry.Encryption.Aws.csproj @@ -15,7 +15,7 @@ Confluent.SchemaRegistry.Encryption.Aws Confluent.SchemaRegistry.Encryption.Aws Confluent.SchemaRegistry.Encryption.Aws - 2.5.0-RC5 + 2.5.0 netcoreapp3.1;net6.0 true true diff --git a/src/Confluent.SchemaRegistry.Encryption.Azure/Confluent.SchemaRegistry.Encryption.Azure.csproj b/src/Confluent.SchemaRegistry.Encryption.Azure/Confluent.SchemaRegistry.Encryption.Azure.csproj index 33ea45fc9..ace84ae27 100644 --- a/src/Confluent.SchemaRegistry.Encryption.Azure/Confluent.SchemaRegistry.Encryption.Azure.csproj +++ b/src/Confluent.SchemaRegistry.Encryption.Azure/Confluent.SchemaRegistry.Encryption.Azure.csproj @@ -15,7 +15,7 @@ Confluent.SchemaRegistry.Encryption.Azure Confluent.SchemaRegistry.Encryption.Azure Confluent.SchemaRegistry.Encryption.Azure - 2.5.0-RC5 + 2.5.0 netcoreapp3.1;net6.0 true true diff --git a/src/Confluent.SchemaRegistry.Encryption.Gcp/Confluent.SchemaRegistry.Encryption.Gcp.csproj b/src/Confluent.SchemaRegistry.Encryption.Gcp/Confluent.SchemaRegistry.Encryption.Gcp.csproj index 3690b02c8..11ceb3617 100644 --- a/src/Confluent.SchemaRegistry.Encryption.Gcp/Confluent.SchemaRegistry.Encryption.Gcp.csproj +++ b/src/Confluent.SchemaRegistry.Encryption.Gcp/Confluent.SchemaRegistry.Encryption.Gcp.csproj @@ -15,7 +15,7 @@ Confluent.SchemaRegistry.Encryption.Gcp Confluent.SchemaRegistry.Encryption.Gcp Confluent.SchemaRegistry.Encryption.Gcp - 2.5.0-RC5 + 2.5.0 netcoreapp3.1;net6.0 true true diff --git a/src/Confluent.SchemaRegistry.Encryption.HcVault/Confluent.SchemaRegistry.Encryption.HcVault.csproj b/src/Confluent.SchemaRegistry.Encryption.HcVault/Confluent.SchemaRegistry.Encryption.HcVault.csproj index 08598570f..09dcfa72b 100644 --- a/src/Confluent.SchemaRegistry.Encryption.HcVault/Confluent.SchemaRegistry.Encryption.HcVault.csproj +++ b/src/Confluent.SchemaRegistry.Encryption.HcVault/Confluent.SchemaRegistry.Encryption.HcVault.csproj @@ -15,7 +15,7 @@ Confluent.SchemaRegistry.Encryption.HcVault Confluent.SchemaRegistry.Encryption.HcVault Confluent.SchemaRegistry.Encryption.HcVault - 2.5.0-RC5 + 2.5.0 netcoreapp3.1;net6.0 true true diff --git a/src/Confluent.SchemaRegistry.Encryption/Confluent.SchemaRegistry.Encryption.csproj b/src/Confluent.SchemaRegistry.Encryption/Confluent.SchemaRegistry.Encryption.csproj index 44377cbc8..6fb26ea8d 100644 --- a/src/Confluent.SchemaRegistry.Encryption/Confluent.SchemaRegistry.Encryption.csproj +++ b/src/Confluent.SchemaRegistry.Encryption/Confluent.SchemaRegistry.Encryption.csproj @@ -15,7 +15,7 @@ Confluent.SchemaRegistry.Encryption Confluent.SchemaRegistry.Encryption Confluent.SchemaRegistry.Encryption - 2.5.0-RC5 + 2.5.0 netcoreapp3.1;net6.0 true true diff --git a/src/Confluent.SchemaRegistry.Rules/Confluent.SchemaRegistry.Rules.csproj b/src/Confluent.SchemaRegistry.Rules/Confluent.SchemaRegistry.Rules.csproj index 10d1a6883..d5c198256 100644 --- a/src/Confluent.SchemaRegistry.Rules/Confluent.SchemaRegistry.Rules.csproj +++ b/src/Confluent.SchemaRegistry.Rules/Confluent.SchemaRegistry.Rules.csproj @@ -15,7 +15,7 @@ Confluent.SchemaRegistry.Rules Confluent.SchemaRegistry.Rules Confluent.SchemaRegistry.Rules - 2.5.0-RC5 + 2.5.0 net6.0 true true diff --git a/src/Confluent.SchemaRegistry.Serdes.Avro/Confluent.SchemaRegistry.Serdes.Avro.csproj b/src/Confluent.SchemaRegistry.Serdes.Avro/Confluent.SchemaRegistry.Serdes.Avro.csproj index 5d50901f5..8b0d59035 100644 --- a/src/Confluent.SchemaRegistry.Serdes.Avro/Confluent.SchemaRegistry.Serdes.Avro.csproj +++ b/src/Confluent.SchemaRegistry.Serdes.Avro/Confluent.SchemaRegistry.Serdes.Avro.csproj @@ -15,7 +15,7 @@ Confluent.SchemaRegistry.Serdes.Avro Confluent.SchemaRegistry.Serdes.Avro Confluent.SchemaRegistry.Serdes.Avro - 2.5.0-RC5 + 2.5.0 netstandard2.0;net6.0 true true diff --git a/src/Confluent.SchemaRegistry.Serdes.Json/Confluent.SchemaRegistry.Serdes.Json.csproj b/src/Confluent.SchemaRegistry.Serdes.Json/Confluent.SchemaRegistry.Serdes.Json.csproj index 4e836f641..a2202a271 100644 --- a/src/Confluent.SchemaRegistry.Serdes.Json/Confluent.SchemaRegistry.Serdes.Json.csproj +++ b/src/Confluent.SchemaRegistry.Serdes.Json/Confluent.SchemaRegistry.Serdes.Json.csproj @@ -15,7 +15,7 @@ Confluent.SchemaRegistry.Serdes.Json Confluent.SchemaRegistry.Serdes.Json Confluent.SchemaRegistry.Serdes.Json - 2.5.0-RC5 + 2.5.0 netstandard2.0;net6.0 true true diff --git a/src/Confluent.SchemaRegistry.Serdes.Protobuf/Confluent.SchemaRegistry.Serdes.Protobuf.csproj b/src/Confluent.SchemaRegistry.Serdes.Protobuf/Confluent.SchemaRegistry.Serdes.Protobuf.csproj index 89a44f485..cc54e7bc9 100644 --- a/src/Confluent.SchemaRegistry.Serdes.Protobuf/Confluent.SchemaRegistry.Serdes.Protobuf.csproj +++ b/src/Confluent.SchemaRegistry.Serdes.Protobuf/Confluent.SchemaRegistry.Serdes.Protobuf.csproj @@ -16,7 +16,7 @@ Confluent.SchemaRegistry.Serdes.Protobuf Confluent.SchemaRegistry.Serdes.Protobuf Confluent.SchemaRegistry.Serdes.Protobuf - 2.5.0-RC5 + 2.5.0 netstandard2.0;net6.0 true true diff --git a/src/Confluent.SchemaRegistry/Confluent.SchemaRegistry.csproj b/src/Confluent.SchemaRegistry/Confluent.SchemaRegistry.csproj index b03f5a51a..1a076fa3e 100644 --- a/src/Confluent.SchemaRegistry/Confluent.SchemaRegistry.csproj +++ b/src/Confluent.SchemaRegistry/Confluent.SchemaRegistry.csproj @@ -16,7 +16,7 @@ Confluent.SchemaRegistry Confluent.SchemaRegistry Confluent.SchemaRegistry - 2.5.0-RC5 + 2.5.0 netstandard2.0;net6.0 true true