Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1765

TableGenerator doesn't properly utilize all keys when under heavy stress.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.1.0
    • 2.0.2, 2.1.0
    • jdbc
    • None

    Description

      TableJDBCSeq has a locking problem where multiple threads can run on top of each other resulting in all keys not being used for a given sequence.

      While unit testing a fix I also uncovered another theoretical start up problem where multiple threads can try to insert the same row into the DB resulting in a duplicate key exception.

      Attachments

        1. OPENJPA-1765.patch
          8 kB
          Richard G. Curtis

        Issue Links

          Activity

            People

              curtisr7 Richard G. Curtis
              curtisr7 Richard G. Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: