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

C++ driver should use isMaster, not replSetGetStatus, to monitor health of a replica set

    • ALL

      It is a part of the driver spec that all drivers should use isMaster for monitoring the health of a replica set and for node discovery. The C++ driver is the only driver that uses replSetGetStatus. This causes several problems, the most major of which is that replSetGetStatus requires auth to run, so it is currently completely impossible to use the C++ driver on an authenticated cluster. Another potential problem is that replSetGetStatus is a heavier command that may take locks and puts more load on the server than isMaster does. Mongos currently isn't using any information from replSetGetStatus that isn't available in isMaster, so we should be able to use isMaster instead without losing any functionality.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: