[SERVER-52764] Reenable invariant that `getOwnershipFilter` should not be called without a valid shardVersion Created: 11/Nov/20  Updated: 29/Oct/23  Resolved: 14/Jun/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.0-rc2, 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: PM-1965-Cleanup
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
causes SERVER-70381 _internalSearchIdLookup stage violate... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Participants:

 Description   

Currently getOwnershipFilter must allow calls which do not specify a shardVersion, because the DocumentSourceInternalSearchIdLookUp stage calls it that way. This ticket is to fix that code path and restore the invariant.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 15/Jun/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-52764 Invariant that 'getOwnershipFilter' is never called without a valid shardVersion

(cherry picked from commit 8dc84fb6e8f0773eb11b6c34d06ebda07d1eaedb)
Branch: v5.0
https://github.com/mongodb/mongo/commit/e7a6a6b54167571ef1c88b31f49f5ccf12007659

Comment by Githook User [ 14/Jun/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-52764 Invariant that 'getOwnershipFilter' is never called without a valid shardVersion
Branch: master
https://github.com/mongodb/mongo/commit/8dc84fb6e8f0773eb11b6c34d06ebda07d1eaedb

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