Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2370

Session pool does not lock when ending sessions

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sessions
    • 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 Unassigned
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: