[SERVER-75447] Add a wrapper to handleError for bulkWrite on mongod Created: 29/Mar/23  Updated: 06/Apr/23  Resolved: 06/Apr/23

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

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

Assigned Teams:
Replication
Sprint: Repl 2023-04-17
Participants:

 Description   

For bulkWrite we use write_ops_exec::handleError to determine if we can continue to process other items in the operation. This function throws exceptions in multiple instances that we do not (where we want to add the individual error to our cursor response instead of failing at the top level).

Currently the only known case where we want to throw here is the isTransientTranactionError block. To simplify this we should make a helper function in bulk_write.cpp that calls write_ops_exec::handleError and only throws on this error



 Comments   
Comment by Sean Zimmerman [ 06/Apr/23 ]

We will be handling errors the same way as current CRUD ops so this is not necessary

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