|
See the attached maven project which reproduces the error. There are 2 profiles
When using the h2 profile, everything works, but with MySQL it will run into a deadlock. I debugged and saw that there is a DROP statement which blocks indefinitely because another connection is still open. The default connection provider(DriverManagerConnectionProviderImpl) seems to keep an additional connection when it shouldn't
Interestingly, when switching to c3p0, the MySQL test runs through, but c3p0 fails for other databases so switching is not a suitable solution.
|