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

Improve $facet error message when exceeding single document limit size

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      When a $facet is constructing an output document that exceeds the single document size limit, the error message is

      "document constructed by $facet is 104858285 bytes, which exceeds the limit of 104857600 bytes"

      This is confusing because it leads users to think it is related to the 100 MiB internal memory limit associated with allowDiskUse. It would be better to specify in the error message that it exceeds the single document limit (which is 16 MiB for an output doc and temporarily allowed to exceed that intra-stage).

            Assignee:
            steve.la@mongodb.com Steve La (Inactive)
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: