- 
    Type:Task 
- 
    Resolution: Fixed
- 
    Priority:Major - P3 
- 
    Affects Version/s: 8.2.0-rc0
- 
    Component/s: Replication, Upgrade/Downgrade
- 
    None
- 
        Catalog and Routing
- 
        Fully Compatible
- 
        CAR Team 2025-03-31, CAR Team 2025-04-14
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
Following the investigation in SERVER-99559, it was decided that operations with an Operation FCV will propagate it in the oplog, so application of those oplog entries in secondaries can use observe the same FCV-gated feature flags as the primary did.
This ticket will:
- Create a new field for oplog entries of type VersionContext.
- Store the VersionContext associated to the source operation context in that field.
- Restore that VersionContext over the operation used for oplog application.
- depends on
- 
                    SERVER-99559 Investigate the implications of replicating the OFCV through the oplog -         
- Closed
 
-         
- related to
- 
                    SERVER-111444 Never replicate Operation FCV in the oplog in FCV <8.2 -         
- Closed
 
-