[SERVER-58571] shardCollection command should enable the long names support by default in 5.1 FCV Created: 15/Jul/21  Updated: 29/Oct/23  Resolved: 06/Aug/21

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

Type: Task Priority: Major - P3
Reporter: Sergi Mateo Bellido Assignee: Antonio Fuschetto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-58570 Add a new field to config.collections... Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2021-08-09
Participants:
Linked BF Score: 169

 Description   

The goal of this task is to modify the shardCollection command in such a way that it properly handles the long names flag. Note that this flag can only be enabled if FCV is greater than 5.0.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 07/Aug/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-58571 fix test to match config.cache.collections IDL
Branch: master
https://github.com/mongodb/mongo/commit/6232caba341d286d17e214e6f5a159d09a23de3c

Comment by Githook User [ 06/Aug/21 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-58571 shardCollection command should enable the long names support by default in 5.1 FCV
Branch: master
https://github.com/mongodb/mongo/commit/cf2e19f7432ebe3a5e28b0dbc3eab6b1b5e53ec1

Comment by Antonio Fuschetto [ 05/Aug/21 ]

The logic I have in mind to implement when the collection metadata is created can be summarized as follows:

if (currentFCV >= 5.1)
    collection.supportingLongName = implicitly_enabled
else if (globalConf.supportLongName)
    collection.supportingLongName = explicitly _enabled
else
    // nothing, collection.supportingLongName = none

 

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