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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.4.3, 3.5.5
    • Affects Version/s: 3.4.0, 3.5.1
    • Component/s: Networking
    • None
    • Fully Compatible
    • v3.4
    • Platforms 2017-03-27

      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.

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: