Different error message for implicitly created sessions

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Error, Native
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As discussed with Matt, implicitly created sessions can cause some baffling "Use of expired sessions is not permitted" errors (https://travis-ci.org/Automattic/mongoose/jobs/370622334) if you still have an index build in progress and you close the connection. In the interest of clean developer experience, we should consider informing developers if the expired session was implicitly created by the driver in the error message.

              Assignee:
              Unassigned
              Reporter:
              Valeri Karpov
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: