-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
ALL
-
CAR Team 2025-05-12, CAR Team 2025-05-26
-
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.