avoid reconnecting when read preference changes

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Services Providers
    • None
    • 5
    • None

      Currently, mongosh reconnects after "rs.secondaryOk()" (and perhaps others) is executed. Technically, it doesn't need to reconnect to the server for this.
      The reconnections make using the Okta LDAP plugin more difficult with mongosh, since it needs to fetch a new MFA whenever mongosh reconnects to the server. Ideally, mongosh would use one connection and never reconnect it, when used with maxPoolSize=1.

            Assignee:
            Unassigned
            Reporter:
            Eric Milkie
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: