Closed tonyghita closed 6 years ago
Is it possible another process truncated or modified the database file around the time that this happened? Was there anything unusual printed in the kernel logs?
Is it possible another process truncated or modified the database file around the time that this happened?
Yes, I think you're right.
At the same time the database was Open
ed, a cron job was running to download an updated database file. The file opened without error and the application ran correctly until (presumably) a lookup was performed on a part of the database that was not present at the time of the Open
due to the in-progress download.
The chosen solution is to download the updated database to a temporary directory, then atomically mv
it to where the application expects it to be, after the download has completed.
I'm not sure if there is anything the library can do in this case, so I'm going to close the issue. Hopefully it helps someone else if they run into this edge case!
@tonyghita I also meet this problem as you, could you tell how to solve this the problem.
I've recently observed this fatal error seemingly related to
uintFromBytes
(vendored atv1.2.0
), and was wondering if there was anything that stood out from the stack trace.