You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
When loaded, the plugin creates about 15 database connections. If you restart the server using /reload, then the plugin will re-create another 15 connections upon loading, without deleting the previous ones. As a result, after several restarts, the connection pool ends.
I know it's not recommended to restart the server with /reload, but I think duplicating connections is wrong behavior (besides, when developing a server, it's not very convenient to constantly restart it)
Spigot version
Paper 1.18.2
Plugin version
Build ID 722
How to reproduce
"/reload confirm" multiple times, using mysql
Crash reports (if available)
The text was updated successfully, but these errors were encountered:
Thanks for the report.
As you identified, using /reload is of course, not recommended - for reasons exactly like this.
However, I do appreciate that ideally we shouldn't be leaving these connections open. I'll review this and get something into the disable hook to kill off the connection pool, but for now the official advice is to not use /reload.
Describe the issue
When loaded, the plugin creates about 15 database connections. If you restart the server using /reload, then the plugin will re-create another 15 connections upon loading, without deleting the previous ones. As a result, after several restarts, the connection pool ends.
I know it's not recommended to restart the server with /reload, but I think duplicating connections is wrong behavior (besides, when developing a server, it's not very convenient to constantly restart it)
Spigot version
Paper 1.18.2
Plugin version
Build ID 722
How to reproduce
"/reload confirm" multiple times, using mysql
Crash reports (if available)
The text was updated successfully, but these errors were encountered: