Skip to content

Wrap errgroup.Group.Go() calls for consistent panic recovery#3370

Merged
fulghum merged 2 commits intomainfrom
fulghum/recover
Jan 21, 2026
Merged

Wrap errgroup.Group.Go() calls for consistent panic recovery#3370
fulghum merged 2 commits intomainfrom
fulghum/recover

Conversation

@fulghum
Copy link
Copy Markdown
Contributor

@fulghum fulghum commented Jan 8, 2026

Each spawned goroutine needs a panic recovery handler to prevent an unexpected panic from crashing the entire Go process. This change introduces a helper function that wraps goroutine creation through errgroup.Group and installs a panic recovery handler and updates existing code to use it.

@fulghum fulghum requested a review from zachmu January 16, 2026 19:20
Copy link
Copy Markdown
Contributor

@jycor jycor left a comment

Choose a reason for hiding this comment

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

LGTM

@fulghum
Copy link
Copy Markdown
Contributor Author

fulghum commented Jan 21, 2026

perf benchmarks in dolthub/dolt#10338 (comment)

@fulghum fulghum merged commit bd60b4b into main Jan 21, 2026
8 checks passed
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