model-writtenrun 4671 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported a reproducible assertion during commit of parallel serializable transactions, supplying a four-session isolation test; Thomas Munro confirmed the failure #1 #2.
- Thomas traced the failure to double release of the global xmin reference count and posted a guard plus Alexander's regression test, explaining that count recomputation hid the defect in non-assert builds #3.
- Alexander's stress testing exposed a second assertion involving partially released transactions, so Thomas added a DOOMED check exception; Alexander then reported more than 100 successful iterations apart from a separate read-only anomaly #4 #5 #6.
- Thomas strengthened serializable-parallel-2 to trigger the read-only optimization inside a parallel worker, because its sequential scan had previously triggered the optimization before parallel mode began #7.
- Thomas diagnosed the separate anomaly as an empty possible-conflict list when all writers were doomed and added a second patch that sets RO_SAFE immediately; he preferred this small backpatch over immediate cleanup or simply deleting the assertion #8 #9.
- Alexander endorsed the assertion fix and offered a minimal reproduction for the separate race; with Thomas's agreement, he filed that race as bug #17368 #10 #11 #12.
- After the long gap, Alexander reproduced an assertion again, rebased Thomas's assertion fix, verified that its tests failed without the fix and that check-world passed with it, and requested progress #13.
- Thomas landed the rebased assertion fix with only commit-message clarifications as 47c0accbe0, confirmed the push, and received Alexander's thanks; this was the thread's final exchange #14 #15.
- After the last thread message, the separate race fix landed as 65e388d418, replacing the flag-setting component of #9 with immediate cleanup and moving xmin bookkeeping below the early exit, completing both fixes.