Skip to content

docs(flow): onConflict:fail IS a lock now — the warning saying otherwise is stale - #2233

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/objectwrite-onconflict-is-now-a-lock
Jul 31, 2026
Merged

docs(flow): onConflict:fail IS a lock now — the warning saying otherwise is stale#2233
rubenvdlinde merged 1 commit into
developmentfrom
fix/objectwrite-onconflict-is-now-a-lock

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

ObjectWriteNode's docblock still carried:

⚠️ NOT YET SAFE FOR MUTUAL EXCLUSION — openregister#2212. The underlying guard is a check followed by a write, so concurrent flow runs can all pass the check and several succeed.

That was true of #2212 and stopped being true at #2215, where the database arbitrates through the _uuid unique constraint and the losing writer is told.

Re-measured through this node, not inherited from the fix's PR

Twelve simultaneous flow runs claiming one identifier:

1 completed / 11 stopped
each loser: An object with identifier "…" already exists
exactly ONE row in the table

Why a stale comment mattered here more than usual

It sat on the one primitive hydra's per-issue lock needs. hydra-flows-first-port task 3.1 records per-issue locking as having "no node equivalent" — and this warning is what would stop somebody building it. The capability had been there since #2215; only the documentation said otherwise.

…ise is stale

`ObjectWriteNode`'s docblock still carried:

  ⚠️ NOT YET SAFE FOR MUTUAL EXCLUSION — openregister#2212. The underlying
  guard is a check followed by a write, so concurrent flow runs can all pass
  the check and several succeed.

That was true of #2212 and stopped being true at #2215, where the database
arbitrates through the `_uuid` unique constraint and the losing writer is told.

Re-measured through THIS node rather than inherited from the fix's own PR:
twelve simultaneous flow runs claiming one identifier produced

    1 completed / 11 stopped
    each loser: An object with identifier "…" already exists
    exactly ONE row in the table

The stale warning mattered more than a stale comment usually does. It sat on the
one primitive hydra's per-issue lock needs — `hydra-flows-first-port` task 3.1
records per-issue locking as having "no node equivalent" — and it said precisely
the thing that would stop somebody building it.
@rubenvdlinde
rubenvdlinde merged commit 1af5e3c into development Jul 31, 2026
25 checks passed
@rubenvdlinde
rubenvdlinde deleted the fix/objectwrite-onconflict-is-now-a-lock branch July 31, 2026 14:50
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/openregister @ da91b63

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer ✅ 174/174
npm ✅ 616/616
PHPUnit
Newman
Playwright ⏭️

Quality workflow — 2026-07-31 14:51 UTC

Download the full PDF report from the workflow artifacts.

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