Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-91719

Rewrite tests to not use cursor.firstBatch to evaluate results

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible
    • QE 2024-08-05

      Some tests use cursor.firstBatch evaluate expected results. When SERVER-87285 made the find command batch size configurable and added it to the config fuzzer, these tests had to be blocked from the config fuzzer. This is because if the config fuzzer changes 'internalQueryFindCommandBatchSize' to a small enough value, the first batch is too small to contain all the expected results or hit an error like in computed_projection.js.

      The tests are: computed_projection.js, profile1.js, covered_index_sort_no_fetch_optimization.js, and index_bounds_pipe.js

      We should consider rewriting these tests to use an alternative method of comparing results so we can unblock these tests from the config fuzzer. 

            Assignee:
            kristina.znam@mongodb.com Kristina Znam
            Reporter:
            kristina.znam@mongodb.com Kristina Znam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: