NServiceBus.Persistence.CosmosDB 2.0.1 and 1.2.2 – Patch releases available

Hi everyone,

We’ve just released NServiceBus.Persistence.CosmosDB 2.0.1 and 1.2.2.

Fixed bugs

  • #549 Processing a control message causes the outbox to throw a null reference exception

How to know if you are affected

You are affected if:


When the transport receives a control message, the partition key cannot be determined which leads to a NullReferenceException with a stack trace similar to the one below:

      Immediate Retry is going to retry message '14223e81-196b-4ee5-852c-5c5a3626462b\32009' because of an exception:
      System.NullReferenceException: Object reference not set to an instance of an object.
         at NServiceBus.Persistence.CosmosDB.OutboxPersister.SetAsDispatched(String messageId, ContextBag context, CancellationToken cancellationToken) in /_/src/NServiceBus.Persistence.CosmosDB/Outbox/OutboxPersister.cs:line 48
         at NServiceBus.TransportReceiveToPhysicalMessageConnector.<Invoke>d__1.MoveNext() in /_/src/NServiceBus.Core/Pipeline/Incoming/TransportReceiveToPhysicalMessageConnector.cs:line 67

When to upgrade

You should upgrade immediately if you are affected.

Where to get it

You can install the new versions of NServiceBus.Persistence.CosmosDB from NuGet.

With thanks,
The team in Particular

Please read our release policy for more details.