"pipelineUsesLookup" field is tracked incorrectly in CurOp

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.1.1, 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change
    • ALL
    • v6.1
    • QE 2022-10-03
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, we only set the field to true for the initial section of the pipeline, not after any pipelines that cannot be pushed down. For the following pipeline:

      [{$graphLookup: ...}, {$lookup: }]

      Since $groupLookup is not pushed down, the second $lookup will not be counted.

      https://github.com/10gen/mongo/blob/830439daf3e0ce06af04c8fa84b53f7b9aa3d759/src/mongo/db/pipeline/pipeline_d.cpp#L188

            Assignee:
            Jennifer Peshansky (Inactive)
            Reporter:
            Rui Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: