Fix expectedFetchCount in runExpressTest

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2025-08-18
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Recently expectedFetchCount was renamed to expectedNonZeroFetch count to make the test more stable in sharded environments: https://github.com/mongodb/mongo/blob/e1abaa174bcca6810597bf75cdd1b66d21d621d0/jstests/libs/query/express_utils.js#L16

       

      But some callers didn't rename the parameter, so this part is currently just not executed

      https://github.com/mongodb/mongo/blob/e1abaa174bcca6810597bf75cdd1b66d21d621d0/jstests/core/index/express_projection.js#L63

       

       

            Assignee:
            Ivan Fefer
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: