Skip to content

Check output stream health before and while writing - #36

Merged
rjbohlender merged 1 commit into
masterfrom
handle_output_file_fail
Jul 7, 2026
Merged

Check output stream health before and while writing#36
rjbohlender merged 1 commit into
masterfrom
handle_output_file_fail

Conversation

@pettyalex

Copy link
Copy Markdown
Collaborator

Handle output file failures by logging an error and not trying to write to a bad output stream in a loop.

This fixes a failure where if you try to write an output file to a directory that does not exist, or something goes wrong while writing, IBDMap will just spin 100% CPU as it tries to write to an unhealthy stream over and over in a loop.

@pettyalex
pettyalex requested a review from rjbohlender July 7, 2026 19:12
@rjbohlender
rjbohlender merged commit deab871 into master Jul 7, 2026
1 check 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