Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5762

HHH-3608: DB sequence numbers are not unique when using the pooled SequenceStyleGenerator in multiple JVMs with the same DB

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 4.3.0.GA_CP10
    • 4.3.0.GA_CP09
    • Hibernate
    • None
    • Hibernate 3.3.2_CP03, Oracle (any version)

    • Hide
      When org.hibernate.id.enhanced.OptimizerFactory.PooledOptimizer was used in multiple JVMs with the same database, there was a risk of duplicate sequenced values being generated. This occurred because a method was invoked twice to initialize two different values (value and hiValue). If another JVM requested a sequence value between these invocations, the sequence related to the second invocation. This issue has been corrected by limiting the double-read to optimizer initialization, when the first read gives Hibernate the initialValue.
      Show
      When org.hibernate.id.enhanced.OptimizerFactory.PooledOptimizer was used in multiple JVMs with the same database, there was a risk of duplicate sequenced values being generated. This occurred because a method was invoked twice to initialize two different values (value and hiValue). If another JVM requested a sequence value between these invocations, the sequence related to the second invocation. This issue has been corrected by limiting the double-read to optimizer initialization, when the first read gives Hibernate the initialValue.
    • Documented as Resolved Issue
    • ON_QA

    Description

      Customer using @GenericGenerator with SequenceStyleGenerator has encountered issues with optimizers, generating duplicate keys.
      It is extremely important a back port from HHH-3608 (divided in tasks HHH-5217 and HHH-5218) to JBoss EAP.

      Attachments

        Issue Links

          Activity

            People

              shaozliu Strong Liu(刘少壮) (Inactive)
              rhn-support-alazarot Alessandro Lazarotti
              Jared Morgan Jared Morgan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: