[SERVER-51110] Associate feature flags with release versions Created: 23/Sep/20  Updated: 29/Oct/23  Resolved: 16/Oct/20

Status: Closed
Project: Core Server
Component/s: Replication, Upgrade/Downgrade
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-51111 Make getParameter return the release ... Closed
is depended on by SERVER-50423 Change memberConfig's slaveDelay fiel... Closed
Duplicate
is duplicated by SERVER-51111 Make getParameter return the release ... Closed
Related
related to SERVER-60058 Add helper library to check feature f... Closed
Backwards Compatibility: Fully Compatible
Sprint: Security 2020-10-19
Participants:

 Description   

Associate each feature flag with the release version for the feature. Enforce that features with default:false have no release version and features with default:true have a release version. version is required to be a string. For example:

feature_flags:
    featureFlagToaster:
      description: "Make toast"
      cpp_varname: gToaster
      default: false
 
    featureFlagBlender:
      description: "Make smoothie"
      cpp_varname: gBlender
      default: true
      version: “4.7”

Provide the helpers:

feature_flags::gToaster.isEnabled(ServerGlobalParams::FeatureCompatibility::Version)
feature_flags::gToaster.isEnabledAndIgnoreFCV()
feature_flags::gToaster.getVersion() // throws if the feature is not enabled

For an enabled feature with default:false, getVersion() will return ServerGlobalParams::FeatureCompatibility::kLatest.



 Comments   
Comment by Githook User [ 16/Oct/20 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-51110 Feature Flag with FCV checks
Branch: master
https://github.com/mongodb/mongo/commit/e38772165366061ef6aa21477f9f352564c48cc9

Comment by Githook User [ 16/Oct/20 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-51110 Feature Flag with FCV checks
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/93ae753c0ec6d0f33fbe7f313efed2c8f0bf74a5

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