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

Spurious warning message in Windows SemaphoreTicketHolder::_tryAcquire

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2023-04-03

    Description

      In the Windows version of SemaphoreTicketHolder::_tryAcquire, if _numTickets is less than 0 we print an ominous-sounding message "DISASTER! in TicketHolder" to std::cerr. However, since resizing the ticket holder simply adjusts _numTickets, it doesn't seem incorrect for _numTickets to be less than 0 if the ticket holder gets resized to a smaller size while the number of available tickets is low.

      Attachments

        Activity

          People

            gregory.noma@mongodb.com Gregory Noma
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: