[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-6689) DefaultMergeEventListener changes CheckNullability flag - not thread save

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Feb 8 23:22:42 EST 2012


     [ https://hibernate.onjira.com/browse/HHH-6689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-6689.
-------------------------------


Closing for 4.1 release

> DefaultMergeEventListener changes CheckNullability flag - not thread save
> -------------------------------------------------------------------------
>
>                 Key: HHH-6689
>                 URL: https://hibernate.onjira.com/browse/HHH-6689
>             Project: Hibernate ORM
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.6.5
>         Environment: Websphere Application Server 7.0,  DB2,  Windows Server, Hibernate 3.6.5
>            Reporter: John SMith
>            Assignee: Gail Badner
>              Labels: hibernate
>             Fix For: 4.1.0
>
>
> saveTransientEntity() method saves the CheckNullability setting,  changes it using the getFactory().getSettings().setCheckNullability  method, and does save processing.   After save processing, the saved value is restored.
> During load testing, we have had situations where the CheckNullability becomes set to TRUE and causes failures because of null checks.
> It has been difficult to debug, but it appears that this is not thread safe - multiple threads accessing this method can change the value of this setting.
> It can also be that a database error can cause an exception that will cause the checkNullability flan not to be reset.

--
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