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

[4.4] dbHash can deadlock with index build abort

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution
    • ALL
    • 0

      dbHash can deadlock with an index build that is being aborted in the following way:

      • dbHash opens a read snapshot at time T
      • Index build aborts, and while holding a Collection X lock, tries to set ghost commit timestamp to T
      • dbHash waits for a Collection IS lock
      • Index build waits for dbHash reader to abort

      We can consider modifying dbHash to not wait on a collection lock while holding open a snapshot.

      This only affects 4.4 because the ghost timestamp code was removed in 5.0 in SERVER-47867

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: