Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZjQyZjc0ODk2...
) / Task (
https://hibernate.atlassian.net/browse/HHH-16963?atlOrigin=eyJpIjoiZjQyZj...
) HHH-16963 (
https://hibernate.atlassian.net/browse/HHH-16963?atlOrigin=eyJpIjoiZjQyZj...
) Avoid H2's capability to register a JVM shutdown hook (causes classloader leaks
during tests) (
https://hibernate.atlassian.net/browse/HHH-16963?atlOrigin=eyJpIjoiZjQyZj...
)
Issue Type: Task Assignee: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: testsuite Created: 21/Jul/2023 02:25 AM Fix Versions: 6.3.0 Priority: Minor
Reporter: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
The H2 database registers a JVM shutdown hook to ensure database files are properly closed
on shutdown.
We don’t really need this as we only use it in-memory (H2 also supports databases backed
by persistent files ), and it gets in the way as this hook will have a reference to the H2
loading classloader; since we have several integration tests needing isolated or custom
classloaders, these classloaders are being leaked.
(
https://hibernate.atlassian.net/browse/HHH-16963#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16963#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100232- sha1:4329f54 )