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

Remove validation of the OP_REPLY "startingFrom" field

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.0.3, 2.9
    • Affects Version/s: None
    • Component/s: None
    • None

      OP_REPLY in the MongoDB wire protocol includes a "startingFrom" field. It is defined as a signed 32 bit integer. That's unfortunate since a MongoDB collection can have a much larger number of documents. PyMongo currently validates this field, so a user that iterates a large collection (more than 2147483647 documents) will receive an error when the server overflows the startingFrom value and returns a negative number.

      The consensus of opinion seems to be that validating this field isn't particularly useful, so PyMongo should remove the check.

            Assignee:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: