Skip to content

Issue with JPARepository returning a Stream with Hibernate 6.6 #3703

Closed as not planned
@thees

Description

@thees

Hi,
originally I raised this issue as a spring boot issue here.
However, @wilkinsona said that this is not really a spring boot issue, but a change in hibernate 6.6 (compared to 6.5).

The new behavior breaks when the JPA Repository returns a Stream that is used to stream a response to a client through a spring Controller.

This means, that the JPA Stream interface cannot be used to stream data out of the application without "aggregating up" which allocates (too much) memory in the JVM.

I want to follow @wilkinsona 's advice and open an issue here.

Please see the details in the linked issue, there is also a demo project that can be executed to show the issue.
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions