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

Investigate if reconnecting MongoClient will interfere with sessions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.6.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Iteration Quince
    • Needed
    • Hide

      The docs should note that if you call any methods that reset the connection (for example authentication or changing connection-wide options like readpreference, all sessions will be closed since we need to reconnect the driver.

      Show
      The docs should note that if you call any methods that reset the connection (for example authentication or changing connection-wide options like readpreference, all sessions will be closed since we need to reconnect the driver.

      Right now we close and create new MongoClient connections for shell methods for which the node driver only supports via connection options, for example authentication. If a user starts a session, but then calls one of the methods that create a reconnection, will that cause problems?

            Assignee:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Reporter:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: