[SERVER-64464] Check the shard version for collections when AutoGetCollection is instantiated Created: 14/Mar/22 Updated: 29/Oct/23 Resolved: 30/Mar/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 | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Sprint: | Sharding EMEA 2022-03-21, Sharding EMEA 2022-04-04 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 166 | ||||||||||||||||||||
| 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 validate the shard version (checkShardVersionOrThrow) when the passed namespace corresponds to a collection in the local catalog. |
| Comments |
| Comment by Antonio Fuschetto [ 30/Mar/22 ] |
|
Author: {'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}Message: |