[SERVER-72669] Get collections sorted by namespace directly from the configsvr Created: 10/Jan/23  Updated: 29/Oct/23  Resolved: 24/Jan/23

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

Type: Task Priority: Major - P3
Reporter: Pol Pinol Assignee: Pol Pinol
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0
Sprint: Sharding EMEA 2023-01-23, Sharding EMEA 2023-02-06
Participants:

 Description   

We have various indexes on the namespaces field on config.collections thus we should be able to get a list of sorted collections directly from the config server without the need of sorting them on the shard.

https://github.com/10gen/mongo/blob/1f1a391453abde32fe9e7c2537fff7b7de2cd2e0/src/mongo/db/s/shardsvr_check_metadata_consistency_participant_command.cpp#L121-L127

In order to achieve this we can add an additional optional paramter to ShardingCatalogClientImpl::getCollections to specify the sorting criteria.



 Comments   
Comment by Silvia Surroca [ 20/Apr/23 ]

Needed to backport SERVER-68670 to v6.0 without major changes

Comment by Githook User [ 24/Jan/23 ]

Author:

{'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}

Message: SERVER-72669 Get collections sorted by namespace directly from the configsvr
Branch: master
https://github.com/mongodb/mongo/commit/87109d37572d6607caba79630f7d8f568b70f79e

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