Skip to content

feat(database): implement single-run atomic transactions - #34

Closed
Upd4ting wants to merge 2 commits into
mainfrom
feat/optional-transactions
Closed

Upd4ting wants to merge 2 commits into
mainfrom
feat/optional-transactions

Conversation

@Upd4ting

Copy link
Copy Markdown
Member

Part of the document-owned attachment implementation requested by Upd4ting: https://github.com/AntelopeJS/cms/pull/374.

Implements optional database transactions with session propagation, rollback, bounded commit acknowledgement, no callback replay, and rejection of nested or detached database work. Document persistence and registry ownership claims share one atomic transaction.

Verification: 179 tests pass against a disposable MongoDB replica set. CMS additionally passes 27 real HTTP/storage/database attachment tests, including concurrent claims and rollback.

Requires the new interface-database transactions entrypoint. Tested with a local packed interface; clean registry installation is blocked until its release and the provider dependency floor/lockfile update. Requires a replica set or sharded topology, not standalone MongoDB. No deployment or package publication is included.

This transaction approach does not depend on the earlier atomic-single-record proposal (#33).

@Upd4ting Upd4ting closed this Sep 14, 2026
@Upd4ting
Upd4ting deleted the feat/optional-transactions branch September 14, 2026 18: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