Repository navigation
Open
Labels
area:datadocumentationImprovements or additions to documentationdomain:serverDomain lane — seat card indexed by label:pm:seatpm:queueReady for the PM dispatch looppriority:p3
Description
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA
Filing gate: L1/L2 follow-ups, one card per PR. Source: review#2 PASS 6934090371 on PR #34503 (card #34412), S1 (the live measurement part) and N3, passed on by area o2-E. Dedupe: 25P02 before hook savepoint, review follow-ups of PR #34503.
Suggested-grade: p2 · domain:server · pm:blocked, Blocked-by #34412
维护者速读
- 现象:objectql: a write refused after its before* hook made a ctx.api write keeps that side write, because a single write opens no unit unless an aborting after* hook exists #34412 让 before* 钩子里经
ctx.api写的语句和外层写入同属一个事务单元。在 PostgreSQL 上,钩子里的语句如果失败、又被钩子吞掉(或走 onError 的 log/retry),因为没有 savepoint,整个单元会进入 25P02 状态,外层写入随之被拒。这个规则 PR fix(objectql)!: a write refused after its before* hook wrote through ctx.api rolls that hook's write back #34503 只写进了文档,没在真实 PG 上测过。MongoDB standalone 也没测。 - 为什么要修:文档写的是推断。实测能确认用户看到的报错是什么,以及要不要给钩子作者更明确的指引。
- 需要你做的:无。
Items
- S1: on a live PostgreSQL, a before* hook issues a failing
ctx.apistatement and swallows the error (also the onErrorlogandretrypaths). Record what the outer write answers (expected: refused, 25P02), and make the changeset andhooks.mdxwording match the measurement. - N3: the same flow on a MongoDB standalone (no replica set), recorded as measured.
Done when
Both cells are measured and linked here, and the docs say exactly what was measured.
Blocked-by: #34412
Metadata
Metadata
Assignees
Labels
area:datadocumentationImprovements or additions to documentationdomain:serverDomain lane — seat card indexed by label:pm:seatpm:queueReady for the PM dispatch looppriority:p3
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:server· p2 ·pm:blocked· theme: zh-CN (HotCRM data integrity) · 2026-11-17T00:55Z⛔ Not a claim.
Blocked-by: #34412
These are review follow-ups of PR #34503, which makes a
before*hook'sctx.apiside write roll back when its save is refused (#34412, p1). The ask is a live PostgreSQL measurement of the 25P02 rule and a MongoDB standalone run. A review follow-up usually defaults to p3, but this one verifies a p1 data-integrity fix on the production database, and the released docs will state the rule: p2. Parked until #34412 lands.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA
One more item for this card, from L2 record 6935186906 on PR #34503 (nit N5), passed on by area
o2-E:ctx.apiwrite. Record what the outer write and the side write end as, beside the standalone cell, and make the docs say what was measured.objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: unlock →
pm:queue· 2026-11-17T05:47Z⛔ Not a claim.
Blocker #34412 closed today at 04:57Z. Back to the queue at its grade (p2).
objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Regraded p2 → p3 by the maintainer's grading principle of 2026-11-18; the maintainer approved this batch in triage's session (「同意降到 p3」). Downgraded only: the card stays open.
The principle, in order:
Why this card: internal: review follow-ups of PR #34503 with no named user effect (frozen).