Non-Linux SemaphoreTicketHolder starves uninterruptible waiters

XMLWordPrintableJSON

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

      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
            Reporter:
            Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: