Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1333

Move responsibility for terminating sessions to topology, and track all sessions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.3
    • Affects Version/s: 3.0.2
    • Component/s: Core, Native
    • Labels:
      None

      While investigating NODE-1326, I am finding a lot of issues related to how the SessionPool tracks sessions.

      If we can assume that a topology only ever belongs to one MongoClient at a time, and that the topology gets created/destroyed alongside the MongoClient, then I think we should implement the following:

      1. Track all active and available ServerSessions, and all active ClientSessions, from within the SessionPool. Currently, we track all active ClientSessions from the MongoClient, and all available ServerSessions inside the SessionPool.
      2. Ensure that the topology is responsible for sending an endSession for all ServerSessions when the topology is closed.

      matt.broadstone jessica.lord

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: