[SERVER-77872] Support updateOne without shard key Created: 07/Jun/23  Updated: 08/Jun/23  Resolved: 07/Jun/23

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

Type: Task Priority: Trivial - P5
Reporter: Sean Zimmerman Assignee: Backlog - Replication Team
Resolution: Duplicate Votes: 0
Labels: milestone-2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-72983 Handle updateOne without shard key fo... Closed
Assigned Teams:
Replication
Participants:

 Description   

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.


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