Skip to content

docs(adr): ADR-0034 robust multi-write transactions (diagnosis + fix plan)#1606

Merged
xuyushun441-sys merged 1 commit into
mainfrom
fix/transaction-multiwrite-deadlock
Jun 6, 2026
Merged

docs(adr): ADR-0034 robust multi-write transactions (diagnosis + fix plan)#1606
xuyushun441-sys merged 1 commit into
mainfrom
fix/transaction-multiwrite-deadlock

Conversation

@xuyushun441-sys
Copy link
Copy Markdown
Contributor

Foundation for #1603/#1604. Documents the multi-write transaction deadlock (knex+sqlite single-connection contention: internal queries during a write don't reuse the transaction's connection) and the fix: AsyncLocalStorage ambient transaction + per-transaction connection, with a cross-driver multi-write test plan. Also notes driver-sql already has a persistent atomic sequence, so #1603 consolidates rather than rebuilds. Docs-only.

🤖 Generated with Claude Code

…ion)

Diagnoses the multi-write transaction deadlock found while implementing the
cross-object atomic batch (#1604): knex+sqlite single-connection contention
because internal queries during a write don't reuse the transaction's
connection. Specifies the fix (AsyncLocalStorage ambient transaction +
per-transaction connection), notes driver-sql already has a persistent
sequence (so #1603 consolidates rather than rebuilds), and a cross-driver
multi-write test plan. Foundation for #1603/#1604.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@xuyushun441-sys xuyushun441-sys merged commit e948473 into main Jun 6, 2026
1 of 2 checks passed
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Building Building Preview, Comment Jun 6, 2026 7:02am

Request Review

@xuyushun441-sys xuyushun441-sys deleted the fix/transaction-multiwrite-deadlock branch June 6, 2026 07:02
@github-actions github-actions Bot added documentation Improvements or additions to documentation size/m labels Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants