Skip to content

Fiddle: say where the uncommitted write was in ISOLATED_CONNECTION_AFTER_UNCOMMITTED_WRITES - #164

Closed
krishan711 wants to merge 1 commit into
mainfrom
isolated-write-location
Closed

krishan711 wants to merge 1 commit into
mainfrom
isolated-write-location

Conversation

@krishan711

@krishan711 krishan711 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

ISOLATED_CONNECTION_AFTER_UNCOMMITTED_WRITES is logged with stack_info=True, but JSON logs drop the stack, and the stack only shows where the isolated connection was opened, not where the write that blocks it happened.

Database.execute now records the location of the first write on each connection (nearest three callers outside core.store and sqlalchemy, as dir/file.py:line in function <- ...) and the error message includes it.

The stack walk only runs for the first write per transaction.

@krishan711

Copy link
Copy Markdown
Contributor Author

Closing: wrong approach.

@krishan711 krishan711 closed this Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant