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

Drop on shard_file_manager issues warning in debug mode instead of error. #128

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

hoytak
Copy link
Collaborator

@hoytak hoytak commented Dec 20, 2024

Currently, the drop in the shard file manager is present as a programming guard to make sure the user has called finish and written all the in-memory lookup tables to disk. However, this isn't a valid check on runtime shutdown, so this switches it to happen only in debug mode so a user hitting CTRL-C won't see scary errors.

@hoytak hoytak requested a review from seanses December 20, 2024 13:29
Copy link
Collaborator

@seanses seanses left a comment

Choose a reason for hiding this comment

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

Looks good to me but some tests are failing?

@hoytak hoytak merged commit 6e22ffd into main Jan 9, 2025
2 checks passed
@hoytak hoytak deleted the hoytak/241218-safe-shard-drop branch January 9, 2025 20:52
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