-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Replication
-
Repl 2023-04-17
Nothing novel needs to be done here either. Any transaction related states should be set up at the layer above the command invocation on both mongos and mongod. We just need to immediately abort the client transaction once one or more operations fail in a bulkWrite command. Here are the examples of mongod and mongos implicitly aborting transactions upon seeing the first error for existing batched writes.
Note that on mongod we currently handle this already by calling handleError