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

Support $maxTimeMS for commands and queries (MongoDB 2.6)

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: