Skip to content

A deletion releases its source before reattesting - #72

Merged
gedaiu merged 1 commit into
re-devfrom
fix/a-deletion-releases-its-source-before-reattesting
Nov 17, 2026
Merged

gedaiu merged 1 commit into
re-devfrom
fix/a-deletion-releases-its-source-before-reattesting

Conversation

@gedaiu

@gedaiu gedaiu commented Nov 17, 2026

Copy link
Copy Markdown

documents::delete and restore_tx lock the document's sources row first and then recomputed attestation and tidied timelines in the same transaction; for a document that cites many facts that took tens of seconds, and every push to the same source waited on the row (a 34 s delete from a mirror's missing/cleanup held ten pushes on our instance, and the mirror timed out). The recompute now runs as reattest_facts in a transaction of its own that never touches the source row: delete and restore enqueue it with the invalidation, run it right after their commit and remove the unclaimed job, so they still return with attestation current; restore_tx inside a caller's transaction leaves the job to the worker. RC-010 records the decision. Lore: re-cinq/lore#4832.

Signed-off-by: Bogdan Szabo <bogdan@re-cinq.com>
@gedaiu
gedaiu merged commit 76e4cc0 into re-dev Nov 17, 2026
6 checks passed
gedaiu added a commit to re-cinq/lore that referenced this pull request Nov 17, 2026
…e before reattesting (#4852)

Pins the install chart to Utopia `0.1.0-re.35` (index digest
`sha256:737e04c7…fa6c`). re.35 is re-cinq/utopia#72 (RC-010; upstream
deeplethe/utopia#1515): `documents::delete` and `restore` no longer
recompute attestation inside the transaction that holds the source row.
The recompute runs as `reattest_facts` right after the commit, so pushes
to the same source stop timing out behind a long delete. The internal
cluster already runs re.35 (pinned by Utopia's release job).

Closes #4832

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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