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

Improve tests by using FeatureFlagUtil.isEnabled instead of raw getParamater

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • QE 2023-11-13, QE 2023-11-27

    Description

      getParameter command sometime used in jstests to determine if some feature flags are enabled.

      Examples:
      sbe_util.js

      columnstore_util.js

      This is incorrect, as getParamater doesn't take into account current FCV: 

      feature_flag.cpp

      Correct way to check for feature flag status in tests is FeatureFlagUtil.isEnabled()

      Attachments

        Activity

          People

            ivan.fefer@mongodb.com Ivan Fefer
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: