[CDRIVER-1194] Wrong reply from unacknowledged bulk writes Created: 07/Apr/16  Updated: 10/Aug/16  Resolved: 20/Apr/16

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

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 CXX-894 Return disengaged result optionals fo... Closed
is depended on by PHPC-693 Unacknowledged WriteResults have null... Closed
Backwards Compatibility: Minor Change

 Description   

Create a bulk operation with writeConcern w: 0 and run mongoc_bulk_operation_execute. The reply is:

{ "nInserted" : 0, "nMatched" : 0, "nModified" : 0, "nRemoved" : 0, "nUpserted" : 0, "writeErrors" : [  ] }

... regardless of what operations were executed. Instead, return the empty BSON "{}".

This bugfix is also a minor API change, so highlight it in the 1.4.0 release notes, and do not backport.



 Comments   
Comment by Githook User [ 03/May/16 ]

Author:

{u'username': u'jmikola', u'name': u'Jeremy Mikola', u'email': u'jmikola@gmail.com'}

Message: PHPC-693: Unacknowledged write result reports null counts

In CDRIVER-1194, the reply BSON was changed to be empty for unacknowledged writes.
Branch: master
https://github.com/mongodb/mongo-php-driver/commit/db0e3031f4dd6ce7d01796743c3304bfef94c0ad

Comment by Githook User [ 20/Apr/16 ]

Author:

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

Message: CDRIVER-1194 unack'ed write replies should be empty
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/27b7f34b20c08e0a429fa32cc9daeb9f151f5380

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