Skip to content

fix(journaling): activate configured journal providers - #11289

Merged
ReubenBond merged 6 commits into
dotnet:mainfrom
ReubenBond:rb-fix-journaling-activate-providers
Sep 17, 2026
Merged

ReubenBond merged 6 commits into
dotnet:mainfrom
ReubenBond:rb-fix-journaling-activate-providers

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

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 existing ApplyNamedSubsections pipeline used by named storage and streaming providers. Each entry selects its ProviderType and passes its name and configuration section to the registered provider builder. The Default entry configures grain journaling; additional names configure separate journal storage bindings. ServiceKey selects the client for each entry, and unknown provider types produce the existing diagnostic with available providers.

Use Journaling consistently as the configuration section and provider registration kind for Azure Blob Storage, Azure Table Storage, and Redis, matching the other subsection names such as Streaming. 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 with Default and archive bindings. Public Journaling APIs and package names retain their existing names.

Extracted from #10798 onto main. The original activation fix is preserved with a cherry-pick -x reference to f3b0376 and Reuben Bond's attribution. Follow-ups adopt the Journaling subsection 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

Copilot AI lite review requested due to automatic review settings September 17, 2026 02:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Low severity

Open (1)
What changed in this PR

Activates configured grain-journaling providers through the silo configuration pipeline.

Changes:

  • Applies the Orleans:GrainJournaling configuration 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");
@ReubenBond
ReubenBond force-pushed the rb-fix-journaling-activate-providers branch from abc77e7 to fba0bbb Compare September 17, 2026 02:39
ReubenBond added a commit to ReubenBond/orleans that referenced this pull request Sep 17, 2026
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.
ReubenBond added a commit to ReubenBond/orleans that referenced this pull request Sep 17, 2026
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.
@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Code coverage

Metric Pull request
Lines 82.18% (112,374 / 136,746)
Branches 71.35% (32,327 / 45,305)

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

Copilot AI review requested due to automatic review settings September 17, 2026 03:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved blocking issues were identified.

Review effort: Lite
Findings: 1 Low severity

Open (1)

Copilot AI review requested due to automatic review settings September 17, 2026 06:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain.

Review effort: Lite
Findings: 1 Low severity

Open (1)

ReubenBond added a commit to ReubenBond/orleans that referenced this pull request Sep 17, 2026
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
Copilot AI review requested due to automatic review settings September 17, 2026 14:10
@ReubenBond
ReubenBond force-pushed the rb-fix-journaling-activate-providers branch from 42c3a0c to df616cc Compare September 17, 2026 14:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Add the missing AzureRedisCache alias to the Redis journal builder.

Review effort: Lite
Findings: 1 Low severity

Open (1)

ReubenBond added a commit to ReubenBond/orleans that referenced this pull request Sep 17, 2026
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.
ReubenBond added a commit to ReubenBond/orleans that referenced this pull request Sep 17, 2026
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
ReubenBond added a commit to ReubenBond/orleans that referenced this pull request Sep 17, 2026
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
Copilot AI review requested due to automatic review settings September 17, 2026 14:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The only outstanding finding is a minor documentation consistency nit.

Review effort: Lite
Findings: 1 Low severity

Open (1)

ReubenBond added a commit to ReubenBond/orleans that referenced this pull request Sep 17, 2026
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.
ReubenBond added a commit to ReubenBond/orleans that referenced this pull request Sep 17, 2026
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
ReubenBond added a commit to ReubenBond/orleans that referenced this pull request Sep 17, 2026
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
ReubenBond added a commit to ReubenBond/orleans that referenced this pull request Sep 17, 2026
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
@ReubenBond
ReubenBond merged commit ad71848 into dotnet:main Sep 17, 2026
73 checks passed
@ReubenBond
ReubenBond deleted the rb-fix-journaling-activate-providers branch September 17, 2026 15:31
ReubenBond added a commit to ReubenBond/orleans that referenced this pull request Sep 17, 2026
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.
ReubenBond added a commit to ReubenBond/orleans that referenced this pull request Sep 17, 2026
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
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants