[SERVER-12536] Only allow shard key types which can be used for an _id Created: 29/Jan/14  Updated: 06/Feb/24

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

Type: Task Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Yujin Kang Park
Resolution: Unresolved Votes: 0
Labels: ShardingRoughEdges, car-investigation, oldshardingemea, shardingemea-qw
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-73537 `autoSplitVector` must not return inv... Blocked
Duplicate
is duplicated by SERVER-14161 Disallow regex as shard key value Closed
Related
related to SERVER-73441 Make sure shard key bounds are valid ... Closed
is related to SERVER-11430 update() failure when hash sharding w... Closed
is related to SERVER-9502 Using regex in _id breaks replication Closed
is related to SERVER-73537 `autoSplitVector` must not return inv... Blocked
is related to SERVER-11611 remove DataFileMgr::insert* Closed
Assigned Teams:
Catalog and Routing
Backwards Compatibility: Minor Change
Sprint: CAR Team 2024-01-22, CAR Team 2024-02-05, CAR Team 2024-02-19
Participants:
Story Points: 3

 Description   

Currently an _id cannot be a:

  • regex
  • array
  • undefined

But sharding only restricts to:

  • array

We need to add regex on the sharding side, and think about "Undefined"s behavior.

We should also think about adding code/w/scope as well.



 Comments   
Comment by Connie Chen [ 16/Jan/24 ]

Putting this into investigating to understand impact for adding regex

Generated at Thu Feb 08 03:28:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.