The ScrollableResultsConsumer registers the jdbcValuesSourceProcessingState in the LoadContexts. But deregister is never called with the jdbcValuesSourceProcessingState like it is in the ListResultsConsumer, 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. |