[GODRIVER-975] bulk write doesn't report write concern error Created: 18/Apr/19 Updated: 28/Oct/23 Resolved: 24/Apr/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | CRUD |
| Affects Version/s: | None |
| Fix Version/s: | 1.0.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Divjot Arora (Inactive) | Assignee: | Divjot Arora (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Description |
|
collection.BulkWrite doesn't report write concern errors. I think the problem is in driverlegacy/bulk_write.go:runBatch, which returns a BulkWriteException for each batch. This exception captures the write errors for each write, but not the write concern error. |
| Comments |
| Comment by Githook User [ 24/Apr/19 ] |
|
Author: {'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}Message: Return WriteConcernError from bulk writes Change-Id: Ie363b168fd7e60debd629c4f37040b90318554bd |
| Comment by Githook User [ 24/Apr/19 ] |
|
Author: {'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}Message: Return WriteConcernError from bulk writes Change-Id: Ie363b168fd7e60debd629c4f37040b90318554bd |
| Comment by Divjot Arora (Inactive) [ 19/Apr/19 ] |
|
PR: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/451552 |
| Comment by Kristofer Brandow (Inactive) [ 18/Apr/19 ] |
|
Made the backport ticket: |
| Comment by Divjot Arora (Inactive) [ 18/Apr/19 ] |
|
Yeah, I have a small patch. I can submit it once I add a test. |
| Comment by Ian Whalen (Inactive) [ 18/Apr/19 ] |
|
kris.brandow to make a backport ticket here. |
| Comment by Ian Whalen (Inactive) [ 18/Apr/19 ] |
|
divjot.arora it sounded like you might already have a patch to link in here? |