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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: EAP_EWP 5.1.0
    • Fix Version/s: EAP_EWP 5.1.1
    • Component/s: Hibernate
    • Labels:
      None
    • Environment:

      Hibernate 3.3.2_CP03, Oracle (any version)

    • Release Notes Text:
      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.
    • Release Notes Docs Status:
      Documented as Resolved Issue

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  stliu Strong Liu
                  Reporter:
                  alessandrolt Alessandro Lazarotti
                  Writer:
                  Laura Bailey
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: