[CDRIVER-713] Legacy OP_INSERTs batched when they shouldn't be Created: 18/Jun/15  Updated: 03/May/17  Resolved: 20/Jun/15

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

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:
Related
is related to CDRIVER-714 Legacy OP_INSERTS not batched when th... Closed

 Comments   
Comment by Githook User [ 20/Jun/15 ]

Author:

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

Message: CDRIVER-714 batch legacy insert when appropriate

Converse of CDRIVER-713, bulk_operation_insert batched legacy inserts when they
shouldn't be.
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/d490adf33a967552813d64faa4ef89c18cf0c281

Comment by Githook User [ 20/Jun/15 ]

Author:

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

Message: CDRIVER-713 send bulk OP_INSERTs one at a time

Restores spec'ed behavior of mongoc_bulk_operation_insert that was broken in
a25ee18a. mongoc_bulk_operation_insert should send OP_INSERT one at a time in
order to do individual error reporting:

https://github.com/mongodb/specifications/blob/master/source/driver-bulk-update.rst#pre-2-6-support
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/9d374015938fb5aef30e3f6933e9ed3d31d491df

Comment by A. Jesse Jiryu Davis [ 19/Jun/15 ]

mongoc_bulk_operation_insert should send OP_INSERT one at a time in order to do individual error reporting as specified:

https://github.com/mongodb/specifications/blob/master/source/driver-bulk-update.rst#pre-2-6-support

But starting here:

https://github.com/ajdavis/mongo-c-driver/commit/a25ee18a2bb398e56c1cba45f466febf7a9b1ee8

... mongoc_bulk_operation_insert incorrectly coalesces OP_INSERT in large batches.

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