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

Increase unit test coverage of query execution stages

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

      We should have a unit test for every query execution stage. Doing so is non-trivial as it may require mocking / untangling of dependencies.

      For instance, it would be nice to be able to unit test UpdateStage without a real collection or performing real writes. A mock collection could accept writes or be configured to issue WriteConflictException at predictable points in the test. Similarly, we could create mock implementations of IndexCursor and RecordCursor in order to unit test stages which perform data access.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: