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

Audit query tests that use toArray() and itcount() and add “requires_getmore” tags

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • ALL

      There are some query tests that don’t have the “requires_getmore” tag. The common issue is that these are tests that have a call to toArray() or itcount() which calls hasNext().  It would be helpful for there to be an audit of all tests that call toArray() and itcount() and add a “requires_getmore” tag to them so that these can be excluded from the suites that exclude tests with a requires_getmore tag.

      When adding the config fuzzer to a passthrough that has jsCore, these are some of the query tests that fail due to a getMore being called (and do not have the “requires_getmore” tag)

      • jstests/core/query/long_double_compare.js
      • jstests/core/query/find/find_project_sort.js
      • jstests/core/query/in/in_with_collation.js
      • jstests/core/query/array/arrayfind10.js
      • jstests/core/index/geo/geo_box2.js
      • jstests/core/query/skip1.js
      • jstests/core/query/null_query_semantics.js
      • jstests/core/index/geo/geo_s2within_line_polygon_sphere.js
      • jstests/core/query/nan.js
      • jstests/core/query/expr/expr_index_use.js
      • jstests/core/index/geo/geo_circle1_noindex.js
      • jstests/core/index/unique_index_insert.js
      • jstests/core/query/sort/sort_dotted_paths_numeric.js
      • jstests/core/query/in/in_with_mixed_values.js
      • jstests/core/query/sort/sort_merge.js
      • jstests/core/clustered/clustered_collection_bounded_scan.js

            Assignee:
            Unassigned Unassigned
            Reporter:
            stephanie.eristoff@mongodb.com Stephanie Eristoff
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: