DocumentSourceMatch::joinMatchWith erroneously depends on the _predicate member

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • v8.0, v7.0, v6.0, v5.0
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In order to join two DocumentSourceMatch's, we combine the _predicate's of each. This is a problem because the value of a DocumentSourceMatch's _predicate doesn't change during the call to DocumentSourceMatch::optimize(), so we may get into a scenario where we try to join an outdated set of predicates, which can lead to a tassert. Repro is in the comments.

      One idea is to depend on the _matchProcessor's MatchExpression instead since that is kept up to date after optimization.

            Assignee:
            Militsa Sotirova
            Reporter:
            Militsa Sotirova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: