You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Transaction commit fails with transaction_conflict (409) when staged rows have relationships to the same row; rollback then fails with "transaction is not ready" #15466
Committing a TablesDB transaction that creates several rows, each with a many-to-one relationship to the same parent row, fails with 409 transaction_conflict. No rows are created. The same flow worked
on previous server versions.
Environment
Appwrite 2.7.1, self-hosted (upgraded from an earlier version (1.9.6); the same code worked before the upgrade)
Reproduced with node-appwrite 22.1.3 and 31.1.0, so it is not SDK-specific
Runtime node-22, requests made with a server API key
Schema (table assignments)
event: relationship, manyToOne to events, one-way, onDelete: cascade
volunteer: relationship, manyToOne to volunteers, one-way, onDelete: cascade
eventId, volunteerId: required strings
Unique index on (eventId, volunteerId)
Steps to reproduce
tablesDB.createTransaction()
tablesDB.createRow({ ..., rowId: 'unique()', data: { event: , eventId: , volunteer: <volunteerId_N>, volunteerId: <volunteerId_N>, ... }, transactionId }) for 3 different
volunteers (staged in parallel or one at a time, same result)
Expected behavior
The commit succeeds, since the rows are new, use distinct volunteers and nothing else touched them. If there were a genuine conflict, the transaction should be left in a state that still accepts
rollback.
The commit fails: AppwriteException, type: transaction_conflict, code: 409, message "The transaction has a conflict. Please resolve the conflict and try again."
None of the 3 rows is created.
A following updateTransaction({ transactionId, rollback: true }) fails with "The transaction is not ready yet. Please try again later.", so the rollback error hides the real commit error unless the
caller logs it first.
🎲 Appwrite version
Different version (specify in environment)
💻 Operating system
Linux
🧱 Your Environment
Environment
Appwrite 2.7.1, self-hosted (upgraded from an earlier version (1.9.6); the same code worked before the upgrade)
Reproduced with node-appwrite 22.1.3 and 31.1.0, so it is not SDK-specific
Runtime node-22, requests made with a server API key
👀 Have you spent some time to check if this issue has been raised before?
Activity