[SERVER-70515] getShardFilterer utility doesn't fulfill some sharding preconditions Created: 13/Oct/22  Updated: 29/Oct/23  Resolved: 11/Nov/22

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

Type: Bug Priority: Major - P3
Reporter: Sergi Mateo Bellido Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-70381 _internalSearchIdLookup stage violate... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2022-11-14, Sharding EMEA 2022-10-17
Participants:

 Description   

The getShardFilterer function calls to getOwnershipFilter function without taking into account that it might invariant if the operation sharding state is not versioned

In SERVER-70381 we have removed its only usage in 6.2, 6.1, 6.0, so I believe we can safely remove this function. On the other hand, if we decide to fix it, we should check whether the operation is properly versioned.



 Comments   
Comment by Githook User [ 11/Nov/22 ]

Author:

{'name': 'Nicholas Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-70515 Remove getShardFilterer API
Branch: master
https://github.com/mongodb/mongo/commit/9fddc7a75011110e78d00ecc1054c7a5bbfb2c73

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