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

Tests relying on featureFlagCollModIndexUnique should check FCV 60

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.2, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v6.0
    • Execution Team 2022-08-08
    • 5

      Tests skip running (example) if featureFlagCollModIndexUnique is disabled (checked with getParam), and some of those tests have a 'requires_fcv_52' tag or no FCV tag, but the feature flag is FCV 60.

      This causes the tests to run because getParam returns true, but later fail because the feature flag is actually disabled by the isEnabled FCV check.

      For instance, tests may fail due to "collMod does not support converting an index to 'unique' or to 'prepareUnique' mode".

      Tests should make sure the FCV is 60, for instance by updating tags to requires_fcv_60 or explicitly checking the FCV together with getParam. 

       

            Assignee:
            yujin.kang@mongodb.com Yujin Kang Park
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: