Skip to content

Release v15.29.7

Choose a tag to compare

@github-actions github-actions released this 19 May 04:36
a9fa615

Summary

WithMongoDB could still fail in single-node replica set Docker setups because Orleans reminders and MongoDB health checks did not consistently use direct-connection-aware client settings. This change makes all Mongo clients configured in WithMongoDB resolve connection settings through the same path.

Added

  • Focused spec coverage ensuring directConnection=true is preserved when building MongoDB client settings in the WithMongoDB path.

Changed

  • WithMongoDB now builds shared MongoClientSettings from the configured connection string and reuses them for:
    • Orleans UseMongoDBClient
    • MongoDB health check client creation
  • This aligns Orleans and health-check behavior with the existing Chronicle storage direct-connection behavior.

Fixed

  • Fixed Orleans reminder connectivity failures against single-node replica sets advertising localhost:27017 when Chronicle connects via service DNS with ?directConnection=true.
var settings = GetMongoClientSettings(server);

builder.SiloBuilder.UseMongoDBClient(_ => settings);

services.AddHealthChecks().AddMongoDb(
    _ => new MongoClient(settings),
    name: "mongodb",
    timeout: TimeSpan.FromSeconds(3));

Removed

  • None.

Security

  • None.

Deprecated

  • None.