[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3001) The NoopOptimizer needs to be synchronized
Laszlo Sas (JIRA)
noreply at atlassian.com
Wed Jul 21 05:45:36 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37858#action_37858 ]
Laszlo Sas commented on HHH-3001:
---------------------------------
Dear developers,
NoopOptimizer is not thread-safe. Marciej has right. The generate and getLastSourceValue methods must be synchronized.
Only two words. :(
I attach a test case. Could you fix it in the next version?
Thanks,
Laszlo
> The NoopOptimizer needs to be synchronized
> ------------------------------------------
>
> Key: HHH-3001
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3001
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Affects Versions: 3.2.4.sp1, 3.2.6
> Environment: 3.2.6, 3.2.4sp1, Oracle
> Reporter: Maciej Baranowski
>
> When SequenceStyleGenerator is used with Oracle it uses by default NoopOptimizer. The optimizer is not thread-safe and causes constraint violation errors while inserting data into the database.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list