Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-550

Support $maxTimeMS for commands and queries (MongoDB 2.6)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.7
    • None
    • None

    Description

      This should be pretty straight forward.

      The first thing to do is add an ExecutionTimeout class to pymongo.errors. It should inherit from OperationFailure.

      The next thing is to check for error code 16986 if there is a failure in pymongo.helpers._check_command_response or pymongo.helpers._unpack_response, raising ExecutionTimeout.

      This is a MongoDB 2.6 feature so a recent build of MongoDB from github master is required.

      Attachments

        Issue Links

          Activity

            People

              amalia.hawkins@10gen.com Amalia Hawkins
              barrie Barrie Segal
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: