Fix logging of $group plan with verbose logging

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • QE 2021-12-27
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      During implementation of $mergeObjects, we noticed that if the logging verbosity is turned up to 5 for the query logs only a partial plan is being logged.

      db.sales.aggregate([{$group: {_id: "$item", mergedSales: {$mergeObjects: "$quantity"}}}])
      

      Produces the plan in the logs,

      [2] mkbson s5 s3 [item, quantity] keep [] true false
      [1] scan s3 s4 none none none none [] @"948e756d-a2f5-4c5f-8ca0-4f2fb2b49c1e" true false
      

            Assignee:
            Anna Wawrzyniak
            Reporter:
            Eric Cox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: