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

startSession fails randomly with supported servers

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0, 3.6.5
    • Affects Version/s: 3.6.3
    • Component/s: None
    • Labels:
      None

      Looks like `startSession` fails randomly with `Current topology does not support sessions` even when sessions are supported (connected to Atlas).

      I've encountered this error only twice and It seems to happen in cases when the connection is in some specific state (maybe idle for some time, or the server was doing something?). Retrying immediately after worked.

      It would be nice to be able to rely on `startSession` to be working consistently if possible: except for this issue startSession / killSessions seems to be a viable way to cancel background operations in any mongo > 4 (ie. implement `ctrl+c` in mongosh and cancellation buttons in Compass).

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: