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

"PossiblePrimary" server is candidate for primary reads

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: 1.2.0
    • Component/s: libmongoc
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: