[SERVER-76267] Populate numErrors in mongos command response Created: 18/Apr/23  Updated: 29/Oct/23  Resolved: 08/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Kaitlin Mahar Assignee: Kaitlin Mahar
Resolution: Fixed Votes: 0
Labels: milestone-2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-72792 Implement progress bookkeeping for in... Closed
depends on SERVER-72984 Send sub-bulkWrite batches to targete... Closed
depends on SERVER-73281 Support update/delete op type to bulk... Closed
Related
related to SERVER-74390 Add numErrors to bulkWrite command re... Closed
Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-07-10, Repl 2023-08-07, Repl 2023-08-21
Participants:

 Description   

In SERVER-74390 we added numErrors to the command response on mongod, however for now we are hardcoding numErrors to 0 in the response from mongos.

Once we are able to fully execute commands on mongos we should update this to properly return the number of errors contained in the cursor we return.

One option is to combine the numErrors responses across the individual commands we send to each shard. However, we could also recount numErrors on mongos instead as we process the result of each operation.



 Comments   
Comment by Githook User [ 08/Aug/23 ]

Author:

{'name': 'Kaitlin Mahar', 'email': 'kaitlin.mahar@mongodb.com', 'username': 'kmahar'}

Message: SERVER-77004 / SERVER-76267 / SERVER-79395: Return per-op success replies and numErrors in mongos bulkWrite command response
Branch: master
https://github.com/mongodb/mongo/commit/abad13a3ecc1c7e33a9def3299c12a80d7400d5c

Generated at Thu Feb 08 06:32:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.