Repository navigation
fix(journaling): activate configured journal providers - #11289
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Add the missing GrainJournaling entry to the configuration guide.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Activates configured grain-journaling providers through the silo configuration pipeline.
Changes:
- Applies the
Orleans:GrainJournalingconfiguration section. - Adds provider activation and diagnostic test coverage.
| File | Description |
|---|---|
test/Orleans.Core.Tests/ProviderErrorMessageTests.cs |
Tests provider activation, configuration values, and diagnostics. |
src/Orleans.Runtime/Hosting/DefaultSiloServices.cs |
Enables configured grain-journaling provider processing. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
||
| ApplySubsection(builder, cfg, knownProviderTypes, "Clustering"); | ||
| ApplySubsection(builder, cfg, knownProviderTypes, "Reminders"); | ||
| ApplySubsection(builder, cfg, knownProviderTypes, "GrainJournaling"); |
abc77e7 to
fba0bbb
Compare
Move independent NATS producer selection and dimension validation to dotnet#11287 and dotnet#11293. Move standalone redaction, credential, and journaling regression coverage to dotnet#11288, dotnet#11289, dotnet#11291, and dotnet#11292; move the independent DynamoDB README recipes to dotnet#11292. Retain Token redaction, credential binding and endpoint behavior, journaling activation, and NATS credential-safe logging as prerequisites until dotnet#11288, dotnet#11290, dotnet#11292, dotnet#11289, and dotnet#11291 are merged by humans. The original PR remains focused on Aspire configuration, resource ownership, and integration coverage.
Move independent NATS producer selection and dimension validation to dotnet#11287 and dotnet#11293. Move standalone redaction, credential, and journaling regression coverage to dotnet#11288, dotnet#11289, dotnet#11291, and dotnet#11292; move the independent DynamoDB README recipes to dotnet#11292. Retain Token redaction, credential binding and endpoint behavior, journaling activation, and NATS credential-safe logging as prerequisites until dotnet#11288, dotnet#11290, dotnet#11292, dotnet#11289, and dotnet#11291 are merged by humans. The original PR remains focused on Aspire configuration, resource ownership, and integration coverage.
Code coverage
Report-only conclusion: current-main baseline stale. The newest successful coverage run tested 2e40fa8, not current main 7d3b28d. Coverage combines every CI test matrix job, including providers, CodeGen, .NET 8/10, Linux, Windows, and macOS, using canonical physical source and branch identities. The comparison remains report-only while normal line and branch variance is calibrated. Coverage details |
Carry the finalized Journal naming prerequisite from dotnet#11289 and align Aspire resource emissions, provider aliases, activation coverage, and documentation. Preserve the standalone core-test split boundary and existing public package/API names. Original-commit: 42c3a0c
(cherry picked from commit f3b0376)
42c3a0c to
df616cc
Compare
Move independent NATS producer selection and dimension validation to dotnet#11287 and dotnet#11293. Move standalone redaction, credential, and journaling regression coverage to dotnet#11288, dotnet#11289, dotnet#11291, and dotnet#11292; move the independent DynamoDB README recipes to dotnet#11292. Retain Token redaction, credential binding and endpoint behavior, journaling activation, and NATS credential-safe logging as prerequisites until dotnet#11288, dotnet#11290, dotnet#11292, dotnet#11289, and dotnet#11291 are merged by humans. The original PR remains focused on Aspire configuration, resource ownership, and integration coverage.
Carry the finalized Journal naming prerequisite from dotnet#11289 and align Aspire resource emissions, provider aliases, activation coverage, and documentation. Preserve the standalone core-test split boundary and existing public package/API names. Original-commit: 42c3a0c
Carry the ApplyNamedSubsections prerequisite from dotnet#11289. Emit explicit Default and named Journal entries, preserve independent backend options, and update compiled examples and configuration guidance. Original-commit: df616cc
Move independent NATS producer selection and dimension validation to dotnet#11287 and dotnet#11293. Move standalone redaction, credential, and journaling regression coverage to dotnet#11288, dotnet#11289, dotnet#11291, and dotnet#11292; move the independent DynamoDB README recipes to dotnet#11292. Retain Token redaction, credential binding and endpoint behavior, journaling activation, and NATS credential-safe logging as prerequisites until dotnet#11288, dotnet#11290, dotnet#11292, dotnet#11289, and dotnet#11291 are merged by humans. The original PR remains focused on Aspire configuration, resource ownership, and integration coverage.
Carry the finalized Journal naming prerequisite from dotnet#11289 and align Aspire resource emissions, provider aliases, activation coverage, and documentation. Preserve the standalone core-test split boundary and existing public package/API names. Original-commit: 42c3a0c
Carry the ApplyNamedSubsections prerequisite from dotnet#11289. Emit explicit Default and named Journal entries, preserve independent backend options, and update compiled examples and configuration guidance. Original-commit: df616cc
Carry the finalized Journaling subsection and internal builder naming from dotnet#11289 while preserving Default and named bindings, Aspire aliases, and the standalone core-test boundary. Original-commit: febff2c
Move independent NATS producer selection and dimension validation to dotnet#11287 and dotnet#11293. Move standalone redaction, credential, and journaling regression coverage to dotnet#11288, dotnet#11289, dotnet#11291, and dotnet#11292; move the independent DynamoDB README recipes to dotnet#11292. Retain Token redaction, credential binding and endpoint behavior, journaling activation, and NATS credential-safe logging as prerequisites until dotnet#11288, dotnet#11290, dotnet#11292, dotnet#11289, and dotnet#11291 are merged by humans. The original PR remains focused on Aspire configuration, resource ownership, and integration coverage.
Carry the finalized Journaling subsection and internal builder naming from dotnet#11289 while preserving Default and named bindings, Aspire aliases, and the standalone core-test boundary. Original-commit: febff2c

Problem
Silo configuration skips journal providers, leaving configured journal storage inactive. Applications using multiple journal storage bindings need configuration to select and configure each provider independently.
Solution
Apply
Orleans:Journaling:{name}through the existingApplyNamedSubsectionspipeline used by named storage and streaming providers. Each entry selects itsProviderTypeand passes its name and configuration section to the registered provider builder. TheDefaultentry configures grain journaling; additional names configure separate journal storage bindings.ServiceKeyselects the client for each entry, and unknown provider types produce the existing diagnostic with available providers.Use
Journalingconsistently as the configuration section and provider registration kind for Azure Blob Storage, Azure Table Storage, and Redis, matching the other subsection names such asStreaming. Align internal builder names, configuration guidance, and focused coverage for single/default and multiple named builder activations, independent section values, unknown-provider diagnostics, and backend registrations. Include a JSON example withDefaultandarchivebindings. Public Journaling APIs and package names retain their existing names.Extracted from #10798 onto
main. The original activation fix is preserved with acherry-pick -xreference to f3b0376 and Reuben Bond's attribution. Follow-ups adopt theJournalingsubsection name and connect named configuration to the storage registration APIs supplied by the already-merged #11275. This is the core prerequisite for #10798's Aspire journal configuration, whose emitted keys use the same named sections.Microsoft Reviewers: Open in CodeFlow