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

Ensure QueryKnobConfiguration is copied on ExpCtx copyWith

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • ALL
    • QE 2024-09-30

      ExpressionContext can be copied and it provides a dedicated copyWith() method for that. However, QueryKnobConfiguration is a lazy variable that is not copied during ExpCtx copy. The copy may be performed when creating a separate sub-pipeline (e.g. for $lookup)

      It may happen that parent- and sub-pipeline have different knob configurations because QueryKnobConfiguration is not copied during ExpCtx, but rather is lazy initiated. We should ensure we copy QueryKnobConfiguration with ExpCtx copy

            Assignee:
            denis.grebennicov@mongodb.com Denis Grebennicov
            Reporter:
            denis.grebennicov@mongodb.com Denis Grebennicov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: