New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrating to SQL causes PlayerData save threads to throw NullPointerException #369
Comments
Try with only a few playerdata files, also please list quantity of playerdata files and claims. I suspect a playerdata file may be corrupted. Also, why are you switching to SQL? |
Fun. So it's closing the database on the main thread while there still are other threads attempting to save PlayerData to it. He just closes it and then re-instantiates a new instance of DatabaseDataStore. Not sure why... but I just removed that so it remains open. I don't recommend using SQL especially since for what GP needs to do, SQL hardly provides any benefits (if anything, the extra overhead compared to flatfiles is a detriment). |
What behaviour is observed:
Migrating playerdata from filesystem to database results in a NullPointerException. Not a single line gets imported. Importing claimdata works fine.
When this happens, the data has been moved from PlayerData to PlayerData1, but the PlayerData folder still exists while it is empty.
What behaviour is expected:
The migration should work without any issues.
Steps/models to reproduce:
Try to import existing file data. This happens with all PlayerData files.
Spigot/Craftbukkit/Paper and GriefPrevention version:
GriefPrevention 16.9 (happens also on 16.8)
Spigot 1.13.1-R0.1-SNAPSHOT (git-Spigot-500ff5d-b6bf6aa)
Stack trace/error
Plugin list (if applicable):
The text was updated successfully, but these errors were encountered: