Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1418

avoid reconnecting when read preference changes

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

      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 Unassigned
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: