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

return host status in isMaster

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.6.5
    • Replication
    • None

    Description

      To implement Replica Set failover support in a driver, as specified in http://www.mongodb.org/display/DOCS/Connecting+Drivers+to+Replica+Sets, it would be essential to add the server status to the isMaster command. Currently, db._adminCommand('replSetGetStatus') returns this information correctly, but requires admin access.

      Just copying the 'health' field from replSetGetStatus to isMaster call would help. Then, the driver would only have to get the server list once from any seed server, and use that for real connections, periodically re-querying isMaster to facilitate quick failover.

      Attachments

        Activity

          People

            kristina Kristina Chodorow (Inactive)
            kschzt Jaakko Manninen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: