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

Ensure TicketHolder uses correct priority for bookkeeping

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Service Arch
    • Fully Compatible
    • Service Arch 2024-03-18

      The TicketHolder and ScopedAdmissionPriority API allow writing code where the lifetime of ScopedAdmissionPriority does not match that of a Ticket issued while the ScopedAdmissionPriority was in scope. If the ScopedAdmissionPriority goes out of scope before the Ticket, the ticket will be released to pool with a different priority than when it was acquired.

      To make sure this doesn't happen, the Ticket should record the priority its AdmissionContext had when the ticket was issued, and that priority should be used when releasing the ticket.

            Assignee:
            vojislav.stojkovic@mongodb.com Vojislav Stojkovic
            Reporter:
            vojislav.stojkovic@mongodb.com Vojislav Stojkovic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: