Repository navigation
GH Issue 1875: Keep diagnostic thread dumps from blocking on locks or connections - #8391
Open
labkey-jeckels wants to merge 5 commits into
Open
labkey-jeckels wants to merge 5 commits into
labkey-jeckels wants to merge 5 commits into
Conversation
… connections Lock-timeout dumps now skip when another dump is in progress, and the Postgres section is skipped rather than waited on when the root container isn't cached or no pooled connection is free.
labkey-jeckels
marked this pull request as draft
November 26, 2026 00:41
…npooled connection
…test the Postgres dump
labkey-jeckels
marked this pull request as ready for review
November 29, 2026 22:46
labkey-martyp
approved these changes
Nov 29, 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.
Rationale
Writing a diagnostic thread dump after a lock timeout must never wait on an application lock or a pooled connection, so a deadlock breaks within the lock timeout instead of hanging the server (GH Issue 1875). Previously every timed-out thread queued behind one synchronized dump, and that dump's Postgres locks and activity query could block for minutes on the container cache lock and the connection pool, eventually exhausting the pool.
Changes