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

Improve AggregationRequest validation unit tests

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Querying
    • Fully Compatible
    • ALL
    • Query Execution 2021-03-08, Query Execution 2021-03-22

    Description

      AggregationRequest validation unit tests, like https://github.com/mongodb/mongo/blob/25818a31c7d8209aa8ae22a536f94725aa7fa21e/src/mongo/db/pipeline/aggregation_request_test.cpp#L466, do not precisely distinguish the outputs and, therefore, run a risk of not catching AggregationRequest validation bugs. The same error code is used to report multiple error conditions, and more precise validation error cause can only be determined by examining the error message.

      Attachments

        Activity

          People

            mihai.andrei@mongodb.com Mihai Andrei
            mindaugas.malinauskas@mongodb.com Mindaugas Malinauskas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: