model-writtenrun 3376 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin traced intermittent subscription-test failures to FetchTableStates() overwriting an invalidation received while rebuilding its table list, and supplied a reliable reproduction using an injected delay in #1.
- Vignesh reproduced the failure and proposed counting invalidations in #2, but Hou explained that a single rebuild should consume accumulated invalidations and recommended a tri-state cache protocol in #3.
- Vignesh tried marking the boolean valid before rebuilding in #4; Hou objected that an error could leave an incomplete cache marked valid in #5, leading to the tri-state implementation in #6.
- While testing the tri-state fix, Alexander found a separate launcher race that delayed worker startup by roughly three minutes because WaitForReplicationWorkerAttach() consumed a wakeup intended for ApplyLauncherMain(), while also approving both cache-fix alternatives in #7.
- Vignesh added a launcher fix in #8, but Alexander demonstrated that subscription-creation wakeups could still be lost in #9; Vignesh then removed latch resetting from the attachment wait in #10, and Alexander reported successful repeated subscription-suite tests in #11.
- Ajin verified the cache fix and suggested renaming its enum-valued variable to table_states_validity in #13, which Vignesh incorporated in #14.
- Hou approved the cache patch but suggested waking the launcher when a worker attaches in #15; Vignesh explained that the shared latch could still consume unrelated notifications in #16.
- Amit questioned the launcher solution and suggested a condition variable in #18, separately approved the cache fix for backpatching in #19, and directed the launcher improvement toward a separate development-only discussion in #20.
- Vignesh supplied cache-only patches for master/PG16 and PG15 in #21, explaining that the relevant invalidation path through HasSubscriptionRelations() did not exist in PG14 and older releases; Hou verified application, the fix, and regression tests across the target branches in #22.
- Amit announced the push in #23: aa79bde725 is the development-branch landing and 28a8cc457b is its PG15 counterpart, both attributable to #21 and preserving the previously inspected tri-state implementation.
- Vignesh moved the unresolved launcher work to a new thread in #24 and marked the cache-fix Commitfest entry committed in #25, leaving the cache bug resolved and the launcher redesign outside this thread.