Repository navigation
feat: let a host wait for its own write - #212
Merged
Merged
Conversation
… mark of no stream
Owner
Author
|
Copilot could not review this PR because the quota is exhausted, so a local review at
Unit 11/11, documentation 792/792, PostgreSQL progress 4/4, gauntlet green. |
This was referenced Oct 23, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this changes
A host can take a mark of the streams it just wrote and wait only for the partitions those streams fall into, rather than for the projection to catch up with the whole store.
IProjectionProgress.MarkAsync(IEnumerable<Guid> streamIds, CancellationToken)(new overload). It returns the committed head of each touched partition and0for every other partition.WaitAsyncalready treats a partition at0as reached, so it needs no change, and a partition that lags or is stopped elsewhere does not hold the wait up. Within a touched partition the reader still passes every earlier entry, as it has to.llms.txt, andCHANGELOG.md.The first commit archives
let-heavy-work-wait-without-losing-attempts(#211).Implements the OpenSpec change
let-a-host-wait-for-its-own-write(approved). It adds A host can wait until a projection has applied its own write toorleans-execution.Why
A consumer (finding SF-011) waits after setting a connection. With the whole-store mark, that wait grows with unrelated write traffic, and at its bound the consumer answers without the guarantee. The narrower mark was listed as deferred when the wait shipped in 4.4.6.
How it was verified
Stratara.Testing.Orleans.Tests(SQLite, portable reader):Stalled, naming that partition;Stratara.Orleans.IntegrationTests(PostgreSQL, native reader): the same own-write-versus-stopped-partition case, plus the existing progress tests. 4/4 pass../scripts/local-gauntlet.shpasses