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

Non-Linux SemaphoreTicketHolder starves uninterruptible waiters

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0, 7.3.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • v7.3
    • Execution Team 2024-02-19
    • 19

      The non-Linux semaphore ticketholder implementation has two waiting paths: if an OperationContext is provided, we use waitForConditionOrInterrupt. If not, we use a regular condition variable wait() or wait_until().

      Due to the problem described in SERVER-86269, this causes starvation for non-interruptible callers without an OperationContext. Specifically, the ThroughputProbingTicketholderMonitor get starved because it does not have an interruptible OpCtx.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: