-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
CompletionException: Duplicate Key Exists in SQL webpermissionspatch #3543
Comments
Does this occur every time? It sounds like two servers might have tried to do the same patch at the same time |
yeah it happens everytime, i just set up a velocity instance and a gameserver right after and this popped up inside gameserver |
A build with an attempted fix should appear here in 10 minutes https://github.com/plan-player-analytics/Plan/actions/runs/8489325894 It's a bit odd bug since there's some logic in there that should prevent this sort of thing from happening, so I think there's two transactions trying to modify the same table and one fails. I added some code to check the list again for missing permissions before insert if it fails with duplicate key error, but it might be due to the configured isolation level in the mysql leading to reading out of date table contents |
If that build doesn't fix it, this definitely does since it will ignore duplicate inserts on the database level (for this particular patch) rather than figuring it out in Java https://github.com/plan-player-analytics/Plan/actions/runs/8489430769 |
Describe the issue
Running plan on a velocity proxy and a backend gameserver, completed the proxy setup, however running plan jar and updating its config on the gameserver lead to the issue
Exceptions & Other Logs
Plugin versions
Plan version 5.6 build 2820
Additional information
The text was updated successfully, but these errors were encountered: