Skip to content

fix(capture): serialize parallel adds to one externalRef - #67

Merged
TheGreatAxios merged 1 commit into
cl-9426-memory-deleting-a-principal-must-not-delete-the-memoryfrom
cl-9428-memory-serialize-concurrent-adds-with-the-same-externalref
Sep 27, 2026
Merged

TheGreatAxios merged 1 commit into
cl-9426-memory-deleting-a-principal-must-not-delete-the-memoryfrom
cl-9428-memory-serialize-concurrent-adds-with-the-same-externalref

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Closes CL-9428

Capture read the active version and inserted the next one with no lock, so parallel adds to the same externalRef failed on the version unique index. A transaction-scoped advisory lock on (tenant, adapter, externalRef) now orders them into sequential versions.

Capture read the active version and inserted the next one with no lock, so parallel adds to the same externalRef failed on the version unique index. A transaction-scoped advisory lock on (tenant, adapter, externalRef) now orders them into sequential versions.
@TheGreatAxios
TheGreatAxios added this pull request to stack #69 September 27, 2026 18:34
@TheGreatAxios
TheGreatAxios merged commit d640386 into main Sep 27, 2026
2 checks passed
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