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

Improve AggregationRequest validation unit tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0
    • Component/s: Querying
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      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

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

              Dates

              Created:
              Updated:
              Resolved: