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

Connection acquired while calling a stored procedure via JPA is not released [SPR-16826] #21366

Closed
spring-projects-issues opened this issue May 15, 2018 · 2 comments
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented May 15, 2018

Gaurav Khandelwal opened SPR-16826 and commented

When a DB stored procedure is called via Spring JPA, connection acquired from Connection Pool is not release back after calling.

 

Inside Class org.springframework.orm.jpa.SharedEntityManagerCreator and method invoke()

entity manager is only closed if method name matches "queryTerminatingMethods" set which does not include "execute" method used for calling Stored Procedure.


Affects: 4.3.17, 5.0.6

Attachments:

Issue Links:

Referenced from: commits 997ca5c, 3978d55, 3c8c996

Backported to: 4.3.18

@spring-projects-issues
Copy link
Collaborator Author

Gaurav Khandelwal commented

@Juergen

 

Thanks for resolving this issue.

Please let me know how we can get this fix?

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

This fix is available in the latest 5.0.7.BUILD-SNAPSHOT as well as 4.3.18.BUILD-SNAPSHOT now (available from repo.spring.io/libs-snapshot). See https://projects.spring.io/spring-framework/ for convenient POM snippets for the snapshots.

@spring-projects-issues spring-projects-issues added type: bug A general bug in: data Issues in data modules (jdbc, orm, oxm, tx) status: backported An issue that has been backported to maintenance branches labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 5.0.7 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants