[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:
Backports
backported by GODRIVER-981 Backport "bulk write doesn't report w... Closed
Depends
is depended on by TOOLS-1956 Add Bulk Upsert and increase batch si... Closed
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

GODRIVER-975

Change-Id: Ie363b168fd7e60debd629c4f37040b90318554bd
Branch: release/1.0
https://github.com/mongodb/mongo-go-driver/commit/69aa7c56fc50edaa8be51a09453d609d8976d571

Comment by Githook User [ 24/Apr/19 ]

Author:

{'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}

Message: Return WriteConcernError from bulk writes

GODRIVER-975

Change-Id: Ie363b168fd7e60debd629c4f37040b90318554bd
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/bb984ba94a90e2bdf108128bf6bef0c0505a4bc7

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: GODRIVER-981.

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?

Generated at Thu Feb 08 08:35:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.