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

Improve AggregationRequest validation unit tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
    • Fully Compatible
    • ALL
    • Query Execution 2021-03-08, Query Execution 2021-03-22

      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.

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

              Created:
              Updated:
              Resolved: