NebulousLabs / Sia

Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
https://sia.tech
MIT License
2.71k stars 442 forks source link

WAL file is still present after clean shutdown/ causes WARN messages in log #3197

Open 2-Watts opened 5 years ago

2-Watts commented 5 years ago

BUG REPORT

Stack Trace or error message contractmanager.log

2018/08/07 18:54:08.157988 dependencies.go:247: STARTUP: Logging has started. Siad Version 1.3.3 2018/08/07 18:59:19.572545 writeaheadlog.go:287: WARN: WAL file detected, performing recovery after unclean shutdown. 2018/08/09 14:51:18.106770 dependencies.go:247: STARTUP: Logging has started. Siad Version 1.3.3 2018/08/09 14:56:48.817046 writeaheadlog.go:287: WARN: WAL file detected, performing recovery after unclean shutdown.

Expected Behavior WAL file should be programmatically erased after correctly being processed.

How to reproduce it (as minimally and precisely as possible)

  1. cause to exist after shutdown: ~/Sia/host/contractmanager/contractmanager.wal Per my casual and amateur examination; writeaheadlog.go seems to indicate that both the tmp and old .wal files should be deleted automagically after being successfully processed and upon clean shutdown. (I am shutting down via './siac stop' and starting via './siad -M cghtw')

Possibly a separate issue, or non-issue at all, is that also 'contractmanager.wal_temp' file remains, after clean shutdown.

Environment