Repository navigation
v5.10.1
Fixes
- Fix
WithSequenceTimeoutaccepting a zero or negative timeout, which aborted every chunked message as incomplete: the timeout is now validated, so one longer thanInt32.MaxValuemilliseconds (about 24.8 days) is rejected as well - Fix the misleading "RawName is null or empty" error thrown when a Kafka or MQTT producer endpoint is configured without calling
ProduceToorUseEndpointResolver - Fix
WithIncrementalRetryDelayandWithExponentialRetryDelayof the outbox worker settings partially applying the retry delay when an argument is rejected - Fix the service scope created to invoke the broker client callbacks or the error policy callbacks not being disposed when the callbacks can't be resolved
- Fix
SymmetricEncryptStreamandSymmetricDecryptStreamnot releasing their cryptographic resources when disposed - Fix
EqualsofBinaryMessageSerializerandBinaryMessageDeserializerreturningtruewhen compared withnull - Fix a stack overflow when validating a message containing a reference cycle (e.g. a child referencing its parent), or containing a multidimensional array or an array of value types (e.g.
Guid[]) in anobjectproperty - Fix the message validation throwing an
ArgumentNullExceptionwhen a nested collection contains anullitem - Fix the documentation of
BrokerClientConnectionOptions.RetryOnFailure, which stated that the connection is retried by default - Fix
IBrokerClient.ReconnectAsyncthrowing anOperationCanceledExceptionwhen the client is disconnected while waiting to retry a failed reconnect - Fix a broker client connected while waiting to retry a failed
IBrokerClient.ReconnectAsyncbeing disconnected and connected again when the retry delay elapsed, which caused an additional rebalance of a Kafka consumer - Fix the underlying Kafka consumer being leaked when connecting failed, the following disconnect failed as well, and the consumer was then connected again
- Fix a broker client disconnected or disposed while connecting (e.g. while reconnecting after an error) staying connected, so that a consumer could keep consuming after the application stopped
- Fix a broker client occasionally being disconnected right after reconnecting, when a previous connect had failed
- Fix the consumer not logging some rollback failures
- Fix the underlying Kafka consumer being leaked, with its threads and broker connections, when connecting fails during the static partition assignment or the subscription
- Fix the misleading error asking for a
PartitionOffsetsProviderwhen a Kafka consumer endpoint mixesPartition.Anywith specific partitions of other topics - Fix the Kafka producer ignoring
KafkaProducerConfigurationBuilder.WithFlushTimeout, which blocked the disconnection up to the message timeout (or forever) when the messages couldn't be delivered: the messages still pending after the flush timeout now fail, and a timeout longer thanInt32.MaxValuemilliseconds is rejected - Fix the Kafka produce operations and callbacks pending when the producer hits a fatal error never completing, which could stall the outbox processing
- Fix publishing a collection of messages, producing with callbacks and producing through the outbox failing with an
InvalidOperationExceptionwhen the Kafka delivery reports are disabled viaKafkaProducerConfigurationBuilder.DisableDeliveryReports - Fix the MQTT TLS trust chain set via
WithTrustChainbeing ignored - Fix the MQTT WebSocket proxy set via
UseProxybeing ignored - Rename the
WithPayloadFormatIndicator(string)overload of the MQTT last will message builder, which sets the response topic, toWithResponseTopic - Fix producing a message with a response topic or correlation data failing with MQTT 3.1.x: like the other headers, they are now sent only with MQTT 5
- Fix the password of a
ws://orwss://URI passed to the MQTTConnectTobeing written to the logs - Fix the credentials of the URI passed to the MQTT
ConnectTobeing sent still percent-encoded, and the password being cut at its first colon - Fix the TLS settings configured with
EnableTlsbeing discarded whenConnectTois called afterward with anmqtts://URI - Fix the MQTT client staying connected without consuming when the subscription fails (e.g. times out): the subscription is now retried until it succeeds
- Fix the MQTT client occasionally staying connected to the broker when disconnected or disposed while connecting or reconnecting, and then not consuming after being connected again
- Fix the MQTT producer hanging, and the client failing to disconnect, after a callback passed to
IProducerProducethrows - Fix a database connection being leaked each time the PostgreSQL or SQLite outbox can't be read, for example because the query times out
- Fix the exception thrown when the
DbContexthas no constructor accepting the connection of the enlisted transaction naming the connection type instead of theDbContext - Fix the mocked schema registry (
UseMockedConfluentSchemaRegistry) not finding the subject associations created with a lifecycle or under a Kafka cluster namespace, so that the serializers fell back to the topic subject - Fix the mocked schema registry accepting a configuration without URL, which the real schema registry client rejects
- Fix the options passed to
AddMockedKafka,UseMockedKafka,AddMockedMqttorUseMockedMqttbeing ignored when the mock is registered more than once (e.g. viaAddMockedKafkaand thenUseMockedKafka) - Fix the mocked Kafka producer failing to produce a message with an empty key
- Fix the mocked Kafka allowing a transaction to begin while another one is pending on the same transactional producer (e.g. concurrent transactions without a unique transactional id suffix), which the real Kafka rejects
- Fix the mocked Kafka producer disconnecting, or committing or aborting the transaction, before invoking the callbacks passed to
IProducerProduce, and reporting as produced the messages still in flight when the transaction is aborted - Fix the mocked Kafka consumer consuming the last message already in the partition when the partition is assigned at
Offset.End - Fix
IKafkaConsumerGetOffsetsForTimestampsalways returning the end offsets with the mocked Kafka, instead of the offsets of the first messages produced at or after the timestamps - Fix the consume failing with an
ArgumentOutOfRangeExceptionafter seeking the mocked Kafka consumer toOffset.BeginningorOffset.End(e.g. viaIKafkaConsumerSeek) - Fix
IKafkaTestingHelperGetConsumerGroupreturning an arbitrary consumer group when the group id is used with several bootstrap servers: likeGetTopic, it now throws - Fix
IMqttTestingHelperWaitUntilAllMessagesAreConsumedAsyncoccasionally returning as if all messages were consumed, instead of throwing theTimeoutException, when the timeout elapses - Fix
ITestingHelperWaitUntilAllMessagesAreConsumedAsyncandIKafkaTestingHelperWaitUntilAllMessagesAreCommittedAsyncreturning without waiting when passed the name of a producer endpoint with a dynamic topic: they now wait for all topics
See docs for details.