[GODRIVER-1450] BulkWriteError's request is not the correct one Created: 19/Dec/19 Updated: 28/Oct/23 Resolved: 19/Dec/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Error Handling |
| Affects Version/s: | 1.2.0 |
| Fix Version/s: | 1.2.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | emilien puget | Assignee: | Go Community User |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mongo 3.4 |
||
| Description |
|
When initializing the BulkWriteError, the document set is not the correct one, the first document of the batch is used instead, it should used the document in the batch at the index returned by the WriteError (https://github.com/mongodb/mongo-go-driver/blob/b414b897457665f12997cefd10ad934ccb9dfb3e/mongo/errors.go#L129)
|
| Comments |
| Comment by Divjot Arora (Inactive) [ 19/Dec/19 ] |
|
Merged the PR into master and release/1.2 branches. |
| Comment by Githook User [ 19/Dec/19 ] |
|
Author: {'name': 'emilien puget', 'email': 'emilien-puget@users.noreply.github.com', 'username': 'emilien-puget'}Message: |
| Comment by Githook User [ 19/Dec/19 ] |
|
Author: {'name': 'emilien puget', 'email': 'emilien-puget@users.noreply.github.com', 'username': 'emilien-puget'}Message: |
| Comment by emilien puget [ 19/Dec/19 ] |
|
i made a pr for this here https://github.com/mongodb/mongo-go-driver/pull/263 |