Skip to content

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

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions