Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-66423

Set the fromMigrate flag of DurableReplOperation entries only when FCV is 6.0 or greater

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc6
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • v6.0
    • Sharding EMEA 2022-05-16, Sharding EMEA 2022-05-30

      The fromMigrate flag has been added to the DurableReplOperation class (IDL-defined) in 6.1 and this will be backported to 6.0 also (see SERVER-65858).

      The procedure for downgrading the replica sets requires 1) downgrading the FVC and 2) downgrading each binary starting from secondary nodes. This implies that it exists a time window in which the primary node uses a new binary where the secondaries use an old one.

      Downgrading from 6.0 to 5.3 could cause a crash of secondary nodes (using 5.3 binary) caused by an unrecognized field in the oplog entries, i.e., the fromMigrate flag populated by the primary node (using 6.0 binary).

      The goal of this ticket is to avoid to set the fromMigrate flag of DurableReplOperation objects when the current FCV is lower than 6.0.

            Assignee:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Reporter:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: