-
Type: Task
-
Resolution: Duplicate
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: None
-
Replication
BatchWriteExec and BulkWriteExec share the same sub-batching code which already handles targeting update/delete ops without shard key. For update/delete statements without shard key, bulkWrite will execute the two-phase write protocol similar to executeTwoPhaseWrite. In order to make the two-phase write protocol work for bulkWrite, we will need to make the _clusterQueryWithoutShardKey command and the _clusterWriteWithoutShardKey command recognize the bulkWrite command so that the two-phase protocol can construct proper read and write commands from the original bulkWrite statement and can return response in the desired syntax for the bulkWrite statement. Please see here for how “updateOne without shard key” works.
- duplicates
-
SERVER-72983 Handle updateOne without shard key for bulkWrite
- Closed