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

Improve test coverage where we have to iterate over a cursor

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution

      Currently our find/aggregation batch sizes are set to a default of 100 documents. This parameter must be set by the user and there is no way of specifying a default batch size server-wide.

      As a result we're not exercising cases where we must iterate a cursor in our testing infrastructure.

      One idea would be to make a server parameter for the default batch size and create a variant that uses a very small batch size. In that case we would heavily exercise this path and potentially catch any errors that arise from this lack of coverage.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: