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

Increase unit test coverage of query execution stages

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None
    • Query Execution

    Description

      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.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: