-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Component/s: 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. If you validate this field (like the python driver...) 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. If your driver does validate, remove the validation.
http://docs.mongodb.org/meta-driver/latest/legacy/mongodb-wire-protocol/#op-reply
- depends on
-
RUST-18 Do not validate the "startingFrom" field in OP_REPLY.
- Closed
-
PYTHON-945 Remove validation of the OP_REPLY "startingFrom" field
- Closed
- related to
-
SERVER-18802 startingFrom field in OP_REPLY structure is 32 bits
- Closed