model-writtenrun 6858 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ayush Tiwari proposed clearing FatalError when startup is relaunched to fix smart and fast shutdown hangs before WAL redo, following an earlier suggestion from Noah Misch; the patch also removed special startup-failure handling and added a regression test #1.
- Trakshan Mishra reproduced the hang, verified the initial fix and recovery suite, and identified invariant-placement and test-timeout concerns, while noting that earlier FatalError clearing would also change background-worker startup behavior #2.
- Michael Paquier warned that clearing FatalError early could cause repeated expensive reinitialization and make failure handling depend on child-exit order; Ayush therefore returned to a narrower SIGQUIT shutdown fix, which Michael supported with an initial HEAD-only landing #3 #4 #5.
- Ayush's replacement patch preserved FatalError semantics, routed shutdown through HandleFatalError(), and synchronized the test with the restarted checkpointer; Trakshan verified repeated successful runs, unpatched failures, smart shutdown, and the recovery suite #6 #7.
- Michael supplied the final revision with comments and test refinements, including restoring the default helper timeout, and Ayush approved it after repeated A/B testing #8 #9.
- Michael committed the final attachment unchanged as 12f866cd5f, explaining that alternative flag and state-machine designs added uncertainty and that backpatching would wait because of shutdown risk and the approaching release #10.
- The original report in thread #48825 is also linked by 12f866cd5f, but the committed implementation comes from this thread's later matching attachment #8, superseding that other thread's from_discussion attribution.
- After the commit, Muzzammil Sarwar reported a real-world occurrence and reproductions on stable branches, verified the fix on development and selected stable branches, and renewed the case for backpatching; the thread ends with the fix landed on HEAD and backpatching still unresolved #11.