Testing feature flag check runs on data-bearing shards rather than CSRS

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2025-05-12, CAR Team 2025-05-26, CAR Team 2025-06-09, CAR Team 2025-06-23
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In our codebase we sometimes need to call FeatureFlagUtil.isPresentAndEnabled in order to verify that a feature flag is in use.

      In a sharded cluster deployment, this check will proceed to execute against a data-bearing shard since it can't run against mongos. However, in the case there are no shards present this check will fail the test since it can't find any data-bearing shard.

      Checking against the config shard should be seen as the preferred option since in a sharded cluster we have a guarantee that it will always have a config shard.

            Assignee:
            Anna Maria Nestorov
            Reporter:
            Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: