Skip to content

Commit settings changes and their outbox events together - #3732

Merged
pournasserian merged 1 commit into
feature/stabilize-preview-2from
3727-atomic-settings-events
Nov 28, 2026
Merged

pournasserian merged 1 commit into
feature/stabilize-preview-2from
3727-atomic-settings-events

Conversation

@pournasserian

Copy link
Copy Markdown
Member

Closes #3727

What

Commit each settings write, reset or import together with its durable settings.changed event. Prepare protected values and the matching outbox handlers before taking the write lock; save the prepared rows on the mutation context, then invalidate the cache and notify handlers after commit. Other outbox callers keep their existing behavior.

Why

A cancellation or failed outbox insert could leave a committed setting with no event. Resolving plugin handlers inside the transaction would also require a second database connection on a cold cache, which can block a small connection pool.

Dependencies: None. No public API change.

Checklist

  • Linked to the issue and approved stabilization scope.
  • Regression coverage for insert, update, reset, import, stage failure, actor/site attribution, postcommit interruption, conflicts and no-ops. The original implementation failed the five new atomicity assertions as expected.
  • On the revised Windows/SQLite implementation: six event cases, two cold-cache transaction cases, and two reset conflict/no-op cases passed. The two cold-cache cases failed before moving handler lookup.
  • Independent re-review of both provider-specific findings. PostgreSQL and SQL Server execution remains for the full CI data matrix; local validation used SQLite.
  • No tool-generated co-author trailers or footers.

Checkpoint into feature/stabilize-preview-2; leave unmerged for maintainer review.

@pournasserian
pournasserian merged commit bfe425f into feature/stabilize-preview-2 Nov 28, 2026
4 checks passed
@pournasserian
pournasserian deleted the 3727-atomic-settings-events branch November 28, 2026 11:18
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