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

"PossiblePrimary" server is candidate for primary reads

    XMLWordPrintableJSON

Details

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

    Description

      According to Server Selection, PossiblePrimary servers are effectively Unknown, they shouldn't be candidates for selection. But this case statement appears to make them candidates for primary reads:

      https://github.com/mongodb/mongo-c-driver/blob/a4bcfffa9c7ffa2e541a3351ec26cfad417cbdcf/src/mongoc/mongoc-topology-description.c#L292-L292

      May also need a new Server Selection YAML test to catch this bug in all drivers.

      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: