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

SessionsCollectionRS incorrectly creates and destroys RemoteCommandTargeters

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • 3.6.7, 4.0.2, 4.1.2
    • None
    • Fully Compatible
    • ALL
    • 27

    Description

      SessionsCollectionRS often sends commands from the secondary node to the primary node. When it does so, it creates a local RemoteCommandTargeter which goes out of scope after the command is sent. Along with this, a ReplicaSetMonitor is created on the RemoteCommandTargeter that is created and destroyed.

      It would be cleaner for SessionsCollectionRS to hold a reference to a singular RemoteCommandTargeter upon construction.

      Attachments

        Activity

          People

            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            blake.oler@mongodb.com Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: