[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-7265) ConcurrentModificationException in SynchronizationRegistryImpl.notifySynchronizationsAfterTransactionCompletion due to SynchronizationRegistryImpl.clearSynchronizations clearing SynchronizationRegistryImpl.synchronizations
Steve Ebersole (JIRA)
noreply at atlassian.com
Fri Apr 27 08:23:49 EDT 2012
[ https://hibernate.onjira.com/browse/HHH-7265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46444#comment-46444 ]
Steve Ebersole commented on HHH-7265:
-------------------------------------
{quote}
I couldn't find a way to enable session auto-close when the EntityManager is closed without adding a setter to SessionImplementor. Maybe I'm missing something here?
{quote}
Like I said in my email reply to your question about this, this would need to be delegated. Its not as simple as an a priori boolean flag which is what Session understands today. One way to pass this today would be via the properties that get passed to SessionImpl ctor.
Longer term I think we need a contract that defines the relationship to things that "own" a Session (EntityManager, AuditReader, etc). One part of this would be the owner answering whether the Session should auto close itself.
> ConcurrentModificationException in SynchronizationRegistryImpl.notifySynchronizationsAfterTransactionCompletion due to SynchronizationRegistryImpl.clearSynchronizations clearing SynchronizationRegistryImpl.synchronizations
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HHH-7265
> URL: https://hibernate.onjira.com/browse/HHH-7265
> Project: Hibernate ORM
> Issue Type: Bug
> Components: core
> Affects Versions: 4.1.2
> Environment: AS7 7.1.1
> Reporter: Scott Marlow
> Assignee: Gail Badner
> Fix For: 4.1.3
>
> Attachments: hibernatesearchsync.jpg
>
>
> forum post link here includes the AS7 test case and description https://community.jboss.org/thread/197649?start=0&tstart=0
> http://pastie.org/3819424 is the call stack showing SynchronizationRegistryImpl.notifySynchronizationsAfterTransactionCompletion looping on synchronization which is cleared mid-loop by SynchronizationRegistryImpl.clearSynchronizations
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list