Skip to content

Fix BrokenProcessPool in tests + don't commit empty store on failed reprocess - #3

Merged
thomasteisberg merged 1 commit into
mainfrom
fix/reprocess-spawn-and-empty-commit-guard
May 28, 2026
Merged

thomasteisberg merged 1 commit into
mainfrom
fix/reprocess-spawn-and-empty-commit-guard

Conversation

@thomasteisberg

Copy link
Copy Markdown
Member

Two fixes in the pipeline runner:

  1. Use a 'spawn' multiprocessing context for ProcessPoolExecutor so workers don't inherit the parent's thread state (icechunk's tokio runtime, aiohttp clients). Fork+threads was causing BrokenProcessPool in the integration test suite when test_reprocess_replaces_data ran after tests that left background threads alive in the parent.

  2. When reprocess=True clears the store and zero frames subsequently succeed, raise instead of falling through to commit. Previously the cleared session would still be committed, leaving an empty store as the tip of main.

…eprocess

Two fixes in the pipeline runner:

1. Use a 'spawn' multiprocessing context for ProcessPoolExecutor so workers
   don't inherit the parent's thread state (icechunk's tokio runtime, aiohttp
   clients). Fork+threads was causing BrokenProcessPool in the integration
   test suite when test_reprocess_replaces_data ran after tests that left
   background threads alive in the parent.

2. When reprocess=True clears the store and zero frames subsequently succeed,
   raise instead of falling through to commit. Previously the cleared session
   would still be committed, leaving an empty store as the tip of main.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@thomasteisberg
thomasteisberg merged commit 59dfe3d into main May 28, 2026
2 checks passed
@thomasteisberg
thomasteisberg deleted the fix/reprocess-spawn-and-empty-commit-guard branch May 28, 2026 04:40
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