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

Defragmentation utils should use a direct connection to shards to check the feature flag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • ALL
    • Sharding EMEA 2022-05-16

    Description

      The defragmentation util includes a check for whether the NoMoreAutosplitter feature flag is enabled. This check uses the feature flag utils which check both the feature flag value and the FCV (to make sure the feature flag is enabled on the version the node is actually running).

      The current check in the defragmentation utils calls the the feature flag util with a connection to the mongos. Mongos have no FCV, therefore the feature flag library is not taking into account the FCV currently running.

      We should amend the check to use a direct connection so that the feature flag util can correctly check the feature flag. We should also add in a comment or a check to the feature flag util to make sure callers are aware that the util should not be used from a mongos.

      Attachments

        Issue Links

          Activity

            People

              allison.easton@mongodb.com Allison Easton
              allison.easton@mongodb.com Allison Easton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: