[SERVER-80031] Feature Flag Upgrade/Downgrade Testing Created: 15/Aug/23  Updated: 30/Nov/23  Resolved: 30/Nov/23

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: PM Bot Assignee: Erin Zhu
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-85096 TRACKING: M3 Correctness Tickets Closed
Related
related to SERVER-83405 Upgrade/Downgrade testing for $queryS... Closed
Assigned Teams:
Query Integration
Backwards Compatibility: Fully Compatible
Participants:

 Description   

If this project includes a feature flag, please complete all upgrade/downgrade testing as part of this ticket.

1. Test how the feature behaves when upgrading FCV turns the feature on
2. Test that the correct behavior occurs when downgrading FCV completely and then upgrading FCV completely
3. Test that the correct feature behavior occurs if the FCV downgrade fails after only reaching the `downgrading` FCV state and then FCV is fully upgraded again
4. Test that anything added by this project to the setFCV command must be idempotent/retryable.



 Comments   
Comment by Githook User [ 27/Nov/23 ]

Author:

{'name': 'Erin Zhu', 'email': 'erin.zhu@mongodb.com', 'username': 'erinzhu001'}

Message: SERVER-80031 Test $queryStats upgrade/downgrade behavior
Branch: master
https://github.com/mongodb/mongo/commit/1a3bab157f57c8ece6652f931869cefc6996fa31

Comment by Alyssa Clark [ 12/Oct/23 ]

We can test the following:

  1. Upgrade FCV and confirm that $queryStats can be run without error and that stats are now collected and reported for queries (but that any queries run before the FCV upgrade were not collected)
  2. Downgrade and then upgrade FCV and confirm that $queryStats can be run (see https://mongodb.slack.com/archives/C048LPSSLG7/p1697058620071949 for more context on expected behavior in this situation). $queryStats should return an error when on the downgraded FCV.
  3. Fail to downgrade and then successfully upgrade FCV. Confirm that $queryStats can be run and stats are unaffected throughout the process.
  4. N/A for this project since no changes were made to setFCV.
Generated at Thu Feb 08 06:42:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.