[SERVER-64210] Push the CollectionShardingState's description to CollectionPtr Created: 04/Mar/22  Updated: 02/Feb/23  Resolved: 25/Jan/23

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

Type: Task Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Jordi Serra Torrens
Resolution: Won't Fix Votes: 0
Labels: PM-2144-Milestone-0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-66048 CollectionPtr::isSharded() always ret... Backlog
Sprint: Sharding EMEA 2022-03-21, Sharding EMEA 2022-04-04, Sharding EMEA 2022-04-18, Sharding EMEA 2022-05-02, Sharding EMEA 2022-05-30, Sharding EMEA 2022-06-13, Sharding EMEA 2022-06-27, Sharding EMEA 2022-07-11, Sharding EMEA 2022-07-25, Sharding EMEA 2022-08-08, Sharding EMEA 2022-08-22, Sharding EMEA 2022-09-05, Sharding EMEA 2022-09-19, Sharding EMEA 2022-10-03, Sharding EMEA 2022-10-17, Sharding EMEA 2022-10-31, Sharding EMEA 2022-11-14, Sharding EMEA 2022-11-28, Sharding EMEA 2022-12-12, Sharding EMEA 2022-12-26, Sharding EMEA 2023-01-09, Sharding EMEA 2023-01-23, Sharding EMEA 2023-02-06
Participants:

 Description   

We should push the description part of the CSS to be under the storage catalog and ensure that shardCollection properly persists that state locally.



 Comments   
Comment by Jordi Serra Torrens [ 25/Jan/23 ]

Closing as won't fix, as shoehorning the description into CollectionPtr is proving difficult and its result confusing:

CollectionPtr can be constructed in many different ways, and only some of them have an opCtx.
Then, once you have constructed one, is up to the caller to set the shardKeyPattern (or description, in this PR).
Finally, when executing a getMore, a new CollectionPtr is constructed and passed to the plan. However, since getMore is unversioned, the restored description will be assumed to be unsharded.

Since the CollectionSnapshots API is set to address exactly this, I think it is not a good investment to make this effort.

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