[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: PNG File Screenshot from 2020-08-13 21-23-14.png     File main.go    

 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: GODRIVER-1715 sum up results from batches (#506)
Branch: release/1.4
https://github.com/mongodb/mongo-go-driver/commit/d74074499dda030ce2708c77d99caab8bc30840b

Comment by Githook User [ 06/Oct/20 ]

Author:

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

Message: GODRIVER-1715 sum up results from batches (#506)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/90a0db4834452f0d85433bfef1a1799318384cec

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 ]

Hi ankushgoyal030@gmail.com,

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

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