Ancillary Marten store under UseTenantPartitionedEvents (#3021)#3036
Merged
Conversation
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>
Closed
17 tasks
This was referenced Jun 8, 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.
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 (viaInvokeForTenantAsync), 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