Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1782

Deadlock when performing many concurrent inserts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0, 3.2.M1, 3.1
    • 3.2.M1
    • Core Library
    • None

    Description

      I've encountered a deadlock issue in production in an app performing many INSERTs. The deadlock was between the PK generator and the PoolManager (getting a DB connection). It is very bad. I added a unit test demonstrating the problem and a fix for it.

      The fix is possibly not ideal because it requires a larger data structure for holding the cached primary keys, but it is far better than the previous behavior.

      If this fix is acceptable this should be back-ported to 3.1 as well.

      Attachments

        Activity

          People

            johnthuss John Huss
            johnthuss John Huss
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: