[CDRIVER-711] No writeErrors field with successful legacy bulk write Created: 18/Jun/15  Updated: 03/May/17  Resolved: 05/Oct/16

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


 Description   

The spec says writeErrors should always be present. It should be an empty array if there are no errors, but it's absent after a bulk operation is executed with legacy opcodes and no errors.

https://github.com/mongodb/specifications/blob/master/source/driver-bulk-update.rst



 Comments   
Comment by Githook User [ 06/Oct/16 ]

Author:

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

Message: CDRIVER-711 test: ok result has empty writeErrors
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/6f990e7059672d1880ced84b4d70e8a83f9446a1

Comment by A. Jesse Jiryu Davis [ 05/Oct/16 ]

This has been fixed some time ago:

https://github.com/mongodb/mongo-c-driver/blob/91c372d7bd8f775b97db028e48102f2153e74b0c/src/mongoc/mongoc-write-command.c#L1943-L1943

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