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

"pipelineUsesLookup" field is tracked incorrectly in CurOp

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Jennifer Peshansky (Inactive)
            Reporter:
            rui.liu@mongodb.com Rui Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: