Kate Dreaper (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYmVhZmRlNjQ4...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-17078?atlOrigin=eyJpIjoiYmVhZm...
) HHH-17078 (
https://hibernate.atlassian.net/browse/HHH-17078?atlOrigin=eyJpIjoiYmVhZm...
) Memory leak in ScrollableResultsConsumer (
https://hibernate.atlassian.net/browse/HHH-17078?atlOrigin=eyJpIjoiYmVhZm...
)
Issue Type: Bug Affects Versions: 6.2.7 Assignee: Unassigned Components: hibernate-core
Created: 14/Aug/2023 18:10 PM Priority: Major Reporter: Kate Dreaper (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
The ScrollableResultsConsumer (
https://github.com/hibernate/hibernate-orm/blob/bbee6cd4aa2b7b302be16e071...
) registers the jdbcValuesSourceProcessingState in the LoadContexts. But deregister is
never called with the jdbcValuesSourceProcessingState like it is in the
ListResultsConsumer (
https://github.com/hibernate/hibernate-orm/blob/bbee6cd4aa2b7b302be16e071...
) , resulting in entities referenced in PreLoadEvent and PostLoadEvent never being
dereferenced and cleaned up by GC. This can also be seen by
loadContexts.isLoadingFinished() returning false after closing the stream.
(
https://hibernate.atlassian.net/browse/HHH-17078#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-17078#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#100234- sha1:aec3a25 )