Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The org.hibernate.query.Query.list() method is not included in the org.springframework.orm.jpa.SharedEntityManagerCreator.queryTerminatingMethods collection, which causes the database connection to be unreleased when the query is proxied. [DATAJPA-1567] #1876

Closed
spring-projects-issues opened this issue Jul 6, 2019 · 2 comments
Assignees
Labels
in: core Issues in core support status: invalid An issue that we don't feel is valid

Comments

@spring-projects-issues
Copy link

wcandml opened DATAJPA-1567 and commented

The queryTerminatingMethods of the SharedEntityManagerCreator class does not contain the "list" method:

!image-2019-07-06-14-41-13-148.png!

 

In the DeferredQueryInvocationHandler class, when the EntityManager is closed, it is determined whether the method name is in "queryTerminatingMethods":

!image-2019-07-06-14-43-21-734.png!

 

 

When org.hibernate.query.Query.list() is used, and QueryImpl and NativeQueryImpl are delegated by DeferredQueryInvocationHandler, the database connection is not released:

!image-2019-07-06-14-56-26-274.png!

 

 


Affects: 1.11.22 (Ingalls SR22)

Attachments:

@spring-projects-issues
Copy link
Author

Mark Paluch commented

Thanks for report. Please file the issue in Spring Framework's issue tracker as the mentioned classes originate from Spring Framework and not Spring Data JPA

@spring-projects-issues
Copy link
Author

wcandml commented

I am so sorry,I have submitted a issue in Spring Framework's issue tracker :https://github.com/spring-projects/spring-framework/issues/23248 ,  thanks for your guidance(y)

@spring-projects-issues spring-projects-issues added status: invalid An issue that we don't feel is valid in: core Issues in core support labels Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

2 participants