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

Add timeout_ms/timeoutMS and default_timeout_ms option

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.21.0
    • Affects Version/s: None
    • Component/s: CSOT
    • None

      The new option timeout_ms should be configurable at the level of a MongoClient, MongoDatabase, MongoCollection, or of a single operation. It should be also available as URI option.

      If the option is specified at any level, it cannot be later changed to unset.

      At each level, the value MUST be inherited from the previous level if it is not explicitly specified.

       

      The new default_timeout_ms option should be added to session options, which specifies the timeoutMS value for the following operations executed on the session:

      1. commitTransaction
      2. abortTransaction
      3. withTransaction
      4. endSession

      If this option is not specified for a ClientSession, it MUST inherit the timeoutMS of its parent MongoClient.

       

       

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: