[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: |