[CDRIVER-2321] _mongoc_write_command_execute always continues after oversized document Created: 11/Oct/17  Updated: 28/Oct/23  Resolved: 31/Oct/17

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.9.0
Fix Version/s: 1.9.0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Reading the code, it appears to me that both branches of _mongoc_write_command_execute (_mongoc_write_opmsg and _mongoc_write_opquery) skip a document that exceeds maxBsonObjectSize and then continue sending the rest of the documents in the batch. They should conform to PyMongo and (I think) other drivers: a single oversized document aborts the bulk operation.

Doesn't matter if the bulk op is ordered or unordered.



 Comments   
Comment by Githook User [ 31/Oct/17 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CDRIVER-2321 oversized doc aborts bulk operation

A bulk operation should abort after encountering an oversized document,
even if the bulk is unordered.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/07ca040bed6d260bf462fd43666a1a50b9da8d64

Comment by A. Jesse Jiryu Davis [ 24/Oct/17 ]

Check other drivers, and if needed open a SPEC ticket to write down what the behavior ought to be here.

Generated at Wed Feb 07 21:14:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.