Ticket semaphore unittest has timing issue

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2026-03-16
    • 200
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-119153 added a new unittest case for both ordered and unordered ticket semaphores to make sure that if we return a permit to the pool after the timeout time has passed, the ticket is succesfully returned to the pool instead of being consumed. The issue is that in some slow machines, sleeping might not be enough, as by the time we return the permit, the thread might not timed out yet, effectively waking up the thread before it timed out. There is a ticket to improve overall testing SERVER-120888, but due to the recent failures, we need to prevent this from happening and then find a better way of testing these scenarios.

            Assignee:
            Marcos José Grillo Ramirez
            Reporter:
            Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: