polarsignals / frostdb

❄️ Coolest database around 🧊 Embeddable column database written in Go.
Apache License 2.0
1.27k stars 65 forks source link

dst: add hardRestart command #895

Closed asubiotto closed 3 days ago

asubiotto commented 2 months ago

This simulates a hard restart by calling the vfs_shutdown hook on the wasm host module to error out all filesystem calls.

[!NOTE] This PR is currently blocked on the resolution of #916, a bug that was found with DST but requires a more fundamental rearchitecture of the WAL.

Bugs found:

asubiotto commented 2 months ago

I'm not very happy with this PR since it's not a complete solution given open FDs. Will keep this up while I see how we can simulate wasi syscalls. The PR has been updated to use hooks into a VFS to simulate a hard shutdown, which is a more complete solution.