Skip to content

Ancillary Marten store under UseTenantPartitionedEvents (#3021)#3036

Merged
jeremydmiller merged 1 commit into
mainfrom
feat-3021-ancillary-store-partitioning
Jun 5, 2026
Merged

Ancillary Marten store under UseTenantPartitionedEvents (#3021)#3036
jeremydmiller merged 1 commit into
mainfrom
feat-3021-ancillary-store-partitioning

Conversation

@jeremydmiller

Copy link
Copy Markdown
Member

Advances #3021 Phase 1 — test-only, no version bump. Covers the "ancillary stores ([MartenStore])" checklist item.

Coverage

tenant_partitioned_ancillary_store — an ancillary Marten store (AddMartenStore<IPartTenantStore>) configured with Conjoined + Quick + UseTenantPartitionedEvents, alongside a normal main store. A handler tagged [MartenStore(typeof(IPartTenantStore))] gets an ancillary session scoped to the invocation's tenant (via InvokeForTenantAsync), so its append lands in that tenant's partition of the ancillary store and stays isolated — the same stream id is absent from another tenant's partition. Managed tenants are registered on the ancillary store.

Findings

No bug — ancillary stores honor per-tenant partitioning and tenant-scoped session routing.

Verification

Full MartenTests suite 478/478.

🤖 Generated with Claude Code

Test-only. An ancillary Marten store (AddMartenStore<T>) configured with Conjoined + Quick +
UseTenantPartitionedEvents: a handler tagged [MartenStore(typeof(IPartTenantStore))] gets an ancillary
session scoped to the invocation's tenant, so its append lands in that tenant's partition of the
ancillary store and stays isolated from other tenants (same stream id absent from tenant2). Covers the
#3021 Phase-1 "ancillary stores ([MartenStore])" item. Managed tenants registered on the ancillary store.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jeremydmiller jeremydmiller merged commit f9e63f0 into main Jun 5, 2026
24 checks passed
This was referenced Jun 8, 2026
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.

1 participant