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

Fix direct connecting to a secondary with readPreference=secondary

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.24.6
    • None
    • Connectivity
    • None
    • Not Needed
    • Iteration Star Apple

    Description

      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Ā 

      Attachments

        Activity

          People

            rhys.howell@mongodb.com Rhys Howell
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: