Fix direct connecting to a secondary with readPreference=secondary

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.24.6
    • Affects Version/s: None
    • Component/s: Connectivity
    • None
    • Iteration Star Apple
    • Not Needed
    • None

      Repro:
      Using replica set from https://github.com/mongodb-js/devtools-docker-test-envs#replicaset

      • Note: do not add the replica set hosts to /etc/hosts so they do not resolve.
        In Compass then connect with connection string:
        mongodb://root:password123@localhost:28003/?authSource=admin&readPreference=secondary&appname=MongoDB%20Compass%20Isolated%20Edition&ssl=false 

            Assignee:
            Rhys Howell
            Reporter:
            Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: