readPreference is ignored

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Critical - P2
    • None
    • Affects Version/s: 3.6.1, 4.0.0
    • Component/s: Shell
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It seems there has been a regression when going from v3.5 to v3.6 of the driver in terms of supporting readPreference. No matter what read preference I specify in the connection string, I always end up on the primary.

      This remains a problem with v4.0 of the driver.

      This is a problem for mongosh because users can't connect to a secondary or analytics node in Atlas as they would expect (see MONGOSH-487).

            Assignee:
            Eric Adum (Inactive)
            Reporter:
            Massimiliano Marcon
            None
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: