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

Fix double ticket holder release in transport layer legacy during primary step down

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Done
    • 3.4.0, 3.5.1
    • 3.4.3, 3.5.5
    • Networking
    • None
    • Fully Compatible
    • v3.4
    • Platforms 2017-03-27

    Description

      During a primary step down, we call _closeConnection on all matching sessions. This kicks those sessions out of sourceMessage, which causes them to explicitly call end(), which calls _closeConnection. _closeConnection calls globalTicketHolder.release().

      This causes us to double release on primary step down, which causes us to increase the effective number of tickets in the system.

      This behavior is most noticeable when looking at the 'now open' number of connections in the main init and listen thread, where the 'outof' param stays steady at the desired number of connections, but the 'available' amount increases. This causes us to report negative numbers of open connections.

      Attachments

        Issue Links

          Activity

            People

              jason.carey@mongodb.com Jason Carey
              jason.carey@mongodb.com Jason Carey
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: