[SERVER-69708] Detect a write without a shard key or _id Created: 14/Sep/22  Updated: 29/Oct/23  Resolved: 14/Oct/22

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

Type: Task Priority: Major - P3
Reporter: Jason Zhang Assignee: Jason Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2022-09-19, Sharding 2022-10-03, Sharding 2022-10-17
Participants:

 Description   

In the batch write command path, add logic to detect if a multi:false write is missing both a targetable shard key and _id, meaning that we now have a "non-targeted single write"



 Comments   
Comment by Githook User [ 13/Oct/22 ]

Author:

{'name': 'Jason Zhang', 'email': 'jason.zhang@mongodb.com', 'username': 'jz1242'}

Message: SERVER-69708 Detect a write without a shard key or _id
Branch: master
https://github.com/mongodb/mongo/commit/be1848a26189a8c773cf00a4ce6ff053b8dc0cac

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