docs(blog): incident report for Prisma reconnect freezing event loop (LIT-2614)#234
Merged
mubashir1osmani merged 1 commit intoMay 27, 2026
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mubashir1osmani
approved these changes
May 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an incident-report blog post for the FLock-reported Prisma reconnect bug. The fix already landed in BerriAI/litellm#26225 (merged April 29, 2026); this is the customer-facing post-mortem requested in LIT-2614.
What the post-mortem covers
await self.db.disconnect()invokes prisma-client-py's synchronoussubprocess.Popen.wait()on the Rust query engine, freezing the asyncio event loop for 30–120+ seconds during DB outages and breaking/health/liveliness— which Kubernetes then misreads as the pod being dead.asyncio.wait_for()did not help: the blocking call has noawaitpoints, so the watchdog timeout could not fire.disconnect()with a directSIGTERM→await asyncio.sleep(0.5)→SIGKILLon the engine subprocess, so the event loop keeps running and reads fromrecreate_prisma_clientmake forward progress./health/livelinessmax latency drops from 10006 ms → 52.7 ms under the same injected slow-close).Files
blog/prisma_reconnect_blocking_incident/index.md— single docusaurus blog entry, slugprisma-reconnect-blocking-incident. Matches the format of the existingblog/httpx_cache_eviction_incident/andblog/vllm_embeddings_incident/entries.Evidence
This is a docs-only PR — no executable surface, so no runtime evidence to capture.
I cross-checked every code path I describe against the merged fix on
BerriAI/litellmmain:_get_engine_pidand_kill_engine_processlive inlitellm/proxy/db/prisma_client.py(lines 123 and 137 on current main).recreate_prisma_client(same file, line 315) calls_kill_engine_processand then constructs a freshPrisma()+connect()— matches the post-mortem's flow diagram.I also pulled the wording of
/health/livelinesssemantics from the existing proxy docs to keep it consistent.Notes for reviewers
PUT /repos/{owner}/{repo}/contents/{path}) rather thangit pushbecause the currentGITHUB_TOKENlacks thereposcope. There is one commit on the branch corresponding to the new file.