[GODRIVER-1715] Incorrect Upserted count in BulkWriteResult Created: 13/Aug/20 Updated: 28/Oct/23 Resolved: 06/Oct/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | CRUD |
| Affects Version/s: | 1.4.0, 1.3.4 |
| Fix Version/s: | 1.4.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ankush Goyal | Assignee: | Isabella Siu (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
software platform |
||
| Attachments: |
|
| Description |
|
Getting wrong upserted count when high number of model is bulk upserted. Steps to replicate: Try to bulk upsert n no models using. if n <= 100000 results is n if n > 100000 result is (n % 100000) |
| Comments |
| Comment by Githook User [ 06/Oct/20 ] |
|
Author: {'name': 'Isabella Siu', 'email': 'isabella.siu@mongodb.com', 'username': 'iwysiu'}Message: |
| Comment by Githook User [ 06/Oct/20 ] |
|
Author: {'name': 'Isabella Siu', 'email': 'isabella.siu@mongodb.com', 'username': 'iwysiu'}Message: |
| Comment by Divjot Arora (Inactive) [ 27/Aug/20 ] |
|
Community PR: https://github.com/mongodb/mongo-go-driver/pull/490 |
| Comment by Ankush Goyal [ 25/Aug/20 ] |
|
Hi @Divjot Arora, Thanks. I have sent the PR. - Ankush |
| Comment by Divjot Arora (Inactive) [ 24/Aug/20 ] |
|
There aren't really any branch-naming guidelines or anything like that. You probably don't have permissions to create new branches on the mongo-go-driver project. Can you fork the project, push the branch to your fork, and create a pull request from there? That should not require any permissions. – Divjot |
| Comment by Ankush Goyal [ 24/Aug/20 ] |
|
Hi @Divjot Arora, I don't have permission to commit or push a new branch to the mongo-go-driver repo (may be because I am contributing first time to the project). I have the code change ready with me. If you have some documentation or steps that the community follows can you please direct me to it (for example - any branch naming guidelines etc). - Ankush |
| Comment by Divjot Arora (Inactive) [ 24/Aug/20 ] |
|
If you have a pull request with a proposed fix, you can submit it to the mongodb/mongo-go-driver repo and we'll add reviewers as necessary. Nothing extra needed on your end. – Divjot |
| Comment by Ankush Goyal [ 24/Aug/20 ] |
|
Should I create a pull request and submit the fix or do I need to discuss with some one one from mongo golang developer team |