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

Fix logging of $group plan with verbose logging

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • QE 2021-12-27

    Description

      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
      

      Attachments

        Activity

          People

            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            eric.cox@mongodb.com Eric Cox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: