[SERVER-83754] REGISTER_DOCUMENT_SOURCE_WITH_FEATURE_FLAG should be able to handle upgrade/downgrade Created: 30/Nov/23  Updated: 29/Dec/23  Resolved: 13/Dec/23

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

Type: Bug Priority: Major - P3
Reporter: Will Buerger Assignee: Gil Alon
Resolution: Fixed Votes: 0
Labels: greenerbuild
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by COMPASS-7524 Investigate changes in SERVER-83754: ... Needs Triage
Documented
is documented by DOCS-16547 [SERVER] Investigate changes in SERVE... Ready for Work
Assigned Teams:
Query Integration
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QI 2023-12-11, QI 2023-12-25
Participants:

 Description   

REGISTER_DOCUMENT_SOURCE_WITH_FEATURE_FLAG checks the value of the feature flag/FCV at startup and registers the document source appropriately. However, if you downgrade the FCV from an FCV where the feature flag is on by default to an FCV where the feature flag is off by default, the document source should error even though the document source will remain registered.

We should consider changing the registration macro to wrap the "parse" function provided with a feature flag check, so that the feature flag is always pessimistically checked if registered with this macro.



 Comments   
Comment by Githook User [ 13/Dec/23 ]

Author:

{'name': 'Gil Alon', 'email': 'gil.alon@mongodb.com', 'username': 'galon1'}

Message: SERVER-83754 Validate the feature flag is enabled on the current FCV or maxFeatureCompatibilityVersion for the register with feature flag functions

GitOrigin-RevId: ec00a6f6735cc84adf0694c9bbf4b46dd9a9c943
Branch: master
https://github.com/mongodb/mongo/commit/4d37b895673cd4140afa8368fa4e2b1703b59f94

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