[X] I am using a version of WorldEdit compatible with my Minecraft version.
[X] I am using a version of WorldGuard compatible with my Minecraft version.
[X] I am using the latest or recommended version of my platform software.
[X] I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
[X] I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)
Bug Description
When running on a windows machine using several instances of the above setup, WG attempts to delete the old still locked sqlite temp lib. This fails and throws errors in the console.
Either do not throw an error for this and silently fail or throw a one liner warn(?)
Preferably check if locked, if so don't attempt to delete, if not (meaning other instances on the machine are updated and the old lib is no longer locked) then delete.
Reproduction Steps
Use above setup.
Use several instances.
Wait for sqlite update, and restart one of the instances.
Optional WorldGuard-Report
No response
Anything Else?
Let me know if you need any other details. Thanks.
WorldEdit Version
WorldEdit v7.3.6-SNAPSHOT+6888-350dfa1
WorldGuard Version
WorldGuard v7.0.11-SNAPSHOT+2287-8ffc81a
Platform Version
Paper 1.21-124-master@df3b654
Confirmations
Bug Description
When running on a windows machine using several instances of the above setup, WG attempts to delete the old still locked sqlite temp lib. This fails and throws errors in the console.
https://pastebin.com/raw/WzA8168U
Similar issue https://github.com/lz4/lz4-java/issues/132 and potential solution can be found here: https://github.com/lz4/lz4-java/commit/08b3bff3491eafd5238c5adf79113e56f6821e82 though I am unsure if this would apply here as it may affect the other instances still using that old temp locked library(?)
Expected Behavior
Either do not throw an error for this and silently fail or throw a one liner warn(?) Preferably check if locked, if so don't attempt to delete, if not (meaning other instances on the machine are updated and the old lib is no longer locked) then delete.
Reproduction Steps
Optional WorldGuard-Report
No response
Anything Else?
Let me know if you need any other details. Thanks.