Cayenne
  1. Cayenne
  2. CAY-1782

Deadlock when performing many concurrent inserts

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0, 3.1, 3.2.M1
    • Fix Version/s: 3.2.M1
    • Component/s: Core Library
    • Labels:
      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.

        Activity

        John Huss created issue -
        Andrus Adamchik made changes -
        Field Original Value New Value
        Fix Version/s 3.2M2 [ 12324653 ]
        Fix Version/s 3.2M1 [ 12321697 ]
        John Huss made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 3.2M1 [ 12321697 ]
        Fix Version/s 3.2.M2 [ 12324653 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            John Huss
            Reporter:
            John Huss
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development