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
Cache gets corrupted #12
Comments
Just a followup, I have been running into additional pickle errors related to cache corruption on pqueue.get / pickle.load: |
Confirmed / reproduced. |
Please provide more information to best diagnose the problem. As described in the So, say your /temp resides in memory, and your 'info' directory is mounted on some volume. In this case, file operations aren't atomic and you may experience corruptions when your application doesn't behave properly (crashes or gets abruptly interrupted in the middle of executions). This would be the case if you use |
Interesting. This is on a Raspberry Pi zero. No |
Notes (mostly for me...) : what's weird is that when the queue is corrupted... the first chunk file starts in the middle of a record. I get it that non-atomic operations could lead to a corrupted info file, but a data file should always begin with a new record, as far as I can tell from the code. Data files are not truncated, they are just removed once entirely processed, right? |
So, when these cases happen, is it possible to collect and provide a sample (without infringing any copyright of your work)? The other question is: how do you know it has been corrupted? Do you get any error? If so, do you mind to provide a stack trace?
Yes that's right. Filesystem space can be claimed as we do ftruncate. Which filesystem do you use? Another possibility is that the filesystem in use does not play nicely when there's no enough chunk space to use so it attempts to relocate the file (it isn't usually a problem as filesystems can deal with fragmented files properly). |
FS is The error (stack trace) I also don't have it anymore, but it's basically TBH, looking at the code, I fail to see how a chunk file could end being corrupted, as that would mean that And of course, I cannot reproduce "on demand". Am going to try more things (such as shutting down power, etc). |
Hello,
I can't find exactly what is causing it or when it happens, but about once a week the cache file gets corrupted and I have to manually delete it. Any idea what could be happening ?
The text was updated successfully, but these errors were encountered: