Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-90449

Provide a mode to fail MODE_X lock if it can't be granted immediately.

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2024-08-19, CAR Team 2024-09-02, CAR Team 2024-09-16
    • 0
    • 2

      This is a scenario that can lead a test failure:

      1. A prepared transaction is recovered on stepUp, which acquires MODE_IX lock of a collection C
      2. TTLMonitor starts collMod of C, which tries to acquire MODE_X lock and put to wait
      3. test sends an insert command to C, which tries to acquire MODE_IX lock and put to wait.
      4. The next commitTransaction command can't be issued because the test is single threaded and waits for cmd insert command to finish, thus the deadlock.
       

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            daotang.yang@mongodb.com Daotang Yang
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: