Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaner error when we can't open a new snapshot file #6327

Merged
merged 2 commits into from
Jul 4, 2024

Conversation

eddyashton
Copy link
Member

Noticed while debugging something else. If we can't open a snapshot (eg - reached fd limit), this code won't blow up but will log what's clearly an error (roughly New snapshot file written to 5.snapshot [99999999999 bytes]). This catches the OP failure earlier, and reports it as such.

Note that we're already robust to this failure in the sense that all snapshot attempts are best-effort - if the file already existed, or this fails, we still clear the pending_snapshot.

@eddyashton eddyashton requested a review from a team July 4, 2024 09:42
@achamayou achamayou merged commit 04b1455 into microsoft:main Jul 4, 2024
16 of 18 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