CloudNet icon indicating copy to clipboard operation
CloudNet copied to clipboard

chore: Increase timeout for process termination

Open GiantTreeLP opened this issue 8 months ago • 4 comments

Motivation

Current Java Edition Minecraft servers, especially those that are forks of the vanilla Minecraft server software, take some time to properly stop and save all resources, i.e. worlds, inventories and other state to disk. Prematurely terminating those processes leads to worlds not being saved at all, world corruption due to the interrupted save process and unloadable worlds. In addition this leads to lock files being left that don't belong to any process anymore.

Modification

Increase the timeout to 60 seconds. This gives servers more time to properly store all files and shutdown whilst still cleaning up servers that may have become stuck whilst shutting down.

Result

Server processes are now given more time to properly shutdown.

Other context

See the discussion in Discord starting from here.

GiantTreeLP avatar Jun 25 '24 19:06 GiantTreeLP