Skip to content

adapter,sql: Abbreviate extremely long stack traces, storing full trace in TMPDIR#36971

Open
mgree wants to merge 1 commit into
MaterializeInc:mainfrom
mgree:recursion-error-snip-tmpfile
Open

adapter,sql: Abbreviate extremely long stack traces, storing full trace in TMPDIR#36971
mgree wants to merge 1 commit into
MaterializeInc:mainfrom
mgree:recursion-error-snip-tmpfile

Conversation

@mgree

@mgree mgree commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Motivation

#36888 (comment)

Description

Pre-materializes backtraces, possibly excerpting the head and tail (25 frames/50 lines each). Full traces are saved to an appropriate TMPDIR.

Verification

Manual verification using the given example. (It's possible to write a more complex test to, e.g., ensure that the trace exists and has the right number of lines, but it doesn't feel worth it.)

…saving whole trace in an appropriate temporary directory
@mgree mgree requested a review from def- June 10, 2026 19:26

@def- def- left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if you keep storing /tmp files until environmentd runs out of disk? I'd just log the stack trace instead

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.

2 participants