-
Notifications
You must be signed in to change notification settings - Fork 20.5k
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
Detect unclean shutdowns #20859
Comments
This is a great first issue if someone wants to pick it up! I've created a PoC here: https://github.com/MariusVanDerWijden/go-ethereum/tree/unclean-shutdowns
Feel free to pick this issue up if you want to start contributing to go-ethereum |
Hey i can pick this issue up if no one else has taken it. |
@muhammednagy great! I just assigned you - enjoy working on it and let us know if you run into problems |
When should it be erased then? could change it from unclean-shutdown-timestamp to read-unclean-shutdown-timestamp if we don't want to delete it. |
IMHO we should not throw away any of these files automatically. These can be very valuable to debug problems and the more info we can get the better I would say. And yes a timestamp in the file is a good idea |
I would not put these into external files at all. Placing them into leveldb is a much much better idea because we don't have to track yet another files which need to be placed in the correct datadir, etc. We did the same with the snapshot diffs and it makes things so much cleaner all around. |
Also an option - but we need to make sure a corrupted database will not be a blocker from accessing these logs. |
The database doesn't get corrupted (unless your hard drive fails). |
For anyone else experiencing this, the fix is pending PR #21893. |
it would be nice if geth could detect if geth was not shutdown correctly (e.g. it crashed)
then the user could be offered the upcoming tooling: #20858. Also it will help us investigate issues like #20845
The text was updated successfully, but these errors were encountered: