Skip to content

v5.10.1

Choose a tag to compare

@github-actions github-actions released this 02 Dec 05:39
· 21 commits to main since this release
8607fd7

Fixes

  • Fix WithSequenceTimeout accepting a zero or negative timeout, which aborted every chunked message as incomplete: the timeout is now validated, so one longer than Int32.MaxValue milliseconds (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 ProduceTo or UseEndpointResolver
  • Fix WithIncrementalRetryDelay and WithExponentialRetryDelay of 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 SymmetricEncryptStream and SymmetricDecryptStream not releasing their cryptographic resources when disposed
  • Fix Equals of BinaryMessageSerializer and BinaryMessageDeserializer returning true when compared with null
  • 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 an object property
  • Fix the message validation throwing an ArgumentNullException when a nested collection contains a null item
  • Fix the documentation of BrokerClientConnectionOptions.RetryOnFailure, which stated that the connection is retried by default
  • Fix IBrokerClient.ReconnectAsync throwing an OperationCanceledException when the client is disconnected while waiting to retry a failed reconnect
  • Fix a broker client connected while waiting to retry a failed IBrokerClient.ReconnectAsync being 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 PartitionOffsetsProvider when a Kafka consumer endpoint mixes Partition.Any with 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 than Int32.MaxValue milliseconds 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 InvalidOperationException when the Kafka delivery reports are disabled via KafkaProducerConfigurationBuilder.DisableDeliveryReports
  • Fix the MQTT TLS trust chain set via WithTrustChain being ignored
  • Fix the MQTT WebSocket proxy set via UseProxy being ignored
  • Rename the WithPayloadFormatIndicator(string) overload of the MQTT last will message builder, which sets the response topic, to WithResponseTopic
  • 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:// or wss:// URI passed to the MQTT ConnectTo being written to the logs
  • Fix the credentials of the URI passed to the MQTT ConnectTo being sent still percent-encoded, and the password being cut at its first colon
  • Fix the TLS settings configured with EnableTls being discarded when ConnectTo is called afterward with an mqtts:// 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 IProducer Produce throws
  • 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 DbContext has no constructor accepting the connection of the enlisted transaction naming the connection type instead of the DbContext
  • 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, AddMockedMqtt or UseMockedMqtt being ignored when the mock is registered more than once (e.g. via AddMockedKafka and then UseMockedKafka)
  • 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 IProducer Produce, 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 IKafkaConsumer GetOffsetsForTimestamps always 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 ArgumentOutOfRangeException after seeking the mocked Kafka consumer to Offset.Beginning or Offset.End (e.g. via IKafkaConsumer Seek)
  • Fix IKafkaTestingHelper GetConsumerGroup returning an arbitrary consumer group when the group id is used with several bootstrap servers: like GetTopic, it now throws
  • Fix IMqttTestingHelper WaitUntilAllMessagesAreConsumedAsync occasionally returning as if all messages were consumed, instead of throwing the TimeoutException, when the timeout elapses
  • Fix ITestingHelper WaitUntilAllMessagesAreConsumedAsync and IKafkaTestingHelper WaitUntilAllMessagesAreCommittedAsync returning without waiting when passed the name of a producer endpoint with a dynamic topic: they now wait for all topics

See docs for details.