Avoid checking featureFlagQueryStatsDataBearingNodes repeatedly

XMLWordPrintableJSON

    • Service Arch
    • Fully Compatible
    • v8.0
    • Programmability 2024-06-10, Programmability 2024-06-24
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Per SERVER-91218, we check this flag multiple times from the same thread, and this risks reading different values. In the case of this feature, the impact of that problem is fairly low - i.e., we might request metrics for some parts of a query and not others, and therefore undercount certain metrics for any queries that are sampled for query stats during an unstable FCV period. It shouldn't cause a mongos to request metrics from a mongod that doesn't support them, which would be more serious.

              Assignee:
              Ryan Berryhill
              Reporter:
              Ryan Berryhill
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: