[SERVER-65107] Check the shard version when AutoGetCollection is instantiated and there is neither collection nor view Created: 31/Mar/22  Updated: 29/Oct/23  Resolved: 07/Apr/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Antonio Fuschetto Assignee: Antonio Fuschetto
Resolution: Fixed Votes: 0
Labels: PM-2144-Milestone-0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-04-04, Sharding EMEA 2022-04-18
Participants:

 Description   

As a prerequisite to push the CollectionShardingState to the Storage Catalog, when the collection locks are acquired (AutoGetCollection class), the shard version attached to the operation context must be consistent with the information stored in the local metadata.

The goal of this task is to ensure there is no shard version attached to the request when the passed namespace does not correspond to neither a collection nor a view.



 Comments   
Comment by Githook User [ 07/Apr/22 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-65107 Check the shard version when AutoGetCollection is instantiated and there is neither collection nor view
Branch: master
https://github.com/mongodb/mongo/commit/487babfa93b6f6f2fb500ecb5411045be89e881c

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