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

Investigate a way to deal with pre-evaluation errors in optimization agg-fuzzer

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.4
    • Testing Infrastructure
    • None
    • Fully Compatible
    • TIG 2018-09-24, STM 2018-10-08

    Description

      When running aggregation, the aggregation framework will pre-evaluate some of the arguments. During that pre-evaluation, it may encounter and throw an error. If optimizations are disabled via failpoints, however, the pre-evaluation phase does not happen and the error is not hit, instead the aggregation simply returns no documents.

      As a result, when the aggregation fuzzer is run in optimization mode, it frequently hits this discrepancy (one mongod throws an error and another returns 0 documents).

      One possible solution from charlie.swanson would be to add context to the error messages hit during pre-evaluation. The fuzzer could then check for that context and validate accordingly.

      This ticket is to investigate what it would take to implement that solution (or another solution if appropriate), make any needed changes to the mongo repo and open a ticket to update the aggregation fuzzer.

      Attachments

        Issue Links

          Activity

            People

              robert.guo@mongodb.com Robert Guo
              david.bradford@mongodb.com David Bradford
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: