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

Resharding does not use the operation FCV for feature flag checks

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      With SPM-4048 DDL operations take a snapshot of the FCV when they start, and propagate it using the operation context.
      The value of that snapshot is passed to checks of fcv-gated feature flags, ensuring that all checks see a consistent FCV for the entire duration of the DDL.
      However, resharding currently creates multiple opCtx's during it's execution, without forwarding the operation metadata between them.
      This means that the operation FCV won't be propagated correctly.
      As a consequence, fcv-gated feature flags used as part of resharding will be evaluated against the global in-memory FCV, instead of the value of the FCV when the operation started (operation FCV).

            Assignee:
            Unassigned Unassigned
            Reporter:
            robert.sander@mongodb.com Robert Sander
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None