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

Error when attempting to use an ended session

    • Minor Change

      The session spec says under https://github.com/mongodb/specifications/blob/master/source/sessions/driver-sessions.rst#endsession:

      > Once a ClientSession has ended, drivers MUST report an error if any operations are attempted with that ClientSession.

      In ruby driver, several session methods (txn_num, next_txn_num, session_id) instead return nil, and in case of next_txn_num, do not perform the requested operation of bumping the transaction number, if the session is ended. To be spec compliant these methods should raise an exception if they are invoked on an ended session.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: