weichen
dc26321bab
fix(docgov): join ambient uow in persistApproveAndFAV to avoid row-lock deadlock
...
docflow Commands.run takes SELECT ... FOR UPDATE on document_records inside
its unit of work before calling ApproverApprove; persistApproveAndFAV then
opened a second pool connection and its UPDATE blocked on that row lock until
statement timeout (SQLSTATE 57014), failing every final approval. Join the
ambient uow scope (doc sync + FAV staging on the caller tx, commit owned by
the uow); only open an own tx when no scope is present. Regression test
reproduces the production shape (FOR UPDATE + FAV wiring inside Within).
2026-09-26 00:25:01 +00:00
..
2026-09-23 13:25:32 +00:00
2026-09-21 15:11:29 +00:00
2026-09-25 20:17:20 +00:00
2026-09-15 16:20:19 +00:00
2026-09-24 00:56:54 +00:00
2026-09-24 04:18:58 +00:00
2026-09-23 10:11:46 +08:00
2026-09-25 21:01:37 +00:00
2026-09-25 20:14:10 +00:00
2026-09-23 17:40:40 +00:00
2026-09-24 17:04:04 +00:00
2026-09-22 21:44:57 +08:00
2026-09-25 21:01:37 +00:00
2026-09-25 23:14:07 +00:00
2026-09-15 02:40:12 +00:00
2026-09-25 04:45:49 +00:00
2026-09-24 17:04:04 +00:00
2026-09-15 10:24:24 +00:00
2026-09-22 21:40:12 +08:00
2026-09-26 00:25:01 +00:00
2026-09-24 00:45:22 +00:00
2026-09-25 06:52:55 +00:00
2026-09-24 11:44:20 +00:00
2026-09-23 13:57:08 +00:00
2026-09-14 02:30:11 +00:00
2026-09-24 23:21:39 +00:00
2026-09-20 07:04:57 +00:00
2026-09-25 20:14:10 +00:00
2026-09-23 17:40:40 +00:00
2026-09-18 03:40:24 +00:00
2026-09-24 15:53:50 +00:00
2026-09-25 16:33:56 +00:00
2026-09-23 09:55:59 +08:00
2026-09-15 10:29:38 +00:00
2026-09-23 12:49:33 +00:00
2026-09-25 20:14:10 +00:00
2026-09-13 02:50:22 +00:00
2026-09-13 02:50:23 +00:00
2026-09-24 11:49:43 +00:00
2026-09-23 09:52:16 +08:00
2026-09-25 17:10:35 +00:00
2026-09-13 02:50:21 +00:00
2026-09-26 00:22:15 +00:00
2026-09-25 17:10:35 +00:00
2026-09-25 13:17:25 +00:00
2026-09-23 10:22:23 +08:00
2026-09-25 20:14:10 +00:00
2026-09-18 04:02:18 +00:00
2026-09-25 22:56:36 +00:00
2026-09-25 21:01:37 +00:00
2026-09-19 10:50:25 +00:00
2026-09-25 20:14:10 +00:00
2026-09-13 02:50:23 +00:00
2026-09-22 21:44:57 +08:00
2026-09-22 21:44:57 +08:00
2026-09-21 09:11:47 +00:00
2026-09-23 13:25:32 +00:00