[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6829) PooledLoOptimizer.generate() should be synchronized
Oskar Berggren (JIRA)
noreply at atlassian.com
Sun Nov 27 10:24:21 EST 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44441#comment-44441 ]
Oskar Berggren commented on HHH-6829:
-------------------------------------
Duplicate of HHH-5929.
> PooledLoOptimizer.generate() should be synchronized
> ---------------------------------------------------
>
> Key: HHH-6829
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6829
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Affects Versions: 3.6.8
> Reporter: Manuel Dominguez Sarmiento
> Priority: Critical
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> We recently switched to this ID generation optimizer in our highly concurrent production platform, and began getting random id / PK collision errors very often.
> Checking the code, it's pretty obvious that the problem lies with generate() not being synchronized. All other optimizers (PooledOptimizer, LegacyHiLoAlgorithmOptimizer, HiLoOptimizer, etc.) are synchronized - PooledLoOptimizer should be as well.
--
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