[SERVER-71896] Validate if a query with _id or shard key is directly targetable to a shard Created: 06/Dec/22 Updated: 22/Jan/24 Resolved: 08/Dec/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.3.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 | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Sprint: | Sharding 2022-12-12 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
It's possible that a query with _id or shard key is not directly targetable to a shard due to the usage of a different collation than the default collation collation in the query. We should check if the _id/shard key is a collatable type (object, string, array) then it must use the default collation otherwise it is not directly targetable to a shard. |
| Comments |
| Comment by Githook User [ 08/Dec/22 ] |
|
Author: {'name': 'Jason Zhang', 'email': 'jason.zhang@mongodb.com', 'username': 'jz1242'}Message: |