Robustify query_settings/query_settings_cmds.js test during FCV changes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2026-03-16
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      BF-41994 revealed a potential race between FCV upgrade for query setting representative queries and the test code in jstests/core/query/query_settings/query_settings_cmds.js.

      The migration of the query settings representative shapes during FCV upgrade is not an atomic operation. It can run concurrently with other operations on the same query shapes, which can lead to stale values in the config.queryShapeRepresentativeQueries system collection. This was accepted as a design trade-off for the migration.

      The test in question should handle this potential inconsistency.

            Assignee:
            Jan Steemann
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: