Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2333

Add a flag so drop doesn't block

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: WT2.7.0
    • Fix Version/s: WT2.8.0
    • Labels:
      None

      Description

      If a WT_SESSION::drop cannot get exclusive access to a handle, it returns EBUSY. In that case, MongoDB queues the drop, and all threads periodically retry all queued drops. Unfortunately, during periods where the schema lock is held (such as the final phase of checkpoints), that causes all threads to block.

      Instead, add a flag that MongoDB can set so that drop returns EBUSY immediately if it cannot acquire the schema lock (i.e., fails fast).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michael.cahill Michael Cahill
                Reporter:
                michael.cahill Michael Cahill
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: