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

Handle I/O errors so that the data file is not wiped #92

Open
VincentCordobes opened this issue Aug 22, 2022 · 1 comment
Open

Handle I/O errors so that the data file is not wiped #92

VincentCordobes opened this issue Aug 22, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@VincentCordobes
Copy link
Contributor

VincentCordobes commented Aug 22, 2022

Today, as I was running out of disk space, trackie stop failed with the no space left error. But the data file was already truncated and the data is no more.

An idea would be to write the state to a different file first and, if it succeeds only, replace the data file.

@VincentCordobes VincentCordobes added the bug Something isn't working label Aug 22, 2022
@VincentCordobes VincentCordobes changed the title Handle I/O errors so that the data is not lost Handle I/O errors so that the data file is not wiped Aug 22, 2022
@beatbrot
Copy link
Owner

Sounds good! Maybe there is also some existing OS API for something like this?

Unfortunately, I don't know when I'll find time to implement this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants