[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:
Related
related to SERVER-85572 Follow up on audit in mongos for impr... Open
related to SERVER-76855 Audit mongos for improper usage of co... Closed
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: SERVER-71896 Validate if a query with _id or shard key is directly targetable to a shard
Branch: master
https://github.com/mongodb/mongo/commit/ccdf183d91c830f53a5e98c7ad43c7d651129ac2

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