[CDRIVER-654] Ordered bulk insert continues past oversized doc Created: 15/May/15  Updated: 17/Aug/15  Resolved: 23/Jun/15

Status: Closed
Project: C Driver
Component/s: Bulk API, libmongoc
Affects Version/s: None
Fix Version/s: 1.2-beta0

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

Issue Links:
Depends
is depended on by CDRIVER-662 Inconsistent errs from CRUD functions Closed
Related
is related to CDRIVER-589 Driver should sanity check the size o... Closed

 Description   

If I insert an over-16MB document with an ordered mongoc_bulk_operation_t, not only should the oversized insert fail but, no following operations in the same mongoc_bulk_operation_t should be attempted. The driver in fact continues past the oversized document, as if the bulk operation were unordered ("continueOnError").



 Comments   
Comment by Githook User [ 17/Aug/15 ]

Author:

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

Message: leak formatting "too large" err message

Introduced with CDRIVER-654.
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/a5c799aced1bc5defd99d3e8284d4ecfa42ac33e

Comment by Githook User [ 11/Jul/15 ]

Author:

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

Message: CDRIVER-654 oversized docs and continueOnError

Changed my mind to conform with PyMongo: if continueOnError, a bulk
insert should continue past a document bigger than maxBsonSize.
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/a0219c9777f90187fa73d3fa24c66030e0db2a04

Comment by Githook User [ 23/Jun/15 ]

Author:

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

Message: CDRIVER-654 legacy insert continues past oversize doc

Regardless of CONTINUE_ON_ERROR, driver should proceed with legacy
insert until it reaches an oversized doc, then fail.
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/abd02a0a68cf820ea6bec67f9ef357cb34f57e79

Comment by Githook User [ 16/Jun/15 ]

Author:

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

Message: refactor write commands

Send insert, update, and delete commands with the same function.

CDRIVER-648, CDRIVER-654, and CDRIVER-656 are resolved in this commit
or recent commits.
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/45cb98a160e17cbec4bb7a5a31a46722a87641e6

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