Update all unit tests to respect BSONObj lifetime contract of MatchExpression

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.0-rc6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • v8.0
    • QO 2024-04-29
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Once SERVER-87277 removes the copy of the BSONObj in leaf MatchExpression nodes, many unit tests fail because they were relying on this behavior. The task of this ticket is to modify unit tests to ensure that BSONObj representing a MatchExpression outlives any MatchExpression which was build using that BSON.

            Assignee:
            Ben Shteinfeld
            Reporter:
            Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: