Skip to content

GH-1293 Public read-only check for SubscribeFromPriorVersionMark(); 3.15.2 - #1295

Merged
jeremydmiller merged 1 commit into
mainfrom
gh-1293-prior-version-mark
Nov 24, 2026
Merged

jeremydmiller merged 1 commit into
mainfrom
gh-1293-prior-version-mark

Conversation

@jeremydmiller

Copy link
Copy Markdown
Member

Closes #1293.

Marten (JasperFx/marten#6197, for marten#6186) has to refuse SubscribeFromPriorVersionMark() on a projection whose new version writes to an empty table, since Marten doesn't run backfills. Today it finds out by reflecting over AsyncOptions._strategies and matching the internal strategy type by name. That check stops refusing silently if either name changes.

New, additive, read-only members on AsyncOptions:

  • bool StartsFromPriorVersionMark: true when SubscribeFromPriorVersionMark() was called for any database.
  • string? PriorVersionMarkBackfillName(string? databaseIdentifier = null): the backfill name that decides where the projection starts, or null. With a database identifier it resolves the way the daemon does, so a rule for that database wins over the every-database rule. Without one, only the every-database rule counts.

Also in this PR: JasperFxVersion goes to 3.15.2, so it ships straight after merge. Marten #6197, Polecat and Fisher can then use it instead of reflection.

Tests: 5 new facts in PriorVersionMarkTests, covering none, every database, one database, a database rule overriding the every-database rule, and another strategy. EventTests passes 4426/4426 on net10.0.

🤖 Generated with Claude Code

…on starts from the prior version mark; 3.15.2

StartsFromPriorVersionMark and PriorVersionMarkBackfillName(databaseIdentifier) are public and read-only, so a store
that can't run backfills can refuse SubscribeFromPriorVersionMark() without reflecting over the private strategy list.

Closes #1293.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose whether AsyncOptions.SubscribeFromPriorVersionMark() was configured

1 participant