[SERVER-45780] Rename getCurrentMetadata to getCollectionDescription and change the return type Created: 27/Jan/20  Updated: 29/Oct/23  Resolved: 03/Mar/20

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

Type: Task Priority: Major - P3
Reporter: Marcos José Grillo Ramirez Assignee: Tommaso Tocci
Resolution: Fixed Votes: 0
Labels: PM-1645-Milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-32198 Missing collection metadata on the sh... Closed
is depended on by SERVER-45781 Throw Stale Shard Version when collec... Closed
Gantt Dependency
has to be done before SERVER-46583 Make count command use OwnershipFilte... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-02-10, Sharding 2020-02-24, Sharding 2020-03-09
Participants:

 Description   

As part of the Make Migration Commit Protocol Robust to Network Errors and Failovers Epic, the CollectionShardingState interface will change, and to ease out and track the changes we'll make some assurances to the usage of the interface. The getCurrentMetadata function is used in several parts of the code to check for collection keys format and limits. Renaming the function will help to logically group this usage and separate it from calls that filter information (there is another ticket to rename getOrphansFilter).

The return type must also fit the intended usage of the function, that is, only information about the sharded key should be accessed from this interface.



 Comments   
Comment by Githook User [ 03/Mar/20 ]

Author:

{'name': 'Tommaso Tocci', 'username': 'toto-dev', 'email': 'tommaso.tocci@mongodb.com'}

Message: SERVER-45780 Rename getCurrentMetadata

to getCollectionDescription and change the return type
Branch: master
https://github.com/mongodb/mongo/commit/40de1061816ea7e9b115ac728fb80ba46cc2176d

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