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

Error when attempting to use an ended session

    XMLWordPrintable

Details

    • Minor Change

    Description

      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.

      Attachments

        Activity

          People

            oleg.pudeyev@mongodb.com Oleg Pudeyev
            oleg.pudeyev@mongodb.com Oleg Pudeyev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: