Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4539

Fix direct connecting to a secondary with readPreference=secondary

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

      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@mongodb.com Rhys Howell
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: