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

Update all unit tests to respect BSONObj lifetime contract of MatchExpression

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • Fully Compatible
    • QO 2024-04-29

      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@mongodb.com Ben Shteinfeld
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: