[SERVER-84246] Add an example FCV upgrade/downgrade test Created: 15/Dec/23  Updated: 12/Jan/24  Resolved: 12/Jan/24

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

Type: Task Priority: Major - P3
Reporter: Huayu Ouyang Assignee: Kaitlin Mahar
Resolution: Fixed Votes: 0
Labels: repl-shortlist
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-77480 Test upgrade FCV of a replica set in ... Closed
Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Sprint: Repl 2024-01-08, Repl 2024-01-22
Participants:

 Description   

Teams developing features behind FCV-gated feature flags may want to write tests which check the FCV upgrade step for their feature, i.e. a test that does something like:
1. Start a repl set with binary and FCV X
2. Restart the repl set with binary version Y (Y > X) and the feature flag enabled as of FCV Y
3. Upgrade the FCV and ensure the feature becoming enabled goes smoothly

We should add an example JS test that does this for reference, and update the README to link to it.


Original title: Create a way to enable a feature flag and gate it on an FCV for testing purposes
Original description: Right now in our JS tests there is no way to enable a feature flag and gate it on an FCV without changing it in IDL and enabling it for real. We can only use `setParameter` which only enables the feature flag but doesn't gate it on an FCV. It would be helpful to add this testing functionality so that features can properly test that their feature is enabled/disabled correctly on FCV upgrade/downgrade without having to enable their feature flag by default on IDL first.



 Comments   
Comment by Githook User [ 12/Jan/24 ]

Author:

{'name': 'Kaitlin Mahar', 'email': 'kaitlin.mahar@mongodb.com', 'username': 'kmahar'}

Message: SERVER-84246 Add an example FCV upgrade/downgrade test (#18021)

GitOrigin-RevId: 42ecf946801bcf31c6d20f956c73bce607a5f607
Branch: master
https://github.com/mongodb/mongo/commit/28767296959e5d2bdb56d6b556e68431de4b4428

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