GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(reminders): decouple reconciliation barrier from scheduler by ReubenBond · Pull Request #10838 · dotnet/orleans

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Aug 26, 2026 •
edited by dotnet-policy-service Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Problem

The newest reminder-suite recurrence after #10815 timed out at the first queued state snapshot in LocalReminderService.TestOnlyWaitForRangeChangeReconciliation. The test barrier depended on the reminder-service scheduler being available while it was specifically waiting for that service to finish reconciliation, so scheduler or provider pressure could prevent the barrier from observing the task it needed to await.

Solution

Publish range-change generation state under a lock and let the test barrier snapshot that state directly from the calling thread. The barrier continues to follow newer generations, awaits the current reconciliation, and propagates failures from the current generation.

Add a regression test which holds the reminder-service scheduler unavailable and verifies that the reconciliation barrier remains observable.

Rationale

This removes the circular scheduler dependency from the test synchronization boundary while preserving the reminder service's reconciliation behavior and generation supersession guarantees.

Fixes #10499

Microsoft Reviewers: Open in CodeFlow

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot AI lite review requested due to automatic review settings August 26, 2026 09:32
Copilot started reviewing on behalf of ReubenBond August 26, 2026 09:33
View session
Copilot AI reviewed Aug 26, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses reminder-suite test flakiness by removing a circular dependency where the reconciliation test barrier required the reminder service scheduler to be available in order to observe/await reconciliation progress. It does this by publishing range-change reconciliation generation state under a lock so the test barrier can snapshot it from the calling thread, and adds a regression test to validate behavior when the scheduler is intentionally blocked.

Changes:

  • Publish range-change generation/task state under a dedicated lock so the test barrier can read it off-scheduler.
  • Update TestOnlyWaitForRangeChangeReconciliation to use the new locked snapshot approach instead of scheduler-queued snapshots.
  • Add a regression test which blocks the reminder-service scheduler and verifies the barrier remains observable.
Show a summary per file
File Description
test/Orleans.Reminders.Tests/TimerTests/LocalReminderServiceTests.cs Adds a regression test that blocks the reminder service scheduler to prove the reconciliation barrier remains observable.
src/Orleans.Reminders/ReminderService/LocalReminderService.cs Introduces a lock-protected generation/task snapshot for range-change reconciliation and updates the test-only barrier to use it off-scheduler.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/Orleans.Reminders/ReminderService/LocalReminderService.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Aug 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Code coverage

77.57% line coverage - 97,533 / 125,731 lines

Coverage details
  • Source files: 1,660
  • Scope: every CI test matrix job, including providers, CodeGen, .NET 8/10, Linux, Windows, and macOS
  • Sources: maintained repository code under src/ loaded by the complete CI test scope
  • Commit: d99913f4b1
  • View the test run and merged coverage artifact
  • View the coverage reporting run
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot AI review requested due to automatic review settings August 26, 2026 11:09
Copilot started reviewing on behalf of ReubenBond August 26, 2026 11:10
View session
Copilot AI reviewed Aug 26, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ReubenBond

ReubenBond commented Aug 26, 2026

Copy link
Copy Markdown
Member Author

CI is failing on a PR-specific compatibility test: RangeChangeBarrier_StopsWaitingWhenCanceled returns rue after cancellation, failing the immediate Assert.False at LocalReminderServiceTests.cs:317 in run 32961916933. Current main includes #10815 in the same reconciliation area, so I am rebasing this branch and will update the test/implementation as needed before pushing a fresh build.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot AI review requested due to automatic review settings August 26, 2026 14:39
@ReubenBond
ReubenBond force-pushed the rb-issue-10499-azure-reminder-timeouts branch from 9d6539e to 8d7d2da Compare August 26, 2026 14:39
@ReubenBond

ReubenBond commented Aug 26, 2026

Copy link
Copy Markdown
Member Author

Fixed and force-pushed with lease in 8d7d2da. The failure was a publication race: the provider read could report that it was blocked before OnRangeChange published the new reconciliation task, allowing the off-scheduler barrier to observe the previous completed generation. The branch now publishes a proxy reconciliation task before starting provider reads and completes it with the actual refresh task. The three range-change barrier tests pass on net8.0 and net10.0, the cancellation test passed 20/20 stress iterations, and Orleans.slnx builds successfully.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot started reviewing on behalf of ReubenBond August 26, 2026 14:40
View session
Copilot AI reviewed Aug 26, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/Orleans.Reminders/ReminderService/LocalReminderService.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Copilot AI review requested due to automatic review settings August 26, 2026 15:23
Copilot started reviewing on behalf of ReubenBond August 26, 2026 15:24
View session
Copilot AI reviewed Aug 26, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ReubenBond added 4 commits August 26, 2026 08:57
@ReubenBond
fix(test): decouple reminder barrier from scheduler
3c11933
@ReubenBond
fix(reminders): narrow reconciliation barrier lock
1995353
@ReubenBond
fix(reminders): publish reconciliation before reads
2a4d9e9
@ReubenBond
fix(reminders): ignore obsolete reconciliation faults
d99913f
Copilot AI review requested due to automatic review settings August 26, 2026 15:57
@ReubenBond
ReubenBond force-pushed the rb-issue-10499-azure-reminder-timeouts branch from 772c7e0 to d99913f Compare August 26, 2026 15:57
Copilot started reviewing on behalf of ReubenBond August 26, 2026 15:58
View session
Copilot AI reviewed Aug 26, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ReubenBond ReubenBond changed the title fix(test): decouple reminder reconciliation barrier from scheduler fix(reminders): decouple reconciliation barrier from scheduler Aug 26, 2026
@ReubenBond
ReubenBond merged commit 141280d into dotnet:main Aug 26, 2026
76 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@ReubenBond
ReubenBond deleted the rb-issue-10499-azure-reminder-timeouts branch August 26, 2026 18:00
This was referenced Aug 28, 2026
Bump Microsoft.Orleans.Dashboard from 10.2.2 to 10.3.0 csrakowski/FeedManager#20
Merged
Bump Microsoft.Orleans.Persistence.AdoNet from 10.2.2 to 10.3.0 csrakowski/FeedManager#21
Merged
Bump Microsoft.Orleans.Persistence.Memory from 10.2.2 to 10.3.0 csrakowski/FeedManager#22
Closed
This was referenced Sep 9, 2026
Bump Microsoft.Orleans.Clustering.Redis and 4 others IvanMarkitan/dotnet-docs#845
Closed
Bump the dotnet group with 7 updates IvanMarkitan/dotnet-docs#846
Open
Bump the dotnet group with 5 updates BillWagner/docs#9804
Closed
Bump the dotnet group with 4 updates BillWagner/docs#9805
Closed
Bump the dotnet group with 4 updates BillWagner/docs#9806
Closed
Bump the dotnet group with 5 updates BillWagner/docs#9807
Closed
Bump the dotnet group with 7 updates zbalkan/docs#2339
Closed
Bump the dotnet group with 5 updates zbalkan/docs#2340
Closed
Bump the dotnet group with 6 updates zbalkan/docs#2341
Closed
Bump the dotnet group with 10 updates zbalkan/docs#2347
Open
chore(deps): Bump the nuget-patch-and-minor group with 25 updates petesramek/microservices-vs-virtual-actors#9
Closed
chore(deps): Bump Meziantou.Analyzer and 12 others petesramek/microservices-vs-virtual-actors#10
Closed
chore: Bump ManagedCode.Orleans.RateLimiting.Server and 4 others managedcode/Communication#160
Closed
Bump the dotnet group with 4 updates IvanMarkitan/dotnet-docs#869
Open
Bump the dotnet group with 6 updates IvanMarkitan/dotnet-docs#870
Open
Bump the dotnet group with 7 updates IvanMarkitan/dotnet-docs#877
Open
This was referenced Sep 16, 2026
Bump the dotnet group with 7 updates zbalkan/docs#2373
Open
Bump the dotnet group with 5 updates zbalkan/docs#2377
Open
Bump the dotnet group with 6 updates zbalkan/docs#2393
Open
Bump Microsoft.Orleans.Reminders and Microsoft.Orleans.Sdk en-gen/Wayfinder#266
Open
Bump Microsoft.Orleans.Reminders from 10.2.2 to 10.3.1 en-gen/Wayfinder#267
Closed
Bump Microsoft.Orleans.Reminders and Microsoft.Orleans.Reminders.AzureStorage en-gen/Wayfinder#268
Open
chore: Bump the orleans group with 2 updates pathosDev/actor-ts#1607
Closed
chore: Bump the minor-and-patch group with 3 updates pathosDev/actor-ts#1608
Merged
chore(deps): Bump Meziantou.Analyzer and 24 others petesramek/microservices-vs-virtual-actors#12
Merged
Bump Microsoft.Orleans.Streaming from 10.2.0 to 10.3.1 Mystikweb/Orleans.Streams.Confluent#32
Merged
Bump the dotnet group with 7 updates IvanMarkitan/dotnet-docs#999
Closed
This was referenced Sep 23, 2026
Bump the dotnet group with 10 updates zbalkan/docs#2533
Closed
Bump the nuget group with 10 updates dotnet/docs#56226
Merged
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Flaky test: Azure reminder suite times out across multiple cases

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ReubenBond
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.