NServiceBus 10.2.9: Patch release available

Hi everyone,

We’ve just released NServiceBus 10.2.9.

Fixed bugs

  • #7923 Endpoint shutdown throws FileNotFoundException when a rolling log file is deleted concurrently
  • #7922 Saga correlation id loading falls back to expression compilation instead of using the source-generated correlation accessor

How to know if you are affected

You are affected by #7923 if your NServiceBus 10 endpoint logs during disposal through a static LogManager logger, such as BlobStorageClaimCheck, and runs on a host where the rolling log directory can change or files can be deleted concurrently. This includes Azure App Service recycles, deployments, and slot swaps.

You are affected by #7922 if your endpoint maps saga correlation to a saga-data property (mapper.MapSaga(...).ToMessage(...)) and uses source-generated saga metadata, which is the default. The fix also covers endpoints with multiple saga-data classes that share the same correlation property name and type.

Symptoms

For #7923, endpoint shutdown or host disposal can fail with a FileNotFoundException from the rolling logger when a log file is deleted concurrently. The endpoint may not stop cleanly.

For #7922, the source-generated correlation accessor is not used. Instead, saga correlation lookup compiles and invokes an expression tree at runtime the first time each saga type is used.

When to upgrade

You should upgrade immediately if you are affected by either issue. Otherwise, upgrade during your next maintenance window.

Where to get it

You can install NServiceBus 10.2.9 from NuGet.

Please read our release policy for more details.

With thanks,
The team in Particular