Open d4hines opened 2 years ago
How can I reproduce this error?
Our hypothesis is that it will happen if you kill the node while it's writing state.bin
It should be easy to fix: write the state in a temporary file, then renaming it (which is atomic according to this man page) to state.bin
and deleting the old path. However it's taking me a bit of time to reproduce the bug itself, which could still be valuable in the long run.
I'll keep you posted.
While debugging some stuff I'm hitting an error like this while trying to start the node
Hypothesis: when killing the node, state.bin is corrupted.