Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-743

Type remains ReplicaSetWithPrimary if primary steps down and changes setName

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.2-beta0
    • 1.2.0
    • libmongoc
    • None

    Description

      Bug in unreleased implementation of Server Discovery And Monitoring Spec, in the C Driver's implementation of the subroutine that the spec calls updateRSWithPrimaryFromMember.

      1. Discover primary, topology type is ReplicaSetWithPrimary
      2. In next ismaster response from primary it has become secondary and changed setName

      Expected: server is removed and topology type changes to ReplicaSetNoPrimary

      Actual: server is removed but topology type remains ReplicaSetWithPrimary

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: