[hibernate-issues] [JIRA] (HHH-14143) Detect illegal concurrent usage of LogicalConnectionManagedImpl

Sanne Grinovero (JIRA) jira at hibernate.atlassian.net
Mon Aug 10 04:35:27 EDT 2020


Sanne Grinovero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A99e61e65-956b-4a21-b29c-06057642e9ea ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiOGQ2YjA3ZGZiNjc4NDQ4ZGJmNGQ2MTFhZDYwNmQzYjgiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HHH-14143?atlOrigin=eyJpIjoiOGQ2YjA3ZGZiNjc4NDQ4ZGJmNGQ2MTFhZDYwNmQzYjgiLCJwIjoiaiJ9 ) HHH-14143 ( https://hibernate.atlassian.net/browse/HHH-14143?atlOrigin=eyJpIjoiOGQ2YjA3ZGZiNjc4NDQ4ZGJmNGQ2MTFhZDYwNmQzYjgiLCJwIjoiaiJ9 ) Detect illegal concurrent usage of LogicalConnectionManagedImpl ( https://hibernate.atlassian.net/browse/HHH-14143?atlOrigin=eyJpIjoiOGQ2YjA3ZGZiNjc4NDQ4ZGJmNGQ2MTFhZDYwNmQzYjgiLCJwIjoiaiJ9 )

Issue Type: Task Assignee: Sanne Grinovero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A99e61e65-956b-4a21-b29c-06057642e9ea ) Components: hibernate-core Created: 10/Aug/2020 01:35 AM Fix Versions: 5.5.0.Beta1, 5.4.20 Priority: Minor Reporter: Sanne Grinovero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A99e61e65-956b-4a21-b29c-06057642e9ea )

Apparently some containers have integration code which could attempt to release the resources managed by a LogicalConnectionManagedImpl concurrently.
While this is IMO a bug in either the integration code or the user's code, it triggers an NPE in ORM which makes it a bit obscure. We can avoid the NPE with slightly more defensive code, which I plan to introduce with this patch.

I still plan to throw an exception, just possibly hinting about the real cause.

( https://hibernate.atlassian.net/browse/HHH-14143#add-comment?atlOrigin=eyJpIjoiOGQ2YjA3ZGZiNjc4NDQ4ZGJmNGQ2MTFhZDYwNmQzYjgiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14143#add-comment?atlOrigin=eyJpIjoiOGQ2YjA3ZGZiNjc4NDQ4ZGJmNGQ2MTFhZDYwNmQzYjgiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100142- sha1:4ee995f )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200810/9256dd1c/attachment.html 


More information about the hibernate-issues mailing list