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

Make query feature feature flag checking OFCV-aware

    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2025-03-31, CAR Team 2025-04-14
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Query features can be made conditional on feature flags, for example:

      REGISTER_ACCUMULATOR_WITH_FEATURE_FLAG(setUnion,
                                             genericParseSingleExpressionAccumulator<AccumulatorSetUnion>,
                                             feature_flags::gFeatureFlagArrayAccumulators);
      

      This is currently implemented as ExpressionContext acquiring a global FCV snapshot and using this as the basis for checking if the feature flag condition is fulfilled, also taking params.maxFeatureCompatibilityVersion into account.

      This logic should be adapted to also take Operation FCV into account.

            Assignee:
            joan.bruguera-mico@mongodb.com Joan Bruguera Micó
            Reporter:
            joan.bruguera-mico@mongodb.com Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None