Skip to content

Wolverine.Polecat: inherit DatabaseSchemaName for durability storage (#3175)#3208

Merged
jeremydmiller merged 1 commit into
mainfrom
fix/polecat-schema-default-3175
Jun 23, 2026
Merged

Wolverine.Polecat: inherit DatabaseSchemaName for durability storage (#3175)#3208
jeremydmiller merged 1 commit into
mainfrom
fix/polecat-schema-default-3175

Conversation

@jeremydmiller

Copy link
Copy Markdown
Member

What

Wolverine.Polecat's IntegrateWithWolverine() now defaults the message-durability storage schema to the Polecat store's DatabaseSchemaName when no MessageStorageSchemaName is configured, mirroring Wolverine.Marten.

Why

Marten resolves the message-store schema as:

integration.MessageStorageSchemaName
  ?? runtime.Options.Durability.MessageStorageSchemaName
  ?? store.Options.DatabaseSchemaName   // <-- inherit the document schema
  ?? "public";

Polecat skipped the store.Options.DatabaseSchemaName step and fell straight back to "wolverine". So two Polecat services with distinct document schemas (e.g. polecat_trips / polecat_repair_shop) silently landed in the same durability schema and shared their durability tables — dead letters, node/assignment state, agent-restriction state. (Found via CritterWatch #504.)

This aligns Polecat with Marten: distinct-schema Polecat services are isolated by default; an explicit MessageStorageSchemaName still wins.

Note on TransportSchemaName

The issue also mentions TransportSchemaName, but Polecat's IntegrateWithWolverine doesn't currently configure a SQL Server queue transport (unlike Marten's PostgreSQL transport), so that property is presently vestigial — there's nothing reading it. Only the message-store schema needed the fix. If/when a Polecat queue transport is added, it should inherit DatabaseSchemaName the same way.

Closes #3175

🤖 Generated with Claude Code

…ge (#3175)

Wolverine.Polecat's IntegrateWithWolverine fell back to the "wolverine" schema
for the message-durability store when no MessageStorageSchemaName was set,
ignoring the Polecat store's DatabaseSchemaName. So two Polecat services with
distinct document schemas silently shared the same durability tables (dead
letters, nodes/assignments, agent-restriction state). Wolverine.Marten already
inherits the DocumentStore's DatabaseSchemaName; mirror that for Polecat so
distinct-schema services are isolated by default.

(Polecat's TransportSchemaName is currently vestigial — no SQL Server queue
transport is configured by IntegrateWithWolverine — so only the message-store
schema needed the fix.)

Closes #3175

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

Wolverine.Polecat IntegrateWithWolverine defaults durability to master/wolverine instead of inheriting the Polecat DatabaseSchemaName (Marten does)

1 participant