[CDRIVER-710] Wrong writeConcernErrors format Created: 18/Jun/15 Updated: 15/Sep/20 Resolved: 16/Sep/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | Bulk API, libmongoc |
| Affects Version/s: | None |
| Fix Version/s: | 1.2-rc0 |
| 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: |
|
||||||||||||||||||||||||||||
| Description |
|
I think the driver is just appending write concern errors from bulk ops to the same subdocument instead of appending subdocuments to an array of writeConcern errors:
Besides, the field should be "writeConcernErrors" plural, only "code" and "errmsg" should be in each subdocument (not "errInfo"), and the bson_error_t should be filled out with a domain, code, and message. |
| Comments |
| Comment by Githook User [ 11/Jan/16 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: Write operations' replies should contain an array, writeConcernErrors. This fixes the format for modern write commands. Legacy operations still |
| Comment by Githook User [ 26/Oct/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: Write operations' replies should contain an array, writeConcernErrors. This fixes the format for modern write commands. Legacy operations still |
| Comment by Githook User [ 16/Sep/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: Write operations' replies should contain an array, writeConcernErrors. This fixes the format for modern write commands. Legacy operations still |
| Comment by A. Jesse Jiryu Davis [ 16/Sep/15 ] |
|
Tests for this bug can't pass until |
| Comment by Githook User [ 18/Jun/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: The writeConcernErrors shown are not yet implemented, see |