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

Handle actual file output when Query returns a server error

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, if the server returns an error rather than results, then the TestNumber, Query and results are all missing from the .actual files. This leads to misleading logs from query_tester because if test 2 fails with an error, then the diffs will show

      -2
      -:sortFull {aggregate: "fuzzer_coll", pipeline: ... }
      -[
      - <expected results>
      -]
      

      and will indicate that the failing test number was 1 due to test 2 being completely absent from the .actual file.
      I'll add some examples in the comments to this ticket.

            Assignee:
            daniel.segel@mongodb.com Daniel Segel
            Reporter:
            naafiyan.ahmed@mongodb.com Naafiyan Ahmed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None