Release v15.29.7
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=trueis preserved when building MongoDB client settings in theWithMongoDBpath.
Changed
WithMongoDBnow builds sharedMongoClientSettingsfrom the configured connection string and reuses them for:- Orleans
UseMongoDBClient - MongoDB health check client creation
- Orleans
- 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:27017when 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.