Server crashes on slow disks
Description
Having the world or entire server stored on a slow disk (for example a really old HDD or a USB stick) crashes the server.
Checklist
- [x] I have searched for duplicate issues
- [x] The bug is reproducable
Minecraft, Fabric & Fastback version
Minecraft 1.19.2Fabric 0.14.21FastBackup 0.7.4(latest 1.19.2 build, bug should work on versions past 0.7.4 too)
How to reproduce
- Get a slow USB stick and a 300 MB world
- Make a local (or even better, a full backup)
- Wait approximately one minute
- Crash!
Technical explanation
During a backup FastBackup freezes the server activity by pausing tick updates (may be a unintentional sideeffect). This causes the server to think after ~1 minute that the server is stuck and therefore the Server Watchdog thread crashes the server. Most of the time the backup cannot be completed before the server gracefully shuts down, but the world is saved anyway without triggering another backup.
Mmm, it's hard to say more about what's going on here without more detail about what exactly Crash! means.
The backup tasks run in their own threads, so I sort of doubt the watchdog is unhappy with them. If you're running on a very underpowered machine, though, it may just be generally having a hard time coping with the load.
If you were to provide more detail I could maybe say more.