[SERVER-79303] Hide API complexity about sharded collections Created: 25/Jul/23  Updated: 26/Oct/23

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

Type: Task Priority: Major - P3
Reporter: Marcos José Grillo Ramirez Assignee: Backlog - Catalog and Routing
Resolution: Unresolved Votes: 0
Labels: oldshardingemea
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Catalog and Routing
Participants:

 Description   

We can find throughout the code several instances where we check whether the collection is sharded in order to take a decision, now that we're setting the groundwork for PM-3338, we should change the API to hide some details about the collection, so there are no wrong assumptions about data placement.

We could for the pointed case, for example, expose documentBelongsToMe directly inside the ChunkManager but internally making it a no-op for non splitable collections, considering, there won't be any need to filter results from an unsplittable collection.

The purpose of this ticket is to remove the isSharded function from the collection description and properly handle the places where the function is called.


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