[SERVER-82323] Support internal errors only field for bulkWrite Created: 19/Oct/23  Updated: 02/Nov/23  Resolved: 02/Nov/23

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

Type: Task Priority: Major - P3
Reporter: Sean Zimmerman Assignee: Sean Zimmerman
Resolution: Fixed Votes: 0
Labels: milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-11-13
Participants:

 Description   

Handling WouldChangeOwningShard requires inspecting the write errors, the current singleBatch:true + batchSize:0 for bulkWrite would not return write errors in its current form. We need to add an internal field to be sent from mongos -> mongod in order to still receive write errors even with singleBatch and batchSize:0

We do not want to expose this to users since it will have higher precedence than batchSize:0 which would be a confusing API



 Comments   
Comment by Githook User [ 02/Nov/23 ]

Author:

{'name': 'seanzimm', 'email': 'sean.zimmerman@mongodb.com', 'username': 'seanzimm'}

Message: SERVER-82323: Implement Errors Only Field for BulkWrite
Branch: master
https://github.com/mongodb/mongo/commit/36ae3cfc5d338423cbcc34572a30cad503be35e2

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