[GODRIVER-1028] BulkWrite error indexes do not match position in models slice Created: 08/May/19  Updated: 28/Oct/23  Resolved: 01/Sep/20

Status: Closed
Project: Go Driver
Component/s: API
Affects Version/s: 1.0.1
Fix Version/s: 1.4.1

Type: Bug Priority: Major - P3
Reporter: Jonathan Amsterdam Assignee: Isabella Siu (Inactive)
Resolution: Fixed Votes: 0
Labels: jeff+
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Attachments: Text File unordered-bulk-write.go.txt    
Issue Links:
Related
related to GODRIVER-617 Improved Driver Library Closed

 Description   

When doing an unordered BulkWrite, the `WriteError.Index` returned on errors doesn't correspond to the position of the failed model in the models slice.

Repro attached.



 Comments   
Comment by Githook User [ 01/Sep/20 ]

Author:

{'name': 'Isabella Siu', 'email': 'isabella.siu@mongodb.com', 'username': 'iwysiu'}

Message: GODRIVER-1028 return correct error indexes for bulkWrite (#483)
Branch: release/1.4
https://github.com/mongodb/mongo-go-driver/commit/88894be32f450a20be75ea67423cc01d2d1dd180

Comment by Githook User [ 31/Aug/20 ]

Author:

{'name': 'Isabella Siu', 'email': 'isabella.siu@mongodb.com', 'username': 'iwysiu'}

Message: GODRIVER-1028 return correct error indexes for bulkWrite (#483)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/c1d560769a77e8ff7a7b4cd8fe6ee288316a6d61

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