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

Replace invariant with assertion and add more details

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.5
    • Affects Version/s: 8.1.0-rc0, 8.0.3
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • v8.0
    • QE 2024-12-09
    • 200

      The invariantĀ 
      invariant(MatchExpression::AND == textFilterMe->matchType()) in planner_access.cpp apparently can be triggered and fail (see AF-1162). When it does, we should not crash the server, but rather return an error and provide some debug information, like serialise the filter or the whole text node in question.

            Assignee:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Reporter:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: