Session pool does not lock when ending sessions

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sessions
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In SessionPool#end_sessions, there is no locking around session retrieval.

      This would permit a session to be selected for ending and then checked out later for use in an operation.

      Possible cause of:

      [2020-08-18 20:48:02.274]   1) BSON & command size limits allows user-provided documents to be 15MiB
      [2020-08-18 20:48:02.274]      Failure/Error: raise error
      [2020-08-18 20:48:02.274]      
      [2020-08-18 20:48:02.274]      Mongo::Error::OperationFailure:
      [2020-08-18 20:48:02.274]        operation was interrupted (11601) (on localhost:27017, retries disabled)
      

              Assignee:
              Unassigned
              Reporter:
              Oleg Pudeyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: