Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-17023

UID generator can create DB deadlock

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.2
    • Fix Version/s: 7.3
    • Component/s: UIDSequencer

      Description

      The current UIDGeneratorService relies on hibernate to manage sequence.

      Currently the hibernate calls are run inside the global transaction.

      As a side effect, when running a bulk import that uses batching and multithreading it does create deadlocks on the tables used to manage the hibernate sequences.

      To make this better :

      • Step 1 : run the sequence increment in a separated thread/Tx
      • Step 2 - move away from hibernate

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: